update
This commit is contained in:
parent
0e258cb1fa
commit
3622e4f0f4
BIN
pyatmos/.DS_Store
vendored
BIN
pyatmos/.DS_Store
vendored
Binary file not shown.
@ -100,4 +100,4 @@ def isa(altitude,altitude_type='geometric'):
|
|||||||
h0 = geopotential_alt[i+1]
|
h0 = geopotential_alt[i+1]
|
||||||
|
|
||||||
density = pressure / (R * temperature)
|
density = pressure / (R * temperature)
|
||||||
return {'temperature':temperature,'pressure':pressure,'density':density}
|
return {'temperature[K]':temperature,'pressure[Pa]':pressure,'density[kg/m^3]':density}
|
@ -2,4 +2,8 @@
|
|||||||
pyatmos package
|
pyatmos package
|
||||||
|
|
||||||
This package is an archive of scientific routines that implements the estimation of atmospheric properties for various atmosphere models.
|
This package is an archive of scientific routines that implements the estimation of atmospheric properties for various atmosphere models.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
from .StandardAtmosphere.StandardAtmosphere import isa
|
||||||
|
from .msise.spaceweather import download_sw,read_sw
|
||||||
|
from .msise.nrlmsise00 import nrlmsise00
|
@ -49,6 +49,7 @@ nrlmsise00
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
from astropy.time import Time
|
||||||
from scipy.interpolate import CubicSpline
|
from scipy.interpolate import CubicSpline
|
||||||
from pyshtools.legendre import PLegendreA,PlmIndex
|
from pyshtools.legendre import PLegendreA,PlmIndex
|
||||||
import pkg_resources
|
import pkg_resources
|
||||||
@ -1021,7 +1022,8 @@ def gts7(inputp,flags,gsurf,re):
|
|||||||
|
|
||||||
# ============================ nrlmsise00 =========================== #
|
# ============================ nrlmsise00 =========================== #
|
||||||
|
|
||||||
def nrlmsise00(t,lat,lon,alt,SW_OBS_PRE,omode,aphmode):
|
def nrlmsise00(t,lat,lon,alt,SW_OBS_PRE,omode='Oxygen',aphmode='NoAph'):
|
||||||
|
t = Time(t)
|
||||||
lon_wrap = wraplon(lon)
|
lon_wrap = wraplon(lon)
|
||||||
t_yday = t.yday.split(':')
|
t_yday = t.yday.split(':')
|
||||||
t_ymd = t.iso.split()[0].split('-')
|
t_ymd = t.iso.split()[0].split('-')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user