Closed wblumberg closed 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.
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.
@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.
Another purple...
Here's a list of similar colors to the ones used in SHARP:
Using #6666CC...
(side note: that was one heck of a good analogue there...)
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.
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
Closing this sucker.
Ability to click and load up the tier-1 SARS sounding matches next to the primary sounding in the SHARPpy GUI.