Sub hourly: Test for the lowercase 'stepunits' key

This commit is contained in:
Shahram Najm 2024-01-17 12:12:21 +00:00
parent eea0ffe974
commit c9fd7006d5
2 changed files with 5 additions and 0 deletions

View File

@ -180,6 +180,8 @@ meta dataTime time(hour,minute,second) : dump;
meta julianDay julian_day(dataDate,hour,minute,second) : edition_specific;
codetable[1] stepUnits 'stepUnits.table' = 1 : transient,dump,no_copy;
# The lowercase version is to unify it with the helper key in the MARS language
alias stepunits = stepUnits;
concept_nofail stepType (timeRangeIndicator, "stepType.def", conceptsDir2, conceptsDir1);

View File

@ -62,6 +62,9 @@ sample_g2=$ECCODES_SAMPLES_PATH/GRIB2.tmpl
instantaneous_field=$data_dir/reduced_gaussian_surface.grib2
accumulated_field=$data_dir/reduced_gaussian_sub_area.grib2
# Check the lowercase alias 'stepunits' for a variety of step types (instant, accum etc)
${tools_dir}/grib_get -p stepunits $data_dir/tigge_cf_ecmwf.grib2
#### Make sure that step, stepRange, startStep, endStep produce the same result for instantaneous fields
fn="$instantaneous_field"