sharppy / SHARPpy

Sounding/Hodograph Analysis and Research Program in Python
https://sharppy.github.io/SHARPpy/index.html
Other
216 stars 112 forks source link

SHARPpy won't take 360 deg wind direction #118

Closed georgephillips1 closed 7 years ago

georgephillips1 commented 7 years ago

When converting an FSL archived raob to the format utilized for input by SHARPpy in the File -> Open method, the FSL output has 360 degrees for a due north wind. Direct conversion to the file format needed to be opened by SHARPpy will result in an error opening the file because it doesn't like a wind direction >= 360 degrees. Perhaps the positive values that are out of bounds can be restricted to >360 degrees?

I realize I can substitute 0 degrees for 360 degrees in the conversion program, but if getting rid of the 360 degree restriction doesn't cause any other problems, it might be good to get rid of that. Anybody in the future writing such converters wouldn't have to troubleshoot this issue.

Attached are the file with the FSL output, the file that was converted for SHARPpy, and the error dialog box that details the reason for the error. The 360 degree wind direction is at 775.5 mb.

IAD.txt

12103003.IAD.txt

360degsharppyerror

wblumberg commented 7 years ago

We agree. This will be changed in the Andover branch and released in the next copy of SHARPpy.

georgephillips1 commented 7 years ago

Thanks William.

tsupinie commented 7 years ago

I went ahead and pushed this to the master branch, so I'll go ahead and close the issue.