22 #ifndef ASTSHIM_WCSMAP_H 23 #define ASTSHIM_WCSMAP_H 209 explicit WcsMap(
int ncoord,
WcsType type,
int lonax,
int latax, std::string
const &options =
"")
210 :
Mapping(reinterpret_cast<AstMapping *>(
211 astWcsMap(ncoord, static_cast<int>(type), lonax, latax,
"%s", options.c_str()))) {}
222 std::shared_ptr<WcsMap>
copy()
const {
return std::static_pointer_cast<
WcsMap>(copyPolymorphic()); }
237 std::stringstream os;
238 os <<
"PV" << i <<
"_" << m;
239 return getD(os.str());
258 return copyImpl<WcsMap, AstWcsMap>();
262 explicit WcsMap(AstWcsMap *rawptr) :
Mapping(reinterpret_cast<AstMapping *>(rawptr)) {
263 if (!astIsAWcsMap(getRawPtr())) {
264 std::ostringstream os;
265 os <<
"this is a " <<
getClassName() <<
", which is not a WcsMap";
266 throw std::invalid_argument(os.str());
int getPVMax(int axis) const
Get PVMax(axis) for one axis: maximum number of FITS-WCS projection parameters.
Definition: WcsMap.h:243
WcsMap(int ncoord, WcsType type, int lonax, int latax, std::string const &options="")
Definition: WcsMap.h:209
double getNatLon() const
get NatLon: native longitude of the reference point of a FITS-WCS projection.
Definition: WcsMap.h:228
AST wrapper classes and functions.
Definition: attributes_channel.dox:1
std::shared_ptr< WcsMap > copy() const
Return a deep copy of this object.
Definition: WcsMap.h:222
virtual ~WcsMap()
Definition: WcsMap.h:213
double getPVi_m(int i, int m) const
Definition: WcsMap.h:236
std::pair< int, int > getWcsAxis() const
Definition: WcsMap.h:248
WcsType
Definition: WcsMap.h:48
WcsType getWcsType() const
Get WcsType: FITS-WCS projection type.
Definition: WcsMap.h:254
virtual std::shared_ptr< Object > copyPolymorphic() const override
Definition: WcsMap.h:257
std::string getClassName(AstObject const *rawObj)
Definition: utils.cc:37
std::string formatAxisAttr(std::string const &name, int axis)
Definition: utils.h:78
double getNatLat() const
get NatLat: native latitude of the reference point of a FITS-WCS projection.
Definition: WcsMap.h:225
WcsMap(AstWcsMap *rawptr)
Construct a WcsMap from a raw AST pointer.
Definition: WcsMap.h:262