opengribs / XyGrib

This is the new home for the development of zyGrib
https://opengribs.org
GNU General Public License v3.0
119 stars 46 forks source link

View pressure levels not in the Altitude menu #292

Open K1ngjulien opened 2 years ago

K1ngjulien commented 2 years ago

I have a grib2 file containing multiple pressure levels, yet it seems only 925 hPa is viewable since thats the only highlighted option in the menu bar

Is there a way to select the other pressure levels that are not hardcoded in the menu bar? The file information menu clearly shows that XyGrib found them.

I did some digging in the user manual but couldn't find a solution.

photo_2022-03-16_15-41-23

Screenshot from 2022-03-16 15-35-03

the grib file is attached

gribfile.zip

norulz commented 2 years ago

Hi, XyGrib inherited from zyGrib a prefixed set of altitudes and although the info box shows altitude levels in the grib file, if these do not correspond with the fixed levels in the software, then they are not shown. Perhaps, downstream this will be changed. David

K1ngjulien commented 2 years ago

ahh thats unfortunate :/ do you have a rough idea how much work it would be to implement that? I can't promise anything but if those preset altitudes aren't too deeply rooted in the codebase I might give it a shot.

norulz commented 2 years ago

The project is somewhat stagnant at this time. Hopefully I'll complete a PhD by the end of the year and will be free to handle builds etc. However, you're free to try and implement changes. I think that adding a few necessary prefixed levels would be easiest. Dynamic setting of layers based on the grib might be more challenging.