Fix parsing of timestamps in CF-compliant files produced by CDO. #1331
Labels
MET: Library Code
requestor: NCAR/RAL
NCAR Research Applications Laboratory
type: enhancement
Improve something that it is currently doing
Projects
Milestone
Describe the Enhancement
Running the cdo tool using the -import_binary option to read GraDS data produces a CF-compliant NetCDF output file. However the MET tools are not able to parse the timestamps used therein.
Here is an example:
cdo -f nc import_binary 20190710H1radar.ctl 20190710H1radar.nc
plot_data_plane 20190710H1radar.nc r_lev_7000.ps 'name="r"; level="(0,14,,)";'
Only issue is this warning message:
WARNING: parse_cf_time_string() -> unexpected NetCDF CF convention time unit "hours since 1-1-1 00:00:00"
I ran the date command to double-check that the math is correct:
We just need to enable the year, month, and day to accept values of 1.
Time Estimate
2 hours.
Sub-Issues
Consider breaking the enhancement down into sub-issues.
None required.
Relevant Deadlines
None
Funding Source
This is needed for the HAFS METplus use-case to enable MET to handle the output from cdo.
Define the source of funding and account keys here or state NONE.
Define the Metadata
Assignee
Labels
Projects and Milestone
Define Related Issue(s)
Consider the impact to the other METplus components.
No impacts.
Enhancement Checklist
See the METplus Workflow for details.
Branch name:
feature_<Issue Number>_<Description>
Pull request:
feature <Issue Number> <Description>
The text was updated successfully, but these errors were encountered: