Skip to content
Snippets Groups Projects
Commit 43840c95 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 37830efa
No related branches found
No related tags found
No related merge requests found
...@@ -231,6 +231,7 @@ def pressure_to_altitude(pres, temp, prof_pres, prof_temp, sfc_pres=None, sfc_te ...@@ -231,6 +231,7 @@ def pressure_to_altitude(pres, temp, prof_pres, prof_temp, sfc_pres=None, sfc_te
if sfc_pres is not None: if sfc_pres is not None:
if pres > sfc_pres: # incoming pressure below surface if pres > sfc_pres: # incoming pressure below surface
print(pres, sfc_pres)
return -999.0 return -999.0
prof_pres = np.array(pres_s) prof_pres = np.array(pres_s)
...@@ -261,7 +262,7 @@ def pressure_to_altitude(pres, temp, prof_pres, prof_temp, sfc_pres=None, sfc_te ...@@ -261,7 +262,7 @@ def pressure_to_altitude(pres, temp, prof_pres, prof_temp, sfc_pres=None, sfc_te
z = thickness_hydrostatic(prof_pres, prof_temp) + sfc_elev z = thickness_hydrostatic(prof_pres, prof_temp) + sfc_elev
return z return z.magnitude
# http://fourier.eng.hmc.edu/e176/lectures/NM/node25.html # http://fourier.eng.hmc.edu/e176/lectures/NM/node25.html
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment