mirror of https://github.com/ecmwf/eccodes.git
ECC-1796: Modified test as now we must also set dataset=climate-dt, since in other datasets mars.step is set to stepRange
This commit is contained in:
parent
698d811776
commit
d9157db3d7
|
@ -64,11 +64,12 @@ ${tools_dir}/grib_set -s numberOfDataPoints=12582912,gridDefinitionTemplateNumbe
|
||||||
|
|
||||||
grib_check_key_equals $temp_grib_a "gridSpecification" "H1024"
|
grib_check_key_equals $temp_grib_a "gridSpecification" "H1024"
|
||||||
|
|
||||||
# Now check streams.
|
# Now check streams for use in climate-dt.
|
||||||
# Setting stream clte and type fc should set mars.date and mars.time to dataDate and dataTime,
|
# Setting stream clte and type fc should set mars.date and mars.time to dataDate and dataTime,
|
||||||
# and mars.step should be unaliased
|
# and mars.step should be unaliased
|
||||||
|
# We must also set dataset=climate-dt, since in other datasets mars.step is set to stepRange
|
||||||
|
|
||||||
${tools_dir}/grib_set -s stream=clte,type=fc $destine_sample $temp_grib_a
|
${tools_dir}/grib_set -s dataset=climate-dt,stream=clte,type=fc $destine_sample $temp_grib_a
|
||||||
|
|
||||||
result1=$( ${tools_dir}/grib_get -p mars.date,mars.time $temp_grib_a )
|
result1=$( ${tools_dir}/grib_get -p mars.date,mars.time $temp_grib_a )
|
||||||
result2=$( ${tools_dir}/grib_get -p dataDate,dataTime $temp_grib_a )
|
result2=$( ${tools_dir}/grib_get -p dataDate,dataTime $temp_grib_a )
|
||||||
|
@ -79,8 +80,9 @@ ${tools_dir}/grib_ls -jm $temp_grib_a
|
||||||
|
|
||||||
# Setting stream clmn and type fc should set mars.year and mars.month to year and month,
|
# Setting stream clmn and type fc should set mars.year and mars.month to year and month,
|
||||||
# and mars.date, mars.time, mars.step should be unaliased
|
# and mars.date, mars.time, mars.step should be unaliased
|
||||||
|
# We must also set dataset=climate-dt, since in other datasets mars.step is set to stepRange
|
||||||
|
|
||||||
${tools_dir}/grib_set -s stream=clmn,type=fc $destine_sample $temp_grib_a
|
${tools_dir}/grib_set -s dataset=climate-dt,stream=clmn,type=fc $destine_sample $temp_grib_a
|
||||||
|
|
||||||
result1=$( ${tools_dir}/grib_get -p mars.year,mars.month $temp_grib_a )
|
result1=$( ${tools_dir}/grib_get -p mars.year,mars.month $temp_grib_a )
|
||||||
result2=$( ${tools_dir}/grib_get -p year,month $temp_grib_a )
|
result2=$( ${tools_dir}/grib_get -p year,month $temp_grib_a )
|
||||||
|
|
Loading…
Reference in New Issue