-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds support for forecast reference metadata in CF checks. (#779)
Adds support for forecast reference metadata in CF checks. This commit updates cfutil's feature detection to ignore variables used to declare forecast metadata. Specifically, variables with standard names 'forecast_period' and 'forecast_reference_time' are used in conjunction with 'time' to indicate to dataset consumers the appropriate model initialization time, forecast hour, and valid time. This is useful for datasets that aggregate multiple forecast runs, such as FMRC.
- Loading branch information
1 parent
4c14ad4
commit 307aab6
Showing
4 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
netcdf forecast_reference.cdl { | ||
dimensions: | ||
time = 2 ; | ||
lat = 4 ; | ||
lon = 4 ; | ||
variables: | ||
float time(time) ; | ||
time:units = "seconds since 1970-01-01" ; | ||
time:standard_name = "time" ; | ||
time:calendar = "gregorian" ; | ||
time:axis = "T" ; | ||
float lat(lat) ; | ||
lat:units = "degrees_north" ; | ||
lat:standard_name = "latitude" ; | ||
lat:axis = "Y" ; | ||
float lon(lon) ; | ||
lon:units = "degrees_east" ; | ||
lon:standard_name = "longitude" ; | ||
lon:axis = "X" ; | ||
float air_temp(time, lon, lat) ; | ||
air_temp:units = "deg_C" ; | ||
air_temp:standard_name = "air_temperature"; | ||
float forecast_reference_time(time) ; | ||
forecast_reference_time:units = "seconds since 1970-01-01" ; | ||
forecast_reference_time:standard_name = "forecast_reference_time" ; | ||
float forecast_hour(time) ; | ||
forecast_hour:units = "hours" ; | ||
forecast_hour:standard_name = "forecast_period" ; | ||
|
||
:featureType = "grid" ; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters