|
LSSTApplications
11.0-13-gbb96280,12.1+18,12.1+7,12.1-1-g14f38d3+72,12.1-1-g16c0db7+5,12.1-1-g5961e7a+84,12.1-1-ge22e12b+23,12.1-11-g06625e2+4,12.1-11-g0d7f63b+4,12.1-19-gd507bfc,12.1-2-g7dda0ab+38,12.1-2-gc0bc6ab+81,12.1-21-g6ffe579+2,12.1-21-gbdb6c2a+4,12.1-24-g941c398+5,12.1-3-g57f6835+7,12.1-3-gf0736f3,12.1-37-g3ddd237,12.1-4-gf46015e+5,12.1-5-g06c326c+20,12.1-5-g648ee80+3,12.1-5-gc2189d7+4,12.1-6-ga608fc0+1,12.1-7-g3349e2a+5,12.1-7-gfd75620+9,12.1-9-g577b946+5,12.1-9-gc4df26a+10
LSSTDataManagementBasePackage
|
Utilities for working with FITS files. More...
#include <string>#include <boost/format.hpp>#include "lsst/base.h"#include "lsst/pex/exceptions.h"#include "lsst/daf/base.h"#include "ndarray.h"Go to the source code of this file.
Classes | |
| class | lsst::afw.fits::HeaderIterationFunctor |
| An exception thrown when problems are found when reading or writing FITS files. More... | |
| class | lsst::afw.fits::MemFileManager |
| Lifetime-management for memory that goes into FITS memory files. More... | |
| class | lsst::afw.fits::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... | |
Namespaces | |
| lsst | |
| Remove all non-astronomical counts from the Chunk Exposure's pixels. | |
| lsst::afw | |
| lsst.afw.fits | |
Macros | |
| #define | LSST_FITS_EXCEPT(type, fitsObj,...) type(LSST_EXCEPT_HERE, lsst::afw::fits::makeErrorMessage((fitsObj).fptr, (fitsObj).status, __VA_ARGS__)) |
| A FITS-related replacement for LSST_EXCEPT that takes an additional Fits object and uses makeErrorMessage(fitsObj.fptr, fitsObj.status, ...) to construct the message. More... | |
| #define | LSST_FITS_CHECK_STATUS(fitsObj,...) if ((fitsObj).status != 0) throw LSST_FITS_EXCEPT(lsst::afw::fits::FitsError, fitsObj, __VA_ARGS__) |
| Throw a FitsError exception if the status of the given Fits object is nonzero. More... | |
Functions | |
| 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. More... | |
| std::string | lsst.afw.fits::makeErrorMessage (std::string const &fileName, int status, boost::format const &msg) |
| std::string | lsst.afw.fits::makeErrorMessage (void *fptr, int status=0, std::string const &msg="") |
| Return an error message reflecting FITS I/O errors. More... | |
| std::string | lsst.afw.fits::makeErrorMessage (void *fptr, int status, boost::format const &msg) |
| template<typename T > | |
| int | lsst.afw.fits::getBitPix () |
| Return the cfitsio integer BITPIX code for the given data type. More... | |
| boost::shared_ptr < daf::base::PropertyList > | lsst.afw.fits::readMetadata (std::string const &fileName, int hdu=0, bool strip=false) |
| Read FITS header. More... | |
| boost::shared_ptr < daf::base::PropertyList > | lsst.afw.fits::readMetadata (fits::MemFileManager &manager, int hdu=0, bool strip=false) |
| Read FITS header. More... | |
| boost::shared_ptr < daf::base::PropertyList > | lsst.afw.fits::readMetadata (fits::Fits &fitsfile, bool strip=false) |
| Read FITS header. More... | |
Utilities for working with FITS files.
These are mostly thin wrappers around cfitsio calls, and their main purpose is to transform functions signatures from void pointers and cfitsio's preprocessor type enums to a more type-safe and convenient interface using overloads and templates.
This was written as part of implementing the afw/table library. Someday the afw/image FITS I/O should be modified to use some of these with the goal of eliminating a lot of code between the two.
Definition in file fits.h.
| #define LSST_FITS_CHECK_STATUS | ( | fitsObj, | |
| ... | |||
| ) | if ((fitsObj).status != 0) throw LSST_FITS_EXCEPT(lsst::afw::fits::FitsError, fitsObj, __VA_ARGS__) |
| #define LSST_FITS_EXCEPT | ( | type, | |
| fitsObj, | |||
| ... | |||
| ) | type(LSST_EXCEPT_HERE, lsst::afw::fits::makeErrorMessage((fitsObj).fptr, (fitsObj).status, __VA_ARGS__)) |
1.8.5