mirror of https://github.com/ecmwf/eccodes.git
ECC-1212: Add test and fix the grib_ls date issue
This commit is contained in:
parent
27b85923aa
commit
98a8682a24
|
@ -75,4 +75,4 @@ if (numberOfForecastsUsedInLocalTime == 1) {
|
|||
}
|
||||
|
||||
# See ECC-707
|
||||
alias ls.date = dataDate;
|
||||
transient lsdate_bug = 1: hidden;
|
||||
|
|
|
@ -49,7 +49,7 @@ EOF
|
|||
|
||||
${tools_dir}/grib_filter -o $tempGrib $tempFilt $sample_grib2
|
||||
|
||||
# Check mars keys
|
||||
# Check MARS keys
|
||||
${tools_dir}/grib_ls -j -m $tempGrib > $tempOut
|
||||
cat > $tempRef <<EOF
|
||||
{ "messages" : [
|
||||
|
@ -60,7 +60,7 @@ cat > $tempRef <<EOF
|
|||
"type": "an",
|
||||
"stream": "oper",
|
||||
"levtype": "sfc",
|
||||
"date": 20200805,
|
||||
"date": 20200804,
|
||||
"time": "0000",
|
||||
"step": 36,
|
||||
"param": 130
|
||||
|
@ -69,6 +69,9 @@ cat > $tempRef <<EOF
|
|||
EOF
|
||||
cat $tempOut
|
||||
diff $tempRef $tempOut
|
||||
grib_check_key_equals $tempGrib dateOfForecastUsedInLocalTime '20200804'
|
||||
grib_check_key_equals $tempGrib timeOfForecastUsedInLocalTime '0'
|
||||
|
||||
|
||||
# Check grib_ls output
|
||||
${tools_dir}/grib_get -n ls $tempGrib > $tempOut
|
||||
|
|
Loading…
Reference in New Issue