celestial.earth - EranOfek/AstroPack GitHub Wiki

Description

The celestial.earth package contains functions related to Earth coordinates and shape.

Functions

  • celestial.earth.allFunList - Functions and Classes list for the celestial.earth package
  • celestial.earth.earth_gravity_field - Calculate the Earth gravity field for a set of locations.
  • celestial.earth.geoc2geod - Convert Geocentric coordinates to Geodetic coordinates
  • celestial.earth.geod2geoc - Convert Geodetic coordinates to Geocentric coordinates
  • celestial.earth.observatoryCoo - Database of observatories coordinates
  • celestial.earth.refellipsoid - Return data for a given reference ellipsoid of Earth.
  • celestial.earth.satellite_mag - Satellite apparent magnitude
  • celestial.earth.unitTest - Package Unit-Test

Selected examples:

Conversion of geodetic (relative to reference ellipsoid) to geocentric coordinates and vice versa:

Geod=celestial.earth.geoc2geod([1 1 7000]) 
[Geoc,GeocCart]=celestial.earth.geod2geoc(Geod,'WGS84')

% where selection of ref. ellipsoid is possible using:
Data=celestial.earth.refellipsoid('WGS84'); % return [radius(m), Flattening factor]

To search for observatory coordinates in database:

[Result]=celestial.earth.observatoryCoo('Name','Wise')