public class FitsIntWriter extends Object implements WritableIntChannel
| Modifier and Type | Class and Description |
|---|---|
static interface |
FitsIntWriter.FileNamer
Interface for computing name of FITS file based on provided properties.
|
static interface |
FitsIntWriter.PerCCDMetaDataProvider
Interface for providing additional CCD specific meta-data providers
|
| Constructor and Description |
|---|
FitsIntWriter(Image image,
org.lsst.ccs.utilities.ccd.Reb reb,
FitsIntWriter.FileNamer fileNamer)
A FitsIntWriter constructor that can be called before the source
meta-data is available.
|
FitsIntWriter(Source source,
org.lsst.ccs.utilities.ccd.Reb reb,
Map<String,org.lsst.ccs.utilities.image.HeaderSpecification> headerSpecifications,
FitsIntWriter.FileNamer fileNamer,
FitsIntWriter.PerCCDMetaDataProvider extraMetaDataProvider)
Create a FitsIntWriter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
completeInitialization(Source source,
Map<String,org.lsst.ccs.utilities.image.HeaderSpecification> headerSpecifications,
FitsIntWriter.PerCCDMetaDataProvider extraMetaDataProvider) |
List<File> |
getFiles()
Access the list of files (to be) written by this instance.
|
boolean |
isInitialized() |
boolean |
isOpen() |
void |
write(int i) |
void |
write(IntBuffer buffer) |
public FitsIntWriter(Image image, org.lsst.ccs.utilities.ccd.Reb reb, FitsIntWriter.FileNamer fileNamer) throws IOException
image - The image for which data is to be writtenreb - The corresponding REBfileNamer - An interface for generating the names of the fits files
to writeIOExceptionpublic FitsIntWriter(Source source, org.lsst.ccs.utilities.ccd.Reb reb, Map<String,org.lsst.ccs.utilities.image.HeaderSpecification> headerSpecifications, FitsIntWriter.FileNamer fileNamer, FitsIntWriter.PerCCDMetaDataProvider extraMetaDataProvider) throws DAQException, IOException
source - The source for which data is to be writtenreb - The corresponding REBheaderSpecifications - Fits header specificationsfileNamer - An interface for generating the names of the fits files
to writeextraMetaDataProvider - Additional per-ccd fits header meta-data
providersDAQException - If unable to obtain information about the source.IOException - If an error occurs while writing the filepublic final void completeInitialization(Source source, Map<String,org.lsst.ccs.utilities.image.HeaderSpecification> headerSpecifications, FitsIntWriter.PerCCDMetaDataProvider extraMetaDataProvider) throws DAQException, IOException
DAQExceptionIOExceptionpublic boolean isInitialized()
public void write(int i)
throws IOException
write in interface WritableIntChannelIOExceptionpublic void write(IntBuffer buffer) throws IOException
write in interface WritableIntChannelIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionCopyright © 2020 LSST. All rights reserved.