summaryrefslogtreecommitdiffstats
path: root/tksao/frame/circle.C
diff options
context:
space:
mode:
Diffstat (limited to 'tksao/frame/circle.C')
-rw-r--r--tksao/frame/circle.C24
1 files changed, 17 insertions, 7 deletions
diff --git a/tksao/frame/circle.C b/tksao/frame/circle.C
index 20c6d6f..5b7b072 100644
--- a/tksao/frame/circle.C
+++ b/tksao/frame/circle.C
@@ -344,7 +344,7 @@ void Circle::listSAOtng(ostream& str,
{
Vector vv = ptr->mapFromRef(center,Coord::IMAGE);
double rr = ptr->mapLenFromRef(annuli_[0][0],Coord::IMAGE);
- str << type_ << '(' << vv << ',' << rr << ')';
+ str << type_ << '(' << setprecision(8) << vv << ',' << rr << ')';
}
break;
default:
@@ -354,12 +354,16 @@ void Circle::listSAOtng(ostream& str,
case Coord::DEGREES:
{
Vector vv = ptr->mapFromRef(center,sys,sky);
- str << type_ << '(' << vv << ',' << rr << ')';
+ str << type_ << '('
+ << setprecision(10) << vv << ','
+ << setprecision(8) << rr << ')';
}
break;
case Coord::SEXAGESIMAL:
listRADEC(ptr,center,sys,sky,format);
- str << type_ << '(' << ra << ',' << dec << ',' << rr << ')';
+ str << type_ << '('
+ << ra << ',' << dec << ','
+ << setprecision(8) << rr << ')';
break;
}
}
@@ -383,7 +387,7 @@ void Circle::listPros(ostream& str, Coord::CoordSystem sys, Coord::SkyFrame sky,
Vector vv = ptr->mapFromRef(center,sys);
double rr = ptr->mapLenFromRef(annuli_[0][0],Coord::IMAGE);
coord.listProsCoordSystem(str,sys,sky);
- str << "; " << type_ << ' ' << vv << ' ' << rr;
+ str << "; " << type_ << ' ' << setprecision(8) << vv << ' ' << rr;
}
break;
default:
@@ -394,13 +398,19 @@ void Circle::listPros(ostream& str, Coord::CoordSystem sys, Coord::SkyFrame sky,
{
Vector vv = ptr->mapFromRef(center,sys,sky);
coord.listProsCoordSystem(str,sys,sky);
- str << "; " << type_ << ' ' << setunit('d') << vv << ' ' << rr << '"';
+ str << "; " << type_ << ' '
+ << setprecision(10) << setunit('d') << vv << ' '
+ << setprecision(3) << fixed << rr << '"';
+ str.unsetf(ios_base::floatfield);
}
break;
case Coord::SEXAGESIMAL:
listRADECPros(ptr,center,sys,sky,format);
coord.listProsCoordSystem(str,sys,sky);
- str << "; " << type_ << ' ' << ra << ' ' << dec << ' ' << rr << '"';
+ str << "; " << type_ << ' '
+ << ra << ' ' << dec << ' '
+ << setprecision(3) << fixed << rr << '"';
+ str.unsetf(ios_base::floatfield);
break;
}
}
@@ -415,7 +425,7 @@ void Circle::listSAOimage(ostream& str, int strip)
listSAOimagePre(str);
Vector vv = ptr->mapFromRef(center,Coord::IMAGE);
- str << type_ << '(' << vv << ',' << annuli_[0][0] << ')';
+ str << type_ << '(' << setprecision(8) << vv << ',' << annuli_[0][0] << ')';
listSAOimagePost(str, strip);
}