LSST Applications g07dc498a13+cb17356775,g1409bbee79+cb17356775,g1a7e361dbc+cb17356775,g1fd858c14a+d1a2a640a9,g33399d78f5+fe6948661d,g35bb328faa+e55fef2c71,g3bd4b5ce2c+cac9e18807,g3c79e8cd92+2359a18b76,g43bc871e57+a58ba40925,g53246c7159+e55fef2c71,g60b5630c4e+8133a3545f,g78460c75b0+8427c4cc8f,g78619a8342+55305cb8f0,g786e29fd12+307f82e6af,g8534526c7b+8e1c6b434f,g89139ef638+cb17356775,g8b49a6ea8e+8133a3545f,g8ffcb69f3d+818ab6c36e,g9125e01d80+e55fef2c71,g97b8272a79+98425f45f6,g989de1cb63+cb17356775,g9f33ca652e+4245ceb508,gaaedd4e678+cb17356775,gabe3b4be73+9c0c3c7524,gb1101e3267+3e5ef1d639,gb58c049af0+28045f66fd,gc1fe0db326+8133a3545f,gca43fec769+e55fef2c71,gcf25f946ba+fe6948661d,gd397e13551+64039f84ea,gd6cbbdb0b4+f6e5445f66,gde0f65d7ad+7eb368c542,ge278dab8ac+b4c2c8faf7,geab183fbe5+8133a3545f,gecb8035dfe+1f480bec5e,gefa07fa684+e7bc33f3ea,gf58bf46354+e55fef2c71,gfe7187db8c+e55afb4430,w.2025.03
LSST Data Management Base Package
|
Options for writing an image to FITS. More...
#include <fits.h>
Public Member Functions | |
template<typename T > | |
ImageWriteOptions (image::Image< T > const &image) | |
Construct with default options for images. | |
template<typename T > | |
ImageWriteOptions (image::Mask< T > const &mask) | |
Construct with default options for masks. | |
ImageWriteOptions (ImageCompressionOptions const &compression_=ImageCompressionOptions(ImageCompressionOptions::NONE), ImageScalingOptions const &scaling_=ImageScalingOptions()) | |
Construct with specific compression and scaling options. | |
ImageWriteOptions (ImageScalingOptions const &scaling_) | |
Construct with specific scaling options. | |
ImageWriteOptions (daf::base::PropertySet const &config) | |
Construct from a PropertySet. | |
Static Public Member Functions | |
static std::shared_ptr< daf::base::PropertySet > | validate (daf::base::PropertySet const &config) |
Validate a PropertySet. | |
Public Attributes | |
ImageCompressionOptions | compression |
Options controlling compression. | |
ImageScalingOptions | scaling |
Options controlling scaling. | |
Options for writing an image to FITS.
An image being written to FITS may be scaled (quantised) and/or compressed. This struct is a container for options controlling each of those separately.
|
inlineexplicit |
Construct with default options for images.
Definition at line 229 of file fits.h.
|
inlineexplicit |
|
inlineexplicit |
Construct with specific compression and scaling options.
Definition at line 236 of file fits.h.
|
inlineexplicit |
lsst::afw::fits::ImageWriteOptions::ImageWriteOptions | ( | daf::base::PropertySet const & | config | ) |
Construct from a PropertySet.
The PropertySet should include the following elements:
Use the 'validate' method to set default values for the above.
'scaling.maskPlanes' is the only entry that is allowed to be missing (because PropertySet can't represent an empty array); when it is missing, it is interpreted as an empty array.
[in] | config | Configuration of image write options |
Definition at line 1800 of file fits.cc.
|
static |
Validate a PropertySet.
Returns a validated PropertySet with default values added, suitable for use with the constructor.
For details on what elements may be included in the input, see ImageWriteOptions::ImageWriteOptions(daf::base::PropertySet const&).
[in] | config | Configuration of image write options |
lsst::pex::exceptions::RuntimeError | if entry is not recognized. |
Definition at line 1829 of file fits.cc.
ImageCompressionOptions lsst::afw::fits::ImageWriteOptions::compression |
ImageScalingOptions lsst::afw::fits::ImageWriteOptions::scaling |