Skip to content

inertialsim.examples.nesc

Utilities for working with NASA ESC flight simulation datasets.

See: https://nescacademy.nasa.gov/flightsim/2015

Classes:

Name Description
FlightData

NESC flight simulation data.

Functions:

Name Description
load

Load NESC atmospheric flight simulation data.

Attributes:

Name Type Description
data_map

Mapping from check case identifier to subdirectory.

data_map module-attribute

data_map = {"13p4": "Atmos_13p4_SubsonicLateralSideStepF16"}

Mapping from check case identifier to subdirectory.

FlightData

NESC flight simulation data.

Flight simulation data from an NESC atmospheric check case. This is a subset of the original data. Not all check cases contain the same variables and only variables relevant to InertialSim are loaded from the source data.

Attributes:

Name Type Description
time NDArray
attitude NDArray
position NDArray
velocity NDArray
angular_rate NDArray
gravitation NDArray

time instance-attribute

time: NDArray

attitude instance-attribute

attitude: NDArray

position instance-attribute

position: NDArray

velocity instance-attribute

velocity: NDArray

angular_rate instance-attribute

angular_rate: NDArray

gravitation instance-attribute

gravitation: NDArray

load

load(
    directory: Path | str, check_case: str, simulator: str
) -> FlightData

Load NESC atmospheric flight simulation data.

Data is available from the NASA Enginering and Safety Center site (see link in module documentation). Data is organized by atmospheric and orbital categories. Only atmospheric data is supported. Each check case has several available simulators.

Source data is in US customary units and is converted to SI units here.

Parameters:

Name Type Description Default
directory Path | str

top level directory with NESC atmospheric check case data organized in subdirectories with original names.

required
check_case str

Check case identifier (e.g. "13p4").

required
simulator str

Simulator number (e.g. "02").

required

Returns:

Name Type Description
flight_data FlightData

Simulated flight data from the requested check case and simulator.