Help with NetCDF file and MODE #1347
-
I've received a NetCDF file from a partner with 24 hour accumulated ERROR : The NetCDF file can be downloaded here: I'm not really sure the easiest way to show the script I am working on or the observation dataset file I used via the Github forum. I had emailed met_help and it redirected me here. Any help you could provide as to why MODE might not be able to read the NetCDF file would be appreciated. I am not sure if it is formatted correctly for MODE or if there is some other issue. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @balbrightwpc. MET can read a few different flavors of NetCDF files:
It appears that GFSDS_20211231_WPC_0000_006.nc is an attempt to follow the internal NetCDF file format used by MET. We strongly recommend that users follow the NetCDF Climate-Forecast convention rather than the custom MET NetCDF format. Eventually, we hope to switch MET over to follow the CF convention as well. Running this data through plot_data_plane, as is, using "file_type = NETCDF_MET;" produces partial success:
While it runs without error, the output is bad. The "MET_version" global attribute is what triggers the right library logic in the MET library code. Manually adding that global attribute and rerunning, only leads to the next problem:
The grid definition is missing from this file. Judging by the dimensions of the lat and lon variables: float lat(lat, lon) ; This is just simple lat, lon data. The "longitude" variable has 2 dimensions. And looking at it in ncview, we see that the values vary over the domain. So we suspect this data is actually projected. So we'd need the grid definition for this domain added to the file. But again, we'd recommend shifting gears and switching to follow the NetCDF CF-conventions instead, if possible. |
Beta Was this translation helpful? Give feedback.
Hi @balbrightwpc.
MET can read a few different flavors of NetCDF files:
It appears that GFSDS_20211231_WPC_0000_006.nc is an attempt to follow the internal NetCDF file format used by MET. We strongly recommend that users follow the NetCDF Climate-Forecast convention rather than the custom MET NetCDF format. Eventually, we hope to switch MET over to follow the CF convention as well.
Running this data through plot_data_plane, as is, using "file_type = NETCDF_MET;" produces partial success: