Package gavo :: Package stc :: Module geo
[frames] | no frames]

Module geo

source code

Coordinate systems for positions on earth.

Classes
  WGS84
the WGS84 reference system.
Functions
 
geocToGeod(long, phip, rho=1, refSys=<class 'gavo.stc.geo.WGS84'>)
returns geodetic coordinates long, phi for geocentric coordinates.
source code
 
geodToGeoc(long, phi, height, refSys=<class 'gavo.stc.geo.WGS84'>)
returns geocentric coordinates lambda, phi', rho for geodetic coordinates.
source code
Variables
  __package__ = 'gavo.stc'
Function Details

geocToGeod(long, phip, rho=1, refSys=<class 'gavo.stc.geo.WGS84'>)

source code 

returns geodetic coordinates long, phi for geocentric coordinates.

refSys defaults is the reference system the geodetic coordinates are expressed in.

This will not work at the poles -- patches welcome.

See Astron. Almanac, Appendix K; we go for the iterative solution discussed there.

geodToGeoc(long, phi, height, refSys=<class 'gavo.stc.geo.WGS84'>)

source code 

returns geocentric coordinates lambda, phi', rho for geodetic coordinates.

refSys defaults is the reference system the geodetic coordinates are expressed in.

height is in meter, long, phi in degrees.

See Astron. Almanac, Appendix K.