LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
22 #ifndef ASTSHIM_WCSMAP_H
23 #define ASTSHIM_WCSMAP_H
210 :
Mapping(reinterpret_cast<AstMapping *>(
211 astWcsMap(ncoord, static_cast<int>(
type), lonax, latax,
"%s", options.c_str()))) {
240 os <<
"PV" << i <<
"_" <<
m;
260 return copyImpl<WcsMap, AstWcsMap>();
264 explicit WcsMap(AstWcsMap *rawptr) :
Mapping(reinterpret_cast<AstMapping *>(rawptr)) {
267 os <<
"this is a " <<
getClassName() <<
", which is not a WcsMap";
WcsType
WCS types that give the projection type code (in upper case) as used in the FITS-WCS "CTYPEi" keyword...
void assertOK(AstObject *rawPtr1=nullptr, AstObject *rawPtr2=nullptr)
Throw std::runtime_error if AST's state is bad.
Map from a spherical system to a cartesian system using standard FITS sky coordinate projections.
WcsMap & operator=(WcsMap const &)=delete
An abstract base class for objects which transform one set of coordinates to another.
WcsMap(WcsMap const &)=default
Copy constructor: make a deep copy.
Abstract base class for all AST objects.
double getPVi_m(int i, int m) const
Get PVi_m for one value of i and m: a FITS-WCS projection parameter.
double getNatLon() const
get NatLon: native longitude of the reference point of a FITS-WCS projection.
WcsMap(WcsMap &&)=default
std::pair< int, int > getWcsAxis() const
Get WcsAxis(lonlat) FITS-WCS projection axis for longitude, latitude.
WcsMap & operator=(WcsMap &&)=default
std::string getClassName() const
Get Class: the name of the class (e.g.
int getPVMax(int axis) const
Get PVMax(axis) for one axis: maximum number of FITS-WCS projection parameters.
int getI(std::string const &attrib) const
Get the value of an attribute as an int.
WcsMap(int ncoord, WcsType type, int lonax, int latax, std::string const &options="")
Create a WcsMap.
WcsMap(AstWcsMap *rawptr)
Construct a WcsMap from a raw AST pointer.
virtual std::shared_ptr< Object > copyPolymorphic() const override
Return a deep copy of this object.
AST wrapper classes and functions.
double getD(std::string const &attrib) const
Get the value of an attribute as a double.
double getNatLat() const
get NatLat: native latitude of the reference point of a FITS-WCS projection.
std::shared_ptr< WcsMap > copy() const
Return a deep copy of this object.
WcsType getWcsType() const
Get WcsType: FITS-WCS projection type.
AstObject const * getRawPtr() const
Get the raw AST pointer.
std::string formatAxisAttr(std::string const &name, int axis)
Format an axis-specific attribute by appending the axis index.