diff options
| author | Charles Karney <charles.karney@sri.com> | 2020-10-27 10:02:27 -0400 |
|---|---|---|
| committer | Charles Karney <charles.karney@sri.com> | 2020-10-27 10:02:27 -0400 |
| commit | 94e36270ca393bd7b107bf690f09fd8ec1cd046b (patch) | |
| tree | dd153675742ead1db539f3b7d155b6bb95ba4d7c /src/phi2.cpp | |
| parent | 6bd7c777f8e789f8ea34a6aa68104ab44a31beee (diff) | |
| download | PROJ-94e36270ca393bd7b107bf690f09fd8ec1cd046b.tar.gz PROJ-94e36270ca393bd7b107bf690f09fd8ec1cd046b.zip | |
Use nm units in builtins.gie. Remove backward looking comments in code.
Diffstat (limited to 'src/phi2.cpp')
| -rw-r--r-- | src/phi2.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/phi2.cpp b/src/phi2.cpp index b9b37765..0fdca47c 100644 --- a/src/phi2.cpp +++ b/src/phi2.cpp @@ -116,6 +116,7 @@ double pj_phi2(projCtx ctx, const double ts0, const double e) { * Determine latitude angle phi-2. * Inputs: * ts = exp(-psi) where psi is the isometric latitude (dimensionless) + * this variable is defined in Snyder (1987), Eq. (7-10) * e = eccentricity of the ellipsoid (dimensionless) * Output: * phi = geographic latitude (radians) @@ -123,13 +124,12 @@ double pj_phi2(projCtx ctx, const double ts0, const double e) { * psi = log( tan(pi/4 + phi/2) * * ( (1 - e*sin(phi)) / (1 + e*sin(phi)) )^(e/2) ) * = asinh(tan(phi)) - e * atanh(e * sin(phi)) + * = asinh(tan(chi)) + * chi = conformal latitude * - * OLD: This routine inverts this relation using the iterative scheme given - * by Snyder (1987), Eqs. (7-9) - (7-11). + * This routine converts t = exp(-psi) to * - * NEW: This routine converts t = exp(-psi) to - * - * tau' = sinh(psi) = (1/t - t)/2 + * tau' = tan(chi) = sinh(psi) = (1/t - t)/2 * * returns atan(sinpsi2tanphi(tau')) ***************************************************************************/ |
