sharppy / SHARPpy

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

SARS interactivity #19

Closed wblumberg closed 9 years ago

wblumberg commented 9 years ago

Ability to click and load up the tier-1 SARS sounding matches next to the primary sounding in the SHARPpy GUI.

keltonhalbert commented 9 years ago

Currently working on this interactivity.

Something to think about is how we store the SARS data. Right now, I am just going to push all of the sounding files into a folder structure and do it that way. However, we may want to consider something like an NPZ file with a dictionary as a better way of storing this sort of database data. I'm open to suggestions.

keltonhalbert commented 9 years ago

Alright!

Rudimentary SARS interactivity has been implemented! You should be able to click on a supercell/hail analogue, and it will display it with the current profile. Currently, there is no combined display for the wind barbs/hodograph yet, but that should be relatively easy to fix in the near future (i.e. sometime this week).

Another feature to be added is swapping out profiles between the foreground and background.

Currently, there are only two bugs that I know of, and they are not directly related to code that I added. If a selected profile does not display, the terminal prompt has given 2 different reasons. One, the io qc tools don't like the data and say it's malformed. Since these are SPC files, I doubt they are malformed, and this should be checked. The other time it breaks is when it can't read a certain file properly, and I have not investigated why just yet, but these tend to be files with pre-2000 dates.

sars

keltonhalbert commented 9 years ago

@wblumberg had suggested a more contrasting color, which I agree with, so I've made a demo of what it would look like if we used the purple color SPC uses when displaying two profiles at once. I'd say this is a lot better. The challenge is that this is using the same framework as the SREF drawing, and SREF probably shouldn't be purple too. Some re-writing and structuring of the SkewT widget will be needed to properly handle this. sars_purple

keltonhalbert commented 9 years ago

Another purple... sars_purple2

wblumberg commented 9 years ago

Here's a list of similar colors to the ones used in SHARP:

6666CC (visually looks the most similar)

666699

333366

keltonhalbert commented 9 years ago

Using #6666CC...

(side note: that was one heck of a good analogue there...) sars_purple3

wblumberg commented 9 years ago

Haha. Nice! I think that color is my favorite of them all. It pops out, but not too much.

Edit: Stupid Flux was making the first color seem grey. Now I'm not so sure.

keltonhalbert commented 9 years ago

I like this one the most too.

All that's left until this can be closed: 1) Hodograph 2) Prevent it from disappearing when switching out parcels 3) Keep making sure it doesn't crash

Once that's done, I will close this thread. Things to work on in future: Profile "swapping" IO problems regarding SARS files

keltonhalbert commented 9 years ago

Closing this sucker.