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

snapshot...

parent 83162da3
Branches
No related tags found
No related merge requests found
......@@ -66,10 +66,10 @@ def get_breaks(t, threshold):
def pressure_to_altitude(pres, temp, prof_pres, prof_temp, sfc_pres=None, sfc_temp=None, sfc_elev=0):
if not np.all(np.diff(prof_pres) > 0):
raise MyGenericException("target pressure profile must be monotonic increasing")
raise GenericException("target pressure profile must be monotonic increasing")
if pres < prof_pres[0]:
raise MyGenericException("target pressure less than top of pressure profile")
raise GenericException("target pressure less than top of pressure profile")
if temp is None:
temp = np.interp(pres, prof_pres, prof_temp)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment