ostk.astrodynamics.dataframe.generate_orbit_from_dataframe¶
- generate_orbit_from_dataframe(
- dataframe: ~pandas.core.frame.DataFrame,
- central_body: ~ostk.physics.environment.object.Celestial = -- Object ------------------------------------------------------------------------------------------ Name: Earth ----------------------------------------------------------------------------------------------------,
- reference_frame: ~ostk.physics.coordinate.Frame | None = None,
- time_column: str | None = None,
- position_columns: list[str] | None = None,
- velocity_columns: list[str] | None = None,
- mass_column: str | None = None,
- drag_coefficient_column: str | None = None,
- surface_area_column: str | None = None,
- initial_revolution_number: int = 1,
- interpolation_type: ~ostk.mathematics.curve_fitting.Interpolator.Type | None = None,
- output_frame: ~ostk.physics.coordinate.Frame | None = None,
- central_body: ~ostk.physics.environment.object.Celestial = -- Object ------------------------------------------------------------------------------------------ Name: Earth ----------------------------------------------------------------------------------------------------,
Generate an OSTk Orbit from a Pandas DataFrame.
- Parameters:
dataframe (pd.DataFrame) -- Pandas DataFrame containing the orbit data.
central_body (Celestial, optional) -- Celestial object around which the Orbit is defined. Defaults to Earth.
reference_frame (Frame | None, optional) -- 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].
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].
initial_revolution_number (int, optional) -- Initial revolution number. Defaults to 1.
interpolation_type (Interpolator.Type | None, optional) -- Interpolation type.
output_frame (Frame | None, optional) -- Output frame for the states.
- Returns:
OSTk Orbit.
- Return type: