LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
2 #ifndef AFW_TABLE_IO_FitsReader_h_INCLUDED
3 #define AFW_TABLE_IO_FitsReader_h_INCLUDED
70 template <
typename ContainerT>
74 fits.readMetadata(*metadata,
true);
75 FitsReader const* reader = _lookupFitsReader(*metadata);
77 reader->_setupArchive(
fits,
mapper, archive, ioFlags);
79 ContainerT container(std::dynamic_pointer_cast<typename ContainerT::Table>(table));
80 if (!container.getTable()) {
84 container.reserve(nRows);
103 template <
typename ContainerT,
typename SourceT>
108 return apply<ContainerT>(
fits, ioFlags, archive);
132 int ioFlags,
bool stripMetadata)
const;
153 #endif // !AFW_TABLE_IO_FitsReader_h_INCLUDED
FitsReader(FitsReader const &)=default
virtual bool usesArchive(int ioFlags) const
Callback that should return true if the FitsReader subclass makes use of an InputArchive to read firs...
A simple struct that combines the two arguments that must be passed to most cfitsio routines and cont...
virtual std::shared_ptr< BaseTable > makeTable(FitsSchemaInputMapper &mapper, std::shared_ptr< daf::base::PropertyList > metadata, int ioFlags, bool stripMetadata) const
Callback to create a Table object from a FITS binary table schema.
Class for storing ordered metadata with comments.
const char * source()
Source function that allows astChannel to source from a Stream.
FitsReader & operator=(FitsReader &&)=default
A utility class for reading FITS binary tables.
A base class for image defects.
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
static ContainerT apply(SourceT &source, int hdu, int ioFlags, std::shared_ptr< InputArchive > archive=std::shared_ptr< InputArchive >())
Create a new Catalog by reading a FITS file.
virtual ~FitsReader()=default
FitsReader(std::string const &persistedClassName)
Construct a FitsReader, registering it to be used for all persisted tables with the given tag.
static ContainerT apply(afw::fits::Fits &fits, int ioFlags, std::shared_ptr< InputArchive > archive=std::shared_ptr< InputArchive >())
Create a new Catalog by reading a FITS binary table.
FitsReader(FitsReader &&)=default
FitsReader & operator=(FitsReader const &)=default
Reports errors that are due to events beyond the control of the program.