Skip to content

Atmospheric Density (NRLMSISE-00)

Density and temperature from the NRLMSISE-00 model (Picone et al. 2002), the model the propagator uses for drag. There are two entry points, which return the same (density in kg/m³, temperature in K) and differ only in their units:

call altitude latitude, longitude
satkit.nrlmsise00(alt_km, latitude_deg=..., longitude_deg=...) km degrees
satkit.density.nrlmsise(altitude_meters, latitude_rad, longitude_rad), or nrlmsise(itrfcoord) m radians

Given a time, both read the solar flux and geomagnetic indices for it from the space-weather table; with no time they use \(F_{10.7} = F_{10.7A} = 150\) and \(A_p = 4\). See the Atmospheric Density tutorial and the Force Model guide.

density

Air density models

nrlmsise evaluates the NRL MSISE-00 model at an itrfcoord or at an altitude in meters with latitude and longitude in radians; satkit.nrlmsise00 is the same model with kilometers and degrees.

nrlmsise(itrf, time=None)

nrlmsise(itrf: satkit.itrfcoord, time: TimeScalar | None = None) -> tuple[float, float]
nrlmsise(altitude_meters: float, latitude_rad: float = 0.0, longitude_rad: float = 0.0, time: TimeScalar | None = None) -> tuple[float, float]
nrlmsise(altitude_meters: float, time: TimeScalar | None) -> tuple[float, float]
nrlmsise(altitude_meters: float, latitude_rad: float, time: TimeScalar | None) -> tuple[float, float]
nrlmsise(itrf: satkit.itrfcoord, time: TimeScalar | None = None) -> tuple[float, float]

NRL MSISE-00 Atmosphere Density Model

https://en.wikipedia.org/wiki/NRLMSISE-00

or for more detail: https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2002JA009430

Parameters:

Name Type Description Default
itrf itrfcoord

position at which to compute density & temperature (height 1000 m below the WGS-84 ellipsoid or above)

required
time time | datetime

Instant at which to compute density & temperature. "Space weather" data at this time will be used in model computation. Note: at satellite altitudes, density can change by > 10 X depending on solar cycle. Without a time the model runs on its default indices (F10.7 = F10.7A = 150, Ap = 4).

None

Returns:

Type Description
tuple

(rho, T) where rho is mass density in kg/m^3 and T is temperature in Kelvin

Raises:

Type Description
TypeError

If time is not a satkit.time, datetime.datetime, numpy.datetime64 or None

ValueError

If the position is more than 1000 m below the ellipsoid or holds a NaN

Example
t = satkit.time(2024, 1, 1)
coord = satkit.itrfcoord(latitude_deg=0, longitude_deg=0, altitude=400e3)
rho, temp = satkit.density.nrlmsise(coord, t)
print(f"Density: {rho:.2e} kg/m^3")
print(f"Temperature: {temp:.1f} K")
nrlmsise(altitude_meters: float, latitude_rad: float = 0.0, longitude_rad: float = 0.0, time: TimeScalar | None = None) -> tuple[float, float]

NRL MSISE-00 Atmosphere Density Model

https://en.wikipedia.org/wiki/NRLMSISE-00

or for more detail: https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2002JA009430

Parameters:

Name Type Description Default
altitude_meters float

Altitude above the WGS-84 ellipsoid in meters (-1000 or above; the model runs from the ground to the exosphere)

required
latitude_rad float

Geodetic latitude in radians, in [-pi/2, pi/2]. Default is 0.

0.0
longitude_rad float

Longitude in radians. Default is 0.

0.0
time time | datetime

Instant at which to compute density & temperature. "Space weather" data at this time will be used in model computation. Note: at satellite altitudes, density can change by > 10 X depending on solar cycle. Without a time the model runs on its default indices (F10.7 = F10.7A = 150, Ap = 4). The time may also directly follow the altitude or the latitude.

None

Returns:

Type Description
tuple

(rho, T) where rho is mass density in kg/m^3 and T is temperature in Kelvin

Raises:

Type Description
TypeError

If an angle is not a real number, or time is not a satkit.time, datetime.datetime, numpy.datetime64 or None

ValueError

If the altitude is NaN, infinite or below -1000 m, the latitude is NaN or outside [-pi/2, pi/2], or the longitude is NaN or infinite

nrlmsise00(alt_km, *, latitude_deg=0.0, longitude_deg=0.0, time=None, use_spaceweather=True)

NRL-MSISE00 atmospheric density model

satkit.density.nrlmsise is the same model taking an itrfcoord, or meters and radians.

Parameters:

Name Type Description Default
alt_km float

Altitude above the WGS-84 ellipsoid in kilometers (-1 or above; the model runs from the ground to the exosphere)

required

Other Parameters:

Name Type Description
latitude_deg float

Geodetic latitude in degrees, in [-90, 90]. Default is 0

longitude_deg float

Longitude in degrees. Default is 0

time time | datetime | datetime64

Time at which to evaluate the model. Without a time the model is evaluated for 00:00 UT on 1 January, on default indices (F10.7 = F10.7A = 150, Ap = 4)

use_spaceweather bool

Look up F10.7 and Ap in the space-weather data at time. Default is True. It has no effect without a time; with False, or for a time the data does not cover, the default indices are used

Returns:

Type Description
tuple[float, float]

Mass density (kg/m^3) and temperature (K)

Raises:

Type Description
TypeError

time is not a single time value, or a number is expected

ValueError

alt_km is NaN, infinite or below -1; latitude_deg is NaN or outside [-90, 90]; longitude_deg is NaN or infinite

Example
rho, temp = satkit.nrlmsise00(400.0, latitude_deg=30.0, longitude_deg=-70.0)
print(f"{rho:.2e} kg/m^3, {temp:.0f} K")