Skip to content

Commit

Permalink
Testing: Sub-hourly step value in filter (showing hours)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahramn committed Jan 19, 2024
1 parent b8830c3 commit e392cb9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/grib_sub_hourly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,15 @@ grib_check_key_equals $temp '-p startStep' '16m'
grib_check_key_equals $temp '-p indicatorOfUnitOfTimeRange' '0'
grib_check_key_equals $temp '-p forecastTime' '16'


export ECCODES_GRIB_SHOW_HOUR_STEPUNIT=1
cat >$tempFilt<<EOF
assert ( step is "6h" );
EOF
cat $tempFilt
${tools_dir}/grib_filter $tempFilt $data_dir/constant_field.grib2
unset ECCODES_GRIB_SHOW_HOUR_STEPUNIT

# Bad stepUnits
set +e
${tools_dir}/grib_set -s stepUnits=190 $sample_g2 $temp > $tempText 2>&1
Expand Down

0 comments on commit e392cb9

Please sign in to comment.