-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Description
I was wondering if there is a way to get the most unstable parcel trace (using params.parcelx or something else) with a sounding that is truncated below 500 hPa. When I run the routine I get the following error:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/sharppy/sharptab/params.py", line 994, in temp_lvl
ind = ind.min()
^^^^^^^^^
File "/usr/lib/python3/dist-packages/numpy/core/_methods.py", line 45, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial, where)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: zero-size array to reduction operation minimum which has no identity
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/disk/meso-home/crs326/Documents/Research/Obs_Cases_Paper/Dec13_14/MultiSoundings_zoom_wMUparcel/Scripts/MultiSounding_EOL2.py", line 460, in <module>
S.plot_skewt(parcel=True, parcel_type='most_unstable', parcel_draw=True, color_temp=color_temp_list[i], color_dew=color_dew_list[i], color_parcel=color_parcel_list[i], bloc=-0.15+i*0.8, bcol=color_temp_list[i])
File "/home/disk/meso-home/crs326/Documents/Research/Obs_Cases_Paper/Dec13_14/MultiSoundings_zoom_wMUparcel/Scripts/skewPy/SkewT2.py", line 546, in plot_skewt
mupcl = params.parcelx( prof, flag=3 ) # Most-Unstable Parcel
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/sharppy/sharptab/params.py", line 1865, in parcelx
pm10c = temp_lvl(prof, -10.)
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/sharppy/sharptab/params.py", line 996, in temp_lvl
ind = ind1[-1]
^^^^
NameError: name 'ind1' is not defined. Did you mean: 'ind'?
It seems to be looking for a minimum / the -10 deg C level and cannot find it.
- Clayton
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels