Closed RavenV-tiff closed 7 months ago
Hey @RavenV-tiff!
Thanks a lot for opening this issue. Upon further investigation, it turns out that there was an issue with the way I was creating the pressure array after finding the true surface. I fixed the weird height data, and in the process opted to change the way SounderPy parsed out specific lat/lon information. Instead of picking a point, SounderPy will use a 'box average' approach, which can be user-specified. The default is 0.1 degrees.
I also changed the frz point calculation to an interpolation scheme which is far more accurate. Nice catch.
A bug-fix release is on the way soon.
Very nice! Look forward to the next release :)
I love the package, I'm glad someone has finally put together a weather sounding package that is easy to use and full of so many features.
There are a few issues I've noticed with how the data that gets parsed by the program. I've only tested RAP 13 km model data, so I'm not sure if this applies to any other data.
First the height calculations don't appear to be right. Through grib messages, RAP stores heights in geopotential heights (pretty standard) which should be multiplied by gravity constant to get geopotentials and then you can use the metpy function to get heights above MSL. I'm not for sure, but sounderpy may be just taking the raw geopotential heights without converting them which leads to the labeling of heights being funky (see screenshots).
Other fields look off as well. For comparison, I parsed the same RAP file with my own script and fed that into sounderpy to see if maybe it's something with how it gets plotted. However the sharppy and sounderpy plots look almost identical which leads me to believe it's the parsing.
And last minor point. The freezing level should come from the interpolated height from the sharppy prof instead of closest index to zero (or a dedicated value from the model data). There's a mismatch with the temperature trace 0C and where it gets indicated by the arrow on the plot which becomes really noticeable if plotting low vertical resolution data.
Here's the script I used to select data from RAP to compare with so maybe there's an issue with that also I'm not catching.
Screenshots Original Sounderpy plot when pulling data from NCEI Sounderpy plot when fed my parsed RAP file Sharppy plot when exporting my parsed RAP file Cameron Nixon's plot, which looks similar to my parsed plot, though I believe he's modified some of the original model values?