public class FitsFileWriter extends Object implements Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
FitsFileWriter.BitsPerPixel |
| Constructor and Description |
|---|
FitsFileWriter(File file,
ImageSet images,
Map<String,Map<String,Object>> metaData,
Map<String,HeaderSpecification> config,
FitsFileWriter.BitsPerPixel bits)
Open an LSST FITS file for writing a CCD ImageSet.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
write(int imageIndex,
ByteBuffer src)
Write the actual image data to the file.
|
public FitsFileWriter(File file, ImageSet images, Map<String,Map<String,Object>> metaData, Map<String,HeaderSpecification> config, FitsFileWriter.BitsPerPixel bits) throws IOException, nom.tam.fits.FitsException
file - The file to write toimages - The ImageSet to write to the file. Note that this specifies
the images to write, not the actual data for the images.metaData - The meta-data maps to use to extract header info fromconfig - The configuration which controls how meta data is written
to the filebits - The number of bits per pixel for imagesIOExceptionnom.tam.fits.FitsExceptionpublic void write(int imageIndex,
ByteBuffer src)
throws IOException
imageIndex - The image to which this data is to be writtensrc - The imageIOException - If an IOException is generated, or if more data is
sent than was expected for a particular image.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2015 LSST. All rights reserved.