Skip to content

Commit

Permalink
Merge pull request #1 from DaKup/main
Browse files Browse the repository at this point in the history
use spherical Mars model instead of spheroid to be consistent with MCZ conventions
  • Loading branch information
haraldsteinlechner authored Jul 19, 2021
2 parents 0816312 + 38c3f2a commit d9c832e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CooTransformation/src/CooTransformation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ int Xyz2LatLonAlt(const char* pcPlanet, double dX, double dY, double dZ, double*

// Compute flattening coefficient.
double dRadiusEquat = adRadii[0];
double dRadiusPole = adRadii[2];
double dRadiusPole = dRadiusEquat; // use spherical Mars model instead of spheroid to be consistent with MCZ conventions
double dFlattening = (dRadiusEquat - dRadiusPole) / dRadiusEquat;

// Do the conversion.
Expand Down Expand Up @@ -236,7 +236,7 @@ int LatLonAlt2Xyz(const char* pcPlanet, double dLat, double dLon, double dAlt, d

// Compute flattening coefficient.
double dRadiusEquat = adRadii[0];
double dRadiusPole = adRadii[2];
double dRadiusPole = dRadiusEquat; // use spherical Mars model instead of spheroid to be consistent with MCZ conventions
double dFlattening = (dRadiusEquat - dRadiusPole) / dRadiusEquat;

// Do the conversion.
Expand Down

0 comments on commit d9c832e

Please sign in to comment.