ostk.astrodynamics.dataframe.generate_dataframe_from_states

generate_dataframe_from_states(
states: list[State],
reference_frame: Frame | None = None,
time_column: str | None = None,
position_columns: list[str] | None = None,
velocity_columns: list[str] | None = None,
attitude_columns: list[str] | None = None,
angular_velocity_columns: list[str] | None = None,
mass_column: str | None = None,
drag_coefficient_column: str | None = None,
surface_area_column: str | None = None,
set_time_index: bool = True,
) DataFrame

Generate a Pandas DataFrame from a list of OSTk States.

Parameters:
  • states (list[State]) -- List of OSTk States.

  • reference_frame (Frame | None, optional) -- The desired reference frame.

  • time_column (str | None, optional) -- Name of the column containing the time data in [UTC].

  • position_columns (list[str] | None, optional) -- List of column names containing the position data in [m].

  • velocity_columns (list[str] | None, optional) -- List of column names containing the velocity data in [m/s].

  • attitude_columns (list[str] | None, optional) -- List of column names containing the attitude data in [x, y, z, s] form.

  • angular_velocity_columns (list[str] | None, optional) -- List of column names containing the angular velocity data in [rad/s].

  • mass_column (str | None, optional) -- Name of the column containing the mass data in [kg].

  • drag_coefficient_column (str | None, optional) -- Name of the column containing the drag coefficient data.

  • surface_area_column (str | None, optional) -- Name of the column containing the surface area data in [m^2].

  • set_time_index (bool, optional) -- Whether to set the time column as the index. Defaults to True.

Returns:

Pandas DataFrame containing the orbit data.

Return type:

pd.DataFrame