lsst.astshim
20.0.0-2-gb780d76+d529cf1a41
|
Go to the documentation of this file.
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()))) {
239 std::stringstream os;
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)) {
266 std::ostringstream os;
267 os <<
"this is a " <<
getClassName() <<
", which is not a WcsMap";
268 throw std::invalid_argument(os.str());
virtual ~WcsMap()
Definition: WcsMap.h:215
WcsType
Definition: WcsMap.h:48
void assertOK(AstObject *rawPtr1=nullptr, AstObject *rawPtr2=nullptr)
Definition: base.cc:49
WcsMap & operator=(WcsMap const &)=delete
WcsMap(WcsMap const &)=default
Copy constructor: make a deep copy.
double getPVi_m(int i, int m) const
Definition: WcsMap.h:238
double getNatLon() const
get NatLon: native longitude of the reference point of a FITS-WCS projection.
Definition: WcsMap.h:230
WcsMap(WcsMap &&)=default
std::pair< int, int > getWcsAxis() const
Definition: WcsMap.h:250
WcsMap & operator=(WcsMap &&)=default
std::string getClassName() const
Definition: Object.h:139
int getPVMax(int axis) const
Get PVMax(axis) for one axis: maximum number of FITS-WCS projection parameters.
Definition: WcsMap.h:245
int getI(std::string const &attrib) const
Definition: Object.h:400
WcsMap(int ncoord, WcsType type, int lonax, int latax, std::string const &options="")
Definition: WcsMap.h:209
WcsMap(AstWcsMap *rawptr)
Construct a WcsMap from a raw AST pointer.
Definition: WcsMap.h:264
virtual std::shared_ptr< Object > copyPolymorphic() const override
Definition: WcsMap.h:259
AST wrapper classes and functions.
Definition: attributes_channel.dox:1
double getD(std::string const &attrib) const
Definition: Object.h:374
double getNatLat() const
get NatLat: native latitude of the reference point of a FITS-WCS projection.
Definition: WcsMap.h:227
std::shared_ptr< WcsMap > copy() const
Return a deep copy of this object.
Definition: WcsMap.h:224
WcsType getWcsType() const
Get WcsType: FITS-WCS projection type.
Definition: WcsMap.h:256
AstObject const * getRawPtr() const
Definition: Object.h:292
std::string formatAxisAttr(std::string const &name, int axis)
Definition: utils.h:79