ADCS.environment.atmosphere.nrlmsise module¶
NRLMSISE-00 neutral-atmosphere density model via the optional PyMSIS package.
- ADCS.environment.atmosphere.nrlmsise.NRLMSISE¶
alias of
NRLMSISE00
- class ADCS.environment.atmosphere.nrlmsise.NRLMSISE00(*, version=0, f107=None, f107a=None, ap=None, reference_datetime=datetime.datetime(2000, 1, 1, 12, 0), reference_latitude_deg=0.0, reference_longitude_deg=0.0)[source]¶
Bases:
AtmosphereEvaluate NRLMSISE-00 mass density at ECI positions.
Install the optional backend with
pip install Generalized_ADCS[nrlmsise]. UTC dates and geodetic latitude, longitude, and altitude are normally supplied byOrbital_StateandOrbit. If solar indices are omitted, PyMSIS retrieves and caches historical F10.7 and Ap data when needed. That record (CelesTrakSW-All.csv) starts in October 1957 and ends with daily predictions a few weeks ahead; dates outside it useFALLBACK_F107,FALLBACK_F107A, andFALLBACK_APwith a warning. Pinf107,f107a, andapfor future epochs.interpolateis provided for altitude-profile plotting and evaluates at the configured reference date and location (defaults: J2000-01-01, 0°, 0°).Source: U.S. Naval Research Laboratory NRLMSISE-00 model; Picone et al. (2002), doi:10.1029/2002JA009430. See the project citation guide.
- Parameters:
version (float)
f107 (float | None)
f107a (float | None)
ap (float | None)
reference_datetime (datetime)
reference_latitude_deg (float)
reference_longitude_deg (float)
- density(position_eci_km, datetime_utc=None, geodetic_lla=None)[source]¶
Evaluate NRLMSISE mass density at one or many ECI positions.
- Parameters:
position_eci_km (numpy.ndarray) – ECI position
(3,)or positions(N, 3)[km].datetime_utc (datetime.datetime or sequence) – One UTC date or one per position.
geodetic_lla (numpy.ndarray or None) – Optional latitude, longitude [deg], altitude [km].
- Returns:
Atmospheric mass density [kg/m³].
- Return type:
float or numpy.ndarray
- Raises:
ValueError – If positions, dates, or geodetic data do not align.
- interpolate(altitude_km)[source]¶
Evaluate the reference-date density profile by altitude.
- Parameters:
altitude_km (float or numpy.ndarray) – One altitude or an array of altitudes [km].
- Returns:
Atmospheric mass density [kg/m³].
- Return type:
float or numpy.ndarray
- FALLBACK_AP: float = 4.0¶
Daily Ap used outside the record when
apis not pinned.
- FALLBACK_F107: float = 150.0¶
F10.7 [sfu] used for dates outside PyMSIS’s space-weather record when
f107is not pinned. WithFALLBACK_F107AandFALLBACK_APthis is the NRLMSISE-00 reference test case: moderate solar and quiet geomagnetic activity.
- FALLBACK_F107A: float = 150.0¶
81-day mean F10.7 [sfu] used outside the record when
f107ais not pinned.