Skip to content
Snippets Groups Projects
Commit b7f8ccbf authored by rink's avatar rink
Browse files

invert profile order for metpy

parent 5222f8b8
No related branches found
No related tags found
No related merge requests found
...@@ -99,6 +99,9 @@ def pressure_to_altitude(pres, temp, prof_pres, prof_temp, sfc_pres, sfc_temp, s ...@@ -99,6 +99,9 @@ def pressure_to_altitude(pres, temp, prof_pres, prof_temp, sfc_pres, sfc_temp, s
prof_pres = np.array(pres_s) prof_pres = np.array(pres_s)
prof_temp = np.array(temp_s) prof_temp = np.array(temp_s)
prof_pres = prof_pres[::-1]
prof_temp = prof_temp[::-1]
prof_pres = prof_pres * units.hectopascal prof_pres = prof_pres * units.hectopascal
prof_temp = prof_temp * units.kelvin prof_temp = prof_temp * units.kelvin
sfc_elev = sfc_elev * units.meter sfc_elev = sfc_elev * units.meter
......
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