Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-23694: Create script for producing distortion model from Jointcal output #32

Merged
merged 1 commit into from
Apr 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/SpherePoint.cc
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,10 @@ SpherePoint averageSpherePoint(std::vector<SpherePoint> const& coords) {
}

ostream& operator<<(ostream& os, SpherePoint const& point) {
// Can't provide atomic guarantee anyway for I/O, so ok to be sloppy.
// Can't provide atomic guarantee anyway for I/O, so ok to set ostream states here.
auto oldFlags = os.setf(ostream::fixed);
auto oldPrecision = os.precision(6);
// 10 digits of precision for a value in degrees is about 1 milliarcsecond
auto oldPrecision = os.precision(10);

os << "(" << point.getLongitude().asDegrees() << ", ";
os.setf(ostream::showpos);
Expand Down