Skip to content

Commit

Permalink
Origin of Pressure/Atmosphere Formulae
Browse files Browse the repository at this point in the history
  • Loading branch information
Areustle authored Aug 24, 2023
1 parent a06652c commit 8dfee64
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/nuspacesim/simulation/atmosphere/pressure.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@


def us_std_atm_altitude_from_pressure(P):
"""
(1976) US Standard Atmosphere. Derived from Pressure from altitude equation.
"""
P = np.asarray(P)

i = np.zeros_like(P, dtype=int)
Expand All @@ -66,6 +69,9 @@ def us_std_atm_altitude_from_pressure(P):


def us_std_atm_pressure_from_altitude(z):
"""
(1976) US Standard Atmosphere. Derived from Pressure from altitude equation.
"""
z = np.asarray(z)
x = z < np.inf
h = np.empty_like(z)
Expand Down

0 comments on commit 8dfee64

Please sign in to comment.