diff options
Diffstat (limited to 'tksao/frame/marker.C')
-rw-r--r-- | tksao/frame/marker.C | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/tksao/frame/marker.C b/tksao/frame/marker.C index 5741cf6..2a6ba16 100644 --- a/tksao/frame/marker.C +++ b/tksao/frame/marker.C @@ -1392,66 +1392,6 @@ void Marker::setMatrices(Coord::InternalSystem sys, Matrix* fwd, Matrix* bck) // list -void Marker::listWCS(FitsImage* ptr, - const Vector& vv, Coord::CoordSystem sys, - Coord::SkyFrame sky, Coord::SkyFormat format) -{ - char buf[128]; - ptr->mapFromRef(vv,sys,sky,format,buf); - char* bptr = buf; - - // lon - char* rptr = ra; - while (*bptr && *bptr != ' ') - *rptr++ = *bptr++; - *rptr = '\0'; - - // lat - char* dptr = dec; - bptr++; - while (*bptr && *bptr != ' ') - *dptr++ = *bptr++; - *dptr = '\0'; -} - -void Marker::listWCSLen(ostream& str, FitsImage* ptr, - const Vector& vv, Coord::CoordSystem sys) -{ - if (ptr->hasWCSCel(sys)) { - str << setprecision(parent->precArcsec_) << fixed << setunit('"') << vv; - str.unsetf(ios_base::floatfield); - } - else - str << setprecision(parent->precLinear_) << vv; - str << ','; -} - -void Marker::listWCSPros(FitsImage* ptr, - const Vector& vv, Coord::CoordSystem sys, - Coord::SkyFrame sky, Coord::SkyFormat format) -{ - char buf[128]; - ptr->mapFromRef(vv,sys,sky,format,buf); - char* bptr = buf; - - // lon - char* rptr = ra; - while (*bptr && *bptr != ' ') - *rptr++ = *bptr++; - *rptr = '\0'; - - // lat - char* dptr = dec; - - // skip '+' at beginning - bptr++; - if (*bptr == '+') - bptr++; - while (*bptr && *bptr != ' ') - *dptr++ = *bptr++; - *dptr = '\0'; -} - void Marker::listPre(ostream& str, Coord::CoordSystem sys, Coord::SkyFrame sky, FitsImage* ptr, int strip, int hash) { |