Loading [MathJax]/extensions/tex2jax.js
LSST Applications g04a91732dc+2945638123,g07dc498a13+7e3c5f68a2,g12483e3c20+e0fa9c8503,g1409bbee79+7e3c5f68a2,g1a7e361dbc+7e3c5f68a2,g1fd858c14a+9f35e23ec3,g35bb328faa+fcb1d3bbc8,g3ad4f90e5c+e0fa9c8503,g3bd4b5ce2c+36fb6ead7f,g4e0f332c67+5d362be553,g53246c7159+fcb1d3bbc8,g5477a8d5ce+db04660fe6,g60b5630c4e+e0fa9c8503,g75b6c65c88+55830bd904,g78460c75b0+2f9a1b4bcd,g786e29fd12+cf7ec2a62a,g7b71ed6315+fcb1d3bbc8,g8852436030+4639f750a5,g89139ef638+7e3c5f68a2,g8f1d76f86f+11a01f47f4,g9125e01d80+fcb1d3bbc8,g919ac25b3e+28db628500,g95236ca021+f7a31438ed,g989de1cb63+7e3c5f68a2,g9f33ca652e+d1e6496fea,ga365f290ef+26a6f9aaf0,gaaedd4e678+7e3c5f68a2,gabe3b4be73+1e0a283bba,gb1101e3267+c09b629e83,gb4a253aaf5+0122250889,gb58c049af0+f03b321e39,gbaa7868d32+e0fa9c8503,gc99c83e5f0+76d20ab76d,gcf25f946ba+4639f750a5,gd6cbbdb0b4+c8606af20c,gde0f65d7ad+021d0de224,ge278dab8ac+932305ba37,gfba249425e+fcb1d3bbc8,w.2025.08
LSST Data Management Base Package
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
lsst::afw::fits::detail Namespace Reference

Classes

struct  Bitpix
 FITS BITPIX header value by C++ type. More...
 
struct  Bitpix< double >
 
struct  Bitpix< float >
 
struct  Bitpix< std::int16_t >
 
struct  Bitpix< std::int32_t >
 
struct  Bitpix< std::int64_t >
 
struct  Bitpix< std::uint16_t >
 
struct  Bitpix< std::uint32_t >
 
struct  Bitpix< std::uint64_t >
 
struct  Bitpix< std::uint8_t >
 
class  PixelArray
 Typed array of pixel values. More...
 
class  PixelArrayBase
 Abstract base class for an array of pixel values. More...
 

Functions

template<typename T>
std::shared_ptr< PixelArrayBasemakePixelArray (int bitpix, ndarray::Array< T, 1, 1 > const &array)
 Create a PixelArray suitable for an image with the nominated BITPIX.
 
template<typename T, typename... Args>
dafPlistPtr _readMetadata (T &&fitsparm, bool strip, Args... args)
 

Function Documentation

◆ _readMetadata()

template<typename T, typename... Args>
dafPlistPtr lsst::afw::fits::detail::_readMetadata ( T && fitsparm,
bool strip,
Args... args )

Definition at line 1688 of file fits.cc.

1688 {
1690 fp.setHdu(args...);
1691 return readMetadata(fp, strip);
1692}
A simple struct that combines the two arguments that must be passed to most cfitsio routines and cont...
Definition fits.h:308
std::shared_ptr< daf::base::PropertyList > readMetadata(std::string const &fileName, int hdu=DEFAULT_HDU, bool strip=false)
Read FITS header.
Definition fits.cc:1696

◆ makePixelArray()

template<typename T>
std::shared_ptr< PixelArrayBase > lsst::afw::fits::detail::makePixelArray ( int bitpix,
ndarray::Array< T, 1, 1 > const & array )

Create a PixelArray suitable for an image with the nominated BITPIX.

Parameters
[in]bitpixBits per pixel (0,8,16,32,64,-32,-64) for output.
[in]arrayArray with pixel values to convert.
Returns
A new PixelArray.

Definition at line 134 of file fitsCompression.h.

134 {
135 switch (bitpix) {
136 case 0:
137 return std::make_shared<PixelArray<T>>(array);
138 case 8:
140 case 16:
142 case 32:
144 case 64:
146 case -32:
148 case -64:
150 default:
152 os << "Unrecognized bitpix: " << bitpix;
154 }
155}
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
Definition Exception.h:48
Reports invalid arguments.
Definition Runtime.h:66
T make_shared(T... args)
T str(T... args)