summaryrefslogtreecommitdiffstats
path: root/tksao/frame/fitsimage.C
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-01-12 18:23:23 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-01-12 18:23:23 (GMT)
commit8142cb4cc65d4501fdcd8c948986cff3e9d45036 (patch)
treebf0ff25aa9975b5c0d58567caa5c5fbcab600d5d /tksao/frame/fitsimage.C
parent10e68f58b7f7d74c4ba02cb0561e2c1d59f6d92b (diff)
downloadblt-8142cb4cc65d4501fdcd8c948986cff3e9d45036.zip
blt-8142cb4cc65d4501fdcd8c948986cff3e9d45036.tar.gz
blt-8142cb4cc65d4501fdcd8c948986cff3e9d45036.tar.bz2
add precision command tests
Diffstat (limited to 'tksao/frame/fitsimage.C')
-rw-r--r--tksao/frame/fitsimage.C24
1 files changed, 12 insertions, 12 deletions
diff --git a/tksao/frame/fitsimage.C b/tksao/frame/fitsimage.C
index 31f4998..78a4dd2 100644
--- a/tksao/frame/fitsimage.C
+++ b/tksao/frame/fitsimage.C
@@ -3188,14 +3188,14 @@ char* FitsImage::pix2wcs(const Vector& in, Coord::CoordSystem sys,
if (astOK && checkWCS(out)) {
if (wcsIsASkyFrame(ast_[ss])) {
ostringstream hms;
- hms << "hms." << context_->parent_->precHMS;
+ hms << "hms." << context_->parent_->precHMS_;
ostringstream dms;
- dms << "+dms." << context_->parent_->precDMS;
+ dms << "+dms." << context_->parent_->precDMS_;
switch (format) {
case Coord::DEGREES:
out = radToDeg(out);
- str << setprecision(context_->parent_->precDeg)
+ str << setprecision(context_->parent_->precDeg_)
<< out[0] << ' ' << out[1] << ' '
<< (hasWCSEqu(sys) ? coord.skyFrameStr(sky) : "") << ends;
break;
@@ -3225,7 +3225,7 @@ char* FitsImage::pix2wcs(const Vector& in, Coord::CoordSystem sys,
}
}
else
- str << setprecision(context_->parent_->precLinear)
+ str << setprecision(context_->parent_->precLinear_)
<< out[0] << ' ' << out[1] << ends;
strncpy(lbuf, str.str().c_str(), str.str().length());
@@ -3251,14 +3251,14 @@ char* FitsImage::pix2wcs(const Vector& in, Coord::CoordSystem sys,
if (astOK && checkWCS(out)) {
if (hasWCSCel(sys)) {
ostringstream hms;
- hms << "hms." << context_->parent_->precHMS;
+ hms << "hms." << context_->parent_->precHMS_;
ostringstream dms;
- dms << "+dms." << context_->parent_->precDMS;
+ dms << "+dms." << context_->parent_->precDMS_;
switch (format) {
case Coord::DEGREES:
out = radToDeg(out);
- str << setprecision(context_->parent_->precDeg)
+ str << setprecision(context_->parent_->precDeg_)
<< out[0] << ' ' << out[1] << ' '
<< (hasWCSEqu(sys) ? coord.skyFrameStr(sky) : "") << ends;
@@ -3289,7 +3289,7 @@ char* FitsImage::pix2wcs(const Vector& in, Coord::CoordSystem sys,
}
}
else
- str << setprecision(context_->parent_->precLinear)
+ str << setprecision(context_->parent_->precLinear_)
<< out[0] << ' ' << out[1] << ends;
strncpy(lbuf, str.str().c_str(), str.str().length());
@@ -3334,14 +3334,14 @@ char* FitsImage::pix2wcs(const Vector3d& in, Coord::CoordSystem sys,
if (astOK && checkWCS(out)) {
if (hasWCSCel(sys)) {
ostringstream hms;
- hms << "hms." << context_->parent_->precHMS;
+ hms << "hms." << context_->parent_->precHMS_;
ostringstream dms;
- dms << "+dms." << context_->parent_->precDMS;
+ dms << "+dms." << context_->parent_->precDMS_;
switch (format) {
case Coord::DEGREES:
out = radToDeg(out);
- str << setprecision(context_->parent_->precDeg)
+ str << setprecision(context_->parent_->precDeg_)
<< out[0] << ' ' << out[1] << ' ' << out[2]
<< ' ' << (hasWCSEqu(sys) ? coord.skyFrameStr(sky) : "") << ends;
break;
@@ -3371,7 +3371,7 @@ char* FitsImage::pix2wcs(const Vector3d& in, Coord::CoordSystem sys,
}
}
else
- str << setprecision(context_->parent_->precLinear)
+ str << setprecision(context_->parent_->precLinear_)
<< out[0] << ' ' << out[1] << ' ' << out[2] <<ends;
strncpy(lbuf, str.str().c_str(), str.str().length());