mirror of https://github.com/ecmwf/eccodes.git
Remove tests for transients is_efas
This commit is contained in:
parent
2d4923435a
commit
2241d46630
|
@ -22,31 +22,28 @@ temp3=temp3.$label.grib
|
||||||
# Create a starting GRIB with a basic local definition for MARS
|
# Create a starting GRIB with a basic local definition for MARS
|
||||||
${tools_dir}/grib_set -s tablesVersion=19,setLocalDefinition=1,stream=efas $ECCODES_SAMPLES_PATH/GRIB2.tmpl $sample
|
${tools_dir}/grib_set -s tablesVersion=19,setLocalDefinition=1,stream=efas $ECCODES_SAMPLES_PATH/GRIB2.tmpl $sample
|
||||||
|
|
||||||
# Check is_efas key
|
|
||||||
grib_check_key_equals $sample is_efas 0
|
|
||||||
|
|
||||||
# Test a non-ensemble, instantaneous field
|
# Test a non-ensemble, instantaneous field
|
||||||
${tools_dir}/grib_set -s productDefinitionTemplateNumber=0 $sample $temp1
|
${tools_dir}/grib_set -s productDefinitionTemplateNumber=0 $sample $temp1
|
||||||
${tools_dir}/grib_set -s setLocalDefinition=1,localDefinitionNumber=41 $temp1 $temp2
|
${tools_dir}/grib_set -s setLocalDefinition=1,localDefinitionNumber=41 $temp1 $temp2
|
||||||
grib_check_key_equals $temp2 is_efas,productDefinitionTemplateNumber '1 70'
|
grib_check_key_equals $temp2 productDefinitionTemplateNumber '70'
|
||||||
grib_check_key_exists $temp2 isFillup,dateOfForecast,timeOfForecast,anoffset
|
grib_check_key_exists $temp2 isFillup,dateOfForecast,timeOfForecast,anoffset
|
||||||
|
|
||||||
# Test an ensemble, instantaneous field
|
# Test an ensemble, instantaneous field
|
||||||
${tools_dir}/grib_set -s productDefinitionTemplateNumber=1,number=13 $sample $temp1
|
${tools_dir}/grib_set -s productDefinitionTemplateNumber=1,number=13 $sample $temp1
|
||||||
${tools_dir}/grib_set -s setLocalDefinition=1,localDefinitionNumber=41 $temp1 $temp2
|
${tools_dir}/grib_set -s setLocalDefinition=1,localDefinitionNumber=41 $temp1 $temp2
|
||||||
grib_check_key_equals $temp2 is_efas,number,productDefinitionTemplateNumber '1 13 71'
|
grib_check_key_equals $temp2 number,productDefinitionTemplateNumber '13 71'
|
||||||
|
|
||||||
# Test a non-ensemble, non-instantaneous field
|
# Test a non-ensemble, non-instantaneous field
|
||||||
${tools_dir}/grib_set -s productDefinitionTemplateNumber=8,stepType=accum $sample $temp1
|
${tools_dir}/grib_set -s productDefinitionTemplateNumber=8,stepType=accum $sample $temp1
|
||||||
${tools_dir}/grib_set -s setLocalDefinition=1,localDefinitionNumber=41 $temp1 $temp2
|
${tools_dir}/grib_set -s setLocalDefinition=1,localDefinitionNumber=41 $temp1 $temp2
|
||||||
grib_check_key_equals $temp2 is_efas,productDefinitionTemplateNumber,typeOfStatisticalProcessing '1 72 1'
|
grib_check_key_equals $temp2 productDefinitionTemplateNumber,typeOfStatisticalProcessing '72 1'
|
||||||
|
|
||||||
# Test an ensemble, non-instantaneous field (plus mars.origin tests)
|
# Test an ensemble, non-instantaneous field (plus mars.origin tests)
|
||||||
${tools_dir}/grib_set -s productDefinitionTemplateNumber=11,stepType=accum $sample $temp1
|
${tools_dir}/grib_set -s productDefinitionTemplateNumber=11,stepType=accum $sample $temp1
|
||||||
${tools_dir}/grib_set -s \
|
${tools_dir}/grib_set -s \
|
||||||
setLocalDefinition=1,localDefinitionNumber=41,type=pf,inputOriginatingCentre=ecmf,typeOfPostProcessing=1 \
|
setLocalDefinition=1,localDefinitionNumber=41,type=pf,inputOriginatingCentre=ecmf,typeOfPostProcessing=1 \
|
||||||
$temp1 $temp2
|
$temp1 $temp2
|
||||||
grib_check_key_equals $temp2 is_efas,productDefinitionTemplateNumber,typeOfStatisticalProcessing '1 73 1'
|
grib_check_key_equals $temp2 productDefinitionTemplateNumber,typeOfStatisticalProcessing '73 1'
|
||||||
grib_check_key_equals $temp2 mars.origin 'ecmf'
|
grib_check_key_equals $temp2 mars.origin 'ecmf'
|
||||||
grib_check_key_equals $temp2 mars.model 'lisflood'
|
grib_check_key_equals $temp2 mars.model 'lisflood'
|
||||||
|
|
||||||
|
@ -57,10 +54,10 @@ grib_check_key_equals $temp2 mars.model 'geff'
|
||||||
|
|
||||||
# Parameter tests
|
# Parameter tests
|
||||||
${tools_dir}/grib_set -s paramId=260267 $temp2 $temp3
|
${tools_dir}/grib_set -s paramId=260267 $temp2 $temp3
|
||||||
grib_check_key_equals $temp3 paramId,is_efas,lengthOfTimeRange '260267 1 6'
|
grib_check_key_equals $temp3 paramId,lengthOfTimeRange '260267 6'
|
||||||
|
|
||||||
${tools_dir}/grib_set -s paramId=260268 $temp2 $temp3
|
${tools_dir}/grib_set -s paramId=260268 $temp2 $temp3
|
||||||
grib_check_key_equals $temp3 paramId,is_efas,lengthOfTimeRange '260268 1 24'
|
grib_check_key_equals $temp3 paramId,lengthOfTimeRange '260268 24'
|
||||||
|
|
||||||
# Use stepType
|
# Use stepType
|
||||||
${tools_dir}/grib_set -s localDefinitionNumber=41,stepType=accum $sample $temp1
|
${tools_dir}/grib_set -s localDefinitionNumber=41,stepType=accum $sample $temp1
|
||||||
|
|
Loading…
Reference in New Issue