Package healpix.essentials
Class MocFitsIO
- java.lang.Object
-
- healpix.essentials.MocFitsIO
-
public class MocFitsIO extends java.lang.ObjectMoc FITS I/O routines.
-
-
Constructor Summary
Constructors Constructor Description MocFitsIO()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MocmocFromFits(java.io.InputStream inp)Converts the contents of a FITS input stream to a MOC.static MocmocFromFits(java.lang.String filename)Converts the contents of a FITS file to a MOC.static voidmocToFits(Moc moc, java.io.OutputStream out)Writes the provided Moc to the stream in FITS format.static voidmocToFits(Moc moc, java.lang.String filename)Writes the provided Moc to the specified file in FITS format.
-
-
-
Method Detail
-
mocFromFits
public static Moc mocFromFits(java.io.InputStream inp) throws java.lang.Exception
Converts the contents of a FITS input stream to a MOC.- Throws:
java.lang.Exception
-
mocFromFits
public static Moc mocFromFits(java.lang.String filename) throws java.lang.Exception
Converts the contents of a FITS file to a MOC.- Throws:
java.lang.Exception
-
mocToFits
public static void mocToFits(Moc moc, java.io.OutputStream out) throws java.lang.Exception
Writes the provided Moc to the stream in FITS format.- Throws:
java.lang.Exception
-
mocToFits
public static void mocToFits(Moc moc, java.lang.String filename) throws java.lang.Exception
Writes the provided Moc to the specified file in FITS format.- Throws:
java.lang.Exception
-
-