|
lsst.afw
14.0-25-g0e8fc950e+3
|
Namespaces | |
| compression | |
| detail | |
| fitsContinued | |
| fitsLib | |
| pickleFits | |
Classes | |
| class | Fits |
| A simple struct that combines the two arguments that must be passed to most cfitsio routines and contains thin and/or templated wrappers around common cfitsio routines. More... | |
| class | FitsError |
| An exception thrown when problems are found when reading or writing FITS files. More... | |
| class | FitsTypeError |
| An exception thrown when a FITS file has the wrong type. More... | |
| class | HeaderIterationFunctor |
| Base class for polymorphic functors used to iterator over FITS key headers. More... | |
| struct | ImageCompressionOptions |
| Options for tile compression of image pixels. More... | |
| struct | ImageScale |
| Scale to apply to image. More... | |
| class | ImageScalingOptions |
| Options for scaling image pixels. More... | |
| struct | ImageWriteOptions |
| Options for writing an image to FITS. More... | |
| class | MemFileManager |
| Lifetime-management for memory that goes into FITS memory files. More... | |
Functions | |
| std::string | makeErrorMessage (std::string const &fileName="", int status=0, std::string const &msg="") |
| Return an error message reflecting FITS I/O errors. More... | |
| std::string | makeErrorMessage (std::string const &fileName, int status, boost::format const &msg) |
| std::string | makeErrorMessage (void *fptr, int status=0, std::string const &msg="") |
| Return an error message reflecting FITS I/O errors. More... | |
| std::string | makeErrorMessage (void *fptr, int status, boost::format const &msg) |
| template<typename T > | |
| int | getBitPix () |
| Return the cfitsio integer BITPIX code for the given data type. More... | |
| template<typename T , int N, int C> | |
| ndarray::Array< T const, N, N > const | makeContiguousArray (ndarray::Array< T, N, C > const &array) |
| Construct a contiguous ndarray. More... | |
| std::shared_ptr< daf::base::PropertyList > | readMetadata (std::string const &fileName, int hdu=INT_MIN, bool strip=false) |
| Read FITS header. More... | |
| std::shared_ptr< daf::base::PropertyList > | readMetadata (fits::MemFileManager &manager, int hdu=INT_MIN, bool strip=false) |
| Read FITS header. More... | |
| std::shared_ptr< daf::base::PropertyList > | readMetadata (fits::Fits &fitsfile, bool strip=false) |
| Read FITS header. More... | |
| void | setAllowImageCompression (bool allow) |
| bool | getAllowImageCompression () |
| ImageCompressionOptions::CompressionAlgorithm | compressionAlgorithmFromString (std::string const &name) |
| Interpret compression algorithm expressed in string. More... | |
| std::string | compressionAlgorithmToString (ImageCompressionOptions::CompressionAlgorithm algorithm) |
| Provide string version of compression algorithm. More... | |
| ImageCompressionOptions::CompressionAlgorithm | compressionAlgorithmFromCfitsio (int cfitsio) |
| Convert compression algorithm from cfitsio to ImageCompressionOptions::CompressionAlgorithm. More... | |
| int | compressionAlgorithmToCfitsio (ImageCompressionOptions::CompressionAlgorithm algorithm) |
| Convert ImageCompressionOptions::CompressionAlgorithm to cfitsio. More... | |
| ImageScalingOptions::ScalingAlgorithm | scalingAlgorithmFromString (std::string const &name) |
| Interpret scaling algorithm expressed in string. More... | |
| std::string | scalingAlgorithmToString (ImageScalingOptions::ScalingAlgorithm algorithm) |
| Provide string version of compression algorithm. More... | |
| ImageCompressionOptions::CompressionAlgorithm lsst::afw::fits::compressionAlgorithmFromCfitsio | ( | int | cfitsio | ) |
Convert compression algorithm from cfitsio to ImageCompressionOptions::CompressionAlgorithm.
| ImageCompressionOptions::CompressionAlgorithm lsst::afw::fits::compressionAlgorithmFromString | ( | std::string const & | name | ) |
Interpret compression algorithm expressed in string.
| int lsst::afw::fits::compressionAlgorithmToCfitsio | ( | ImageCompressionOptions::CompressionAlgorithm | algorithm | ) |
Convert ImageCompressionOptions::CompressionAlgorithm to cfitsio.
| std::string lsst::afw::fits::compressionAlgorithmToString | ( | ImageCompressionOptions::CompressionAlgorithm | algorithm | ) |
Provide string version of compression algorithm.
| bool lsst::afw::fits::getAllowImageCompression | ( | ) |
| int lsst::afw::fits::getBitPix | ( | ) |
Return the cfitsio integer BITPIX code for the given data type.
| ndarray::Array<T const, N, N> const lsst::afw::fits::makeContiguousArray | ( | ndarray::Array< T, N, C > const & | array | ) |
| std::string lsst::afw::fits::makeErrorMessage | ( | std::string const & | fileName = "", |
| int | status = 0, |
||
| std::string const & | msg = "" |
||
| ) |
Return an error message reflecting FITS I/O errors.
| [in] | fileName | FITS filename to be included in the error message. |
| [in] | status | The last status value returned by the cfitsio library; if nonzero, the error message will include a description from cfitsio. |
| [in] | msg | An additional custom message to include. |
|
inline |
| std::string lsst::afw::fits::makeErrorMessage | ( | void * | fptr, |
| int | status = 0, |
||
| std::string const & | msg = "" |
||
| ) |
Return an error message reflecting FITS I/O errors.
| [in] | fptr | A cfitsio fitsfile pointer to be inspected for a filename. Passed as void* to avoid including fitsio.h in the header file. |
| [in] | status | The last status value returned by the cfitsio library; if nonzero, the error message will include a description from cfitsio. |
| [in] | msg | An additional custom message to include. |
|
inline |
|
inline |
Read FITS header.
Includes support for the INHERIT convention: if 'INHERIT = T' is in the header, the PHU will be read as well, and nominated HDU will override any duplicated values.
| fileName | the file whose header will be read |
| hdu | the HDU to read (0-indexed; 0 is the Primary HDU). |
| strip | if true, common FITS keys that usually have non-metadata intepretations (e.g. NAXIS, BITPIX) will be ignored. |
Read FITS header.
| [in] | fileName | File to read. |
| [in] | hdu | HDU to read, 0-indexed. The special value of INT_MIN will read the first non-empty HDU. |
| [in] | strip | If true, ignore special header keys usually managed by cfitsio (e.g. NAXIS). |
| std::shared_ptr<daf::base::PropertyList> lsst::afw::fits::readMetadata | ( | fits::MemFileManager & | manager, |
| int | hdu = INT_MIN, |
||
| bool | strip = false |
||
| ) |
Read FITS header.
Includes support for the INHERIT convention: if 'INHERIT = T' is in the header, the PHU will be read as well, and nominated HDU will override any duplicated values.
| manager | the in-memory file whose header will be read |
| hdu | the HDU to read (0-indexed; 0 is the Primary HDU). |
| strip | if true, common FITS keys that usually have non-metadata intepretations (e.g. NAXIS, BITPIX) will be ignored. |
| std::shared_ptr<daf::base::PropertyList> lsst::afw::fits::readMetadata | ( | fits::Fits & | fitsfile, |
| bool | strip = false |
||
| ) |
Read FITS header.
Includes support for the INHERIT convention: if 'INHERIT = T' is in the header, the PHU will be read as well, and nominated HDU will override any duplicated values.
| fitsfile | the file and HDU to be read |
| strip | if true, common FITS keys that usually have non-metadata intepretations (e.g. NAXIS, BITPIX) will be ignored. |
| ImageScalingOptions::ScalingAlgorithm lsst::afw::fits::scalingAlgorithmFromString | ( | std::string const & | name | ) |
Interpret scaling algorithm expressed in string.
| std::string lsst::afw::fits::scalingAlgorithmToString | ( | ImageScalingOptions::ScalingAlgorithm | algorithm | ) |
Provide string version of compression algorithm.
| void lsst::afw::fits::setAllowImageCompression | ( | bool | allow | ) |
1.8.13