dsgp4.plot.plot_orbit#

dsgp4.plot.plot_orbit(states, r_earth=6378.137, elevation_azimuth=None, ax=None, *args, **kwargs)#

This function takes a tensor of states, and plots the orbit, together with the Earth.

Parameters:#

states (torch.tensor): a set of len(tsince)x2x3 tensor of states, where the first row represents the spacecraft position (in km) and the second the spacecraft velocity (in km/s). Reference frame is TEME. r_earth (float): Earth radius in km (used for the plot). Default value is 6378.137 km. elevation_azimuth (tuple): tuple of two floats, representing the elevation and azimuth angles of the plot. If None, the default values are used. ax (matplotlib.axes._subplots.Axes3DSubplot): 3D axis object. If None, a new figure is created. args: additional arguments to be passed to the plot function. kwargs: additional kwarguments to be passed to the plot function.

Returns:#

matplotlib.axes._subplots.Axes3DSubplot: 3D axis object