-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GETM level > depth #4
Comments
Hi Johan, PyNcView/multiplot/xmlplot pick coordinate variables based on the CF Cheers, Jorn |
Hi, have you already solved your problem, @johansoderkvist? There seemed to have been a discussion on a similar issue: https://groups.google.com/g/getm-users/c/R80Q8HHkhF0 This discussion, however, does not talk about the case of sigma coordinates. I realized that my GETM files created with flexible output are only shown correctly in pyncview if I use adaptive coordinates but not if I switch to sigma coordinates. In the latter case, the vertical coordinate is "sigma" and not converted to "depth", similar to @johansoderkvist's issue. I found the explanation for this behavior in the file netcdf.py. The method
As we can see, the convention is different for adaptive and sigma coordinates. In the first case, pyncview requires the variables I suggest that this behavior should be documented, as it is not obvious which fields are required for the conversion from level/sigma to depth in pyncview, and which names the variables should have. In addition, it might also be a good option to allow Where should we document the convention of vertical coordinates for GETM in pyncview? Cheers, |
I am not able to display the actual depth values on y-axis when plotting GETM files that has "level" as vertical dimension.
Both multiplot and pyncview display level-number on y-axis when plotting GETM nc-file variable[time,level,latc,lonc]
Is there any way to change from level to depth on y-axis?
Best regards
Johan
The text was updated successfully, but these errors were encountered: