I'm trying to plot a Skew-T of a sounding data and calculate the LFC,LCL using Python but it's giving me an error:
InvalidSoundingError:
Pressure does not decrease monotonically in your sounding.
Using scipy.signal.medfilt may fix this.
I tried medfilt but it but I'm getting the same error.
Press = medfilt(Press)
I'm importing the data from a .csv file. The line that's giving me the error:
LFC_pressure, LFC_temperature = mpcalc.lfc(Press*units('hPa'), Temp*units.degC, Dewpt*units.degC)
Has anyone encountered this same issue? If so, what do you do?
Thank you