You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tesseroid modeling is done in geocentric spherical coordinates (longitude, geocentric latitude, radius) but the data is usually in geodetic coordinates (longitude, geodetic latitude, geometric height). Proj4 apparently only converts the latitudes (https://proj4.org/operations/conversions/geoc.html) but not the height to radius. We need a function that does this conversion so that we can use tesseroids appropriately.
The function will use the current ellipsoid (get_ellipsoid) to do the conversion. Tests can use simplified ellipsoids to check that the computations are correct (like setting the flattening to 1 and axis to an integer). It could go into a new harmonica/coordinates.py module and should look like:
Convert geocentric coordinates (defined by the ReferenceEllipsoid) to
geocentric (spherical) coordinates. Only geodetic `latitude` and `height`
are converted to `geocentric_latitude` and `radius`. Geocentric spherical
and geodetic longitudes are equal.
Fixes#20
Description of the desired feature
The tesseroid modeling is done in geocentric spherical coordinates (longitude, geocentric latitude, radius) but the data is usually in geodetic coordinates (longitude, geodetic latitude, geometric height). Proj4 apparently only converts the latitudes (https://proj4.org/operations/conversions/geoc.html) but not the height to radius. We need a function that does this conversion so that we can use tesseroids appropriately.
The function will use the current ellipsoid (
get_ellipsoid
) to do the conversion. Tests can use simplified ellipsoids to check that the computations are correct (like setting the flattening to 1 and axis to an integer). It could go into a newharmonica/coordinates.py
module and should look like:The text was updated successfully, but these errors were encountered: