pymgp.orbplot.pltgroundtrack#

pymgp.orbplot.pltgroundtrack(t, xsate, satid='', xobje=None, llhobj=None, cutoff=0, stamps=[3, 1, 5], rsopt=[True, True], ax=None, figsize=(10, 6), color=None, hlcolor=None, fontsize='small', **kwargs)[source]#

Plot satellite ground track(s).

pltgroundtrack(xsate, …) plot the satellite ground track for a satellite with in xsate the Cartesian ECEF coordinates. xsate must be a ndarray with three columns, containing the X, Y, Z Cartesian ECEF coordinates in [m].

pltgroundtrack((lon,lat), …) plot the satellite ground track for a satellite with the longitude and latitude given in the tuple (lon, lat). lon and lat must be ndarray with the ECEF longitude and latitude [degrees].

The function takes optional parameters, satid, visible and/or any matplotlib, argument, with satid the name of the satellite, and visible an optional logical array (of the same shape as lon and lat) with True for the elements where the satellite is visible.

Coast lines are plotted when the file coast.mat is your working directory.

If you want multiple satellites to be plotted call this function repeatedly for the different satellites, like in the example below.