ADCS.helpers.plot.orbit.orbitdensityplot module

class ADCS.helpers.plot.orbit.orbitdensityplot.OrbitDensityModelPlot(*, title='Atmospheric Density Model', units='kg/m$^3$', h_max_km=1000.0, n_points=300, log_x=True)[source]

Bases: Subplot

Altitude-dependent visualization of the atmospheric density model.

This class plots the atmospheric density model as a function of altitude, independent of time history. It evaluates the density model associated with the first available orbital state and displays the resulting profile.

The plot is useful for understanding the structure and range of the selected density model, with configurable altitude limits and axis scaling.

Parameters:
  • title (str) – Title displayed at the top of the plot.

  • units (str) – Physical units used for atmospheric density.

  • h_max_km (float) – Maximum altitude in kilometers shown on the plot.

  • n_points (int) – Number of altitude samples used to evaluate the density model.

  • log_x (bool) – If True, the density axis is displayed on a logarithmic scale.

plot(ax, sim)[source]
Return type:

None

class ADCS.helpers.plot.orbit.orbitdensityplot.OrbitDensityPlot(*, time='time_s', title='Atmospheric Density', units='kg/m$^3$', log_y=True)[source]

Bases: Subplot

Time-history plot of atmospheric density along the spacecraft orbit.

This class visualizes the atmospheric density experienced by the spacecraft as a function of time, using orbital state history provided by the simulation. It is intended for quick inspection of drag-related environmental conditions during the mission timeline.

The user can configure axis scaling, units, and plot title without needing to understand the underlying density model or orbital propagation.

Parameters:
  • time (str) – Name of the simulation attribute containing the time vector in seconds.

  • title (str) – Title displayed at the top of the plot.

  • units (str) – Physical units used for atmospheric density.

  • log_y (bool) – If True, the density axis is displayed on a logarithmic scale.

plot(ax, sim)[source]
Return type:

None