Loading [MathJax]/extensions/tex2jax.js
LSST Applications g0fba68d861+849f694866,g1fd858c14a+7a7b9dd5ed,g2c84ff76c0+5cb23283cf,g30358e5240+f0e04ebe90,g35bb328faa+fcb1d3bbc8,g436fd98eb5+bdc6fcdd04,g4af146b050+742274f7cd,g4d2262a081+9d5bd0394b,g4e0f332c67+cb09b8a5b6,g53246c7159+fcb1d3bbc8,g5a012ec0e7+477f9c599b,g60b5630c4e+bdc6fcdd04,g67b6fd64d1+2218407a0c,g78460c75b0+2f9a1b4bcd,g786e29fd12+cf7ec2a62a,g7b71ed6315+fcb1d3bbc8,g87b7deb4dc+777438113c,g8852436030+ebf28f0d95,g89139ef638+2218407a0c,g9125e01d80+fcb1d3bbc8,g989de1cb63+2218407a0c,g9f33ca652e+42fb53f4c8,g9f7030ddb1+11b9b6f027,ga2b97cdc51+bdc6fcdd04,gab72ac2889+bdc6fcdd04,gabe3b4be73+1e0a283bba,gabf8522325+3210f02652,gb1101e3267+9c79701da9,gb58c049af0+f03b321e39,gb89ab40317+2218407a0c,gcf25f946ba+ebf28f0d95,gd6cbbdb0b4+e8f9c9c900,gd9a9a58781+fcb1d3bbc8,gde0f65d7ad+47bbabaf80,gded526ad44+8c3210761e,ge278dab8ac+3ef3db156b,ge410e46f29+2218407a0c,gf67bdafdda+2218407a0c,v29.0.0.rc3
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)