4 #include <CCfits/CCfits> 5 #include <gsl/gsl_spline.h> 33 constexpr
double m_H = 1.6737237e-24;
46 setKeys(CCfits::ExtHDU &hdu,
const CCfits::PHDU &hdu0,
52 CCfits::FITS *outFITS,
63 getBand(
const CCfits::HDU &hdu);
void process(const mutils::CommandLine &cli)
Processes multi-wavelength maps into temperature/column density maps.
constexpr double h_Planck
Planck's constant (erg*s).
constexpr double k_Boltzman
Planck's constant (erg/K).
Command line options and arguments.
constexpr double m_H
Mass of hygdrogen atom (g).
Declares the CommandLine class.
constexpr double c_light
Speed of light (cm/s).
mapDataType getError(const mapDataType &data, CCfits::PHDU &hdu, const mutils::CommandLine &cli)
void solve(std::vector< mapDataType > &outMap, std::vector< CCfits::ExtHDU * > &outHDU, CCfits::FITS *outFITS, const std::vector< mapDataType > &bandData, const std::vector< mapDataType > &bandError, const std::vector< CCfits::PHDU * > &bandHDU, const std::vector< long > &axis, const mutils::CommandLine &cli, const std::vector< long > &ll, const std::vector< long > &ur, const std::vector< long > &st)
Performs least-squares fitting of band SEDs.
int getBand(const CCfits::HDU &hdu)
Returns nominal band center (microns) from an HDU.
constexpr long modelMapLen
One-dimensional length of model map image.
gsl_spline * initSpline(const tableType &table, bool ln, unsigned stride)
Initializes cubic spline interpolator.
constexpr int mapDataCode
Output FITS maps data code (cf. mapDataType).
void setKeys(CCfits::ExtHDU &hdu, const CCfits::PHDU &hdu0, const mutils::CommandLine &cli, const std::vector< long > &ll)
Sets header keywords for an output map.