Alternate names within netcdf dimensions #2273
-
When running plot_data_plane with a netcdf file which contains a dimension on pressure levels (called pressure) I can view the various levels in the above MET task by setting the string levels= I have now been testing on some of the new LAEA functionality which has been added.
Would there be any merit in adding extra functionality in order to allow this type of variable to also work? I think the use of percentiles may be increasing (don't know how others use them). I have also have been given files which use the word 'threshold' as this extra dimension and they get the same sort of error output. No doubt (albeit I haven't seen it yet), someone may come up with a file with percentiles for different pressure levels in it (but that might be for a different time). I may be doing something wrong (ie my setup isn't correct), so happy to be given the correct syntax to use:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @robdarvell, thanks for writing this up in GitHub discussions. Yes! I definitely agree that we'd like to make this work. It was my understanding that dtcenter/MET#1815 actually did provide the functionality needed to support NetCDF data structured in this way. If we're able to figure this out here, great. If not, please post that sample However, I do want to clarify one detail. The integers in your level string
And check the dimensions of the For example, for a variable defined as Please let me know how it goes and if/when you post sample data. |
Beta Was this translation helpful? Give feedback.
-
Think my lack of knowledge of netcdf is showing up. Have taken a look at the ncdump of this file. In the dimensions part there is a dimension of percentile which is set to 13. I have taken a look at my version of the code base, and tried adding a few write statements. I can work out how to set an increase to the number of levels to include and then get more info out (albeit not in the @ format method), but haven't worked out when is going on. I have put the file within the ftp server for you to take a look at. Hopefully you can read it OK. I see there is also a bnds dimension. Hopefully that isn't causing issues with everything. |
Beta Was this translation helpful? Give feedback.
@robdarvell thanks for sending the sample data file. I tested it and observed the same unexepected behavior you describe. I wrote this up as a new GitHub issue and requested that @hsoh-u work on it:
dtcenter/MET#2638
I recommend that we mark this discussion as being answered, and then move any future discussion about it over to the comments for that new issue.