Open wxguy opened 1 month ago
Hi @wxguy,
Thanks for submitting this issue.
Unfortunately at this time I do not have a good fix for this. The error you have found is coming from the ecape-parcel
library which stems from an issue with the data itself. (i.e. not the fault of the data cleaning process, or ecape-parcel
)
For some reason, unknown to me at this time, a number of profiles from the University of Wyoming archive come back with incorrect height values somewhere in the profiles. See the example below. These height data errors don't appear on the University of Wyoming's web-based archive viewer, so the issue may be traced back to the siphon
library which does the loading/reading/outputting of the data from the University of Wyoming. I have been looking into this issue for some time now. Hopefully I have a real fix soon.
Workaround options to fix this are limited at this time, but using the IRGAv2 data source is the best option right now. SounderPy
can also retrieve data from the IRGAv2 archive the same way as data from UW, just by using the IGRAv2 profile ID instead. The only issues with IGRAv2 access are that it's a bit slower (x2 the time) and the data doesn't populate in the archive as quickly as UW.
Ex: Your station in RAOB form: "vomm", or "43279" and your station in IRGAv2 form: "INM00043279"
data = spy.get_obs_data("INM00043279", "2024", "09", "13", "00")
Example height data errors on another profile from UW:
For now I will leave this issue open until I have this height data error issue resolved as a whole.
Update on this issue:
I believe I have an "in-house" fix for this. In this fix, the data still downloads incorrectly, but during the "cleaning process" SounderPy can identify if the height data is erroneous and attempt to correct it.
This will be implemented with the next release of SounderPy. However, for now, until this is tested enough to be proved as the correct fix, I will leave this issue open.
Please Describe the bug Sounderpy is unable to clean the data properly resulting in following error:-
To Reproduce Steps to reproduce the behavior:
Expected behavior Process and plot the data after downloading without an error.
Screenshots No applicable. See the error message above.
What are you running?