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;
241 return getD(os.
str());
260 return copyImpl<WcsMap, AstWcsMap>();
264 explicit WcsMap(AstWcsMap *rawptr) :
Mapping(reinterpret_cast<AstMapping *>(rawptr)) {
265 if (!astIsAWcsMap(getRawPtr())) {
267 os <<
"this is a " <<
getClassName() <<
", which is not a WcsMap";
int getPVMax(int axis) const
Get PVMax(axis) for one axis: maximum number of FITS-WCS projection parameters.
WcsMap(int ncoord, WcsType type, int lonax, int latax, std::string const &options="")
Create a WcsMap.
double getNatLon() const
get NatLon: native longitude of the reference point of a FITS-WCS projection.
AST wrapper classes and functions.
Map from a spherical system to a cartesian system using standard FITS sky coordinate projections...
std::shared_ptr< WcsMap > copy() const
Return a deep copy of this object.
void assertOK(AstObject *rawPtr1=nullptr, AstObject *rawPtr2=nullptr)
Throw std::runtime_error if AST's state is bad.
double getPVi_m(int i, int m) const
Get PVi_m for one value of i and m: a FITS-WCS projection parameter.
An abstract base class for objects which transform one set of coordinates to another.
std::pair< int, int > getWcsAxis() const
Get WcsAxis(lonlat) FITS-WCS projection axis for longitude, latitude.
WcsType
WCS types that give the projection type code (in upper case) as used in the FITS-WCS "CTYPEi" keyword...
WcsType getWcsType() const
Get WcsType: FITS-WCS projection type.
T static_pointer_cast(T... args)
virtual std::shared_ptr< Object > copyPolymorphic() const override
Return a deep copy of this object.
std::string getClassName(AstObject const *rawObj)
Get the AST class name, changing CmpMap to SeriesMap or ParallelMap as appropriate.
std::string formatAxisAttr(std::string const &name, int axis)
Format an axis-specific attribute by appending the axis index.
double getNatLat() const
get NatLat: native latitude of the reference point of a FITS-WCS projection.
Abstract base class for all AST objects.
WcsMap(AstWcsMap *rawptr)
Construct a WcsMap from a raw AST pointer.