-
Notifications
You must be signed in to change notification settings - Fork 24
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
Enhance MET to handle NC strings when processing CF-Compliant NetCDF files. #2042
Comments
@hsoh-u should we classify this issue as an "enhancement" or a "bug"? In this comment, you indicate that MET should be able to read NC-string type variable attributes. However, that does not SEEM to actually be working. All of the "string" type global and variable attributes really do store strings, not numeric values. If this is something that should be working but isn't, perhaps we should reclassify it as a bug and fix it for MET version 10.1.0. What do you think? |
The API for NC_STRING does not work (NetCDF code).
|
I think it's enhancement. NC_STRING is not a primary type and API does not work. |
The same result with netcdf-c-4.9.0 (compile with g++ (Debian 8.3.0-6) 8.3.0). The C++ API throws an exception. Using C API does not help. |
Describe the Enhancement
This enhancement request arose via GitHub discussions:
dtcenter/METplus#1416
MET versions 10.0.0 and 10.1.0 are not able to read CF-compliant NetCDF files from:
https://www.nohrsc.noaa.gov/snowfall_v2/
Attempting to plot this data with plot_data_plane results in this error:
The underlying problem is that the variable attributes are specified as NetCDF strings instead of character arrays. This task to enhance MET's vx_data2d_nccf library (or vx_nc_util) to handle the use of these strings.
For example, the "string" in front of units and stardard_name prevents MET from parsing these attributes:
To test, I used ncdump/ncgen to strip out the "string" settings and re-ran plot_data_plane:
sfav2_CONUS_6h_2022020718.nc.gz
Creates this plot:
While I see that the "Data" variable does include some timing information, it is not encoded in a CF-compliant way. If you have any control over the creation of this data, I'd recommend following the conventions for the "Time Coordinate".
Time Estimate
Estimate the amount of work required here.
Issues should represent approximately 1 to 3 days of work.
Sub-Issues
Consider breaking the enhancement down into sub-issues.
Relevant Deadlines
List relevant project deadlines here or state NONE.
Funding Source
2771021
Define the Metadata
Assignee
Labels
Projects and Milestone
Define Related Issue(s)
Consider the impact to the other METplus components.
Enhancement Checklist
See the METplus Workflow for details.
Branch name:
feature_<Issue Number>_<Description>
Pull request:
feature <Issue Number> <Description>
Select: Reviewer(s) and Linked issues
Select: Repository level development cycle Project for the next official release
Select: Milestone as the next official version
The text was updated successfully, but these errors were encountered: