mirror of https://github.com/ecmwf/eccodes.git
Testing: ECC-1926
This commit is contained in:
parent
a055b6b825
commit
a2b0b44220
|
@ -1,163 +0,0 @@
|
|||
#Minimum dew point depression
|
||||
#Minimum dew point depression
|
||||
'mindpd' = {
|
||||
discipline = 0 ;
|
||||
parameterCategory = 0 ;
|
||||
parameterNumber = 14 ;
|
||||
}
|
||||
#Minimum dew point depression
|
||||
'mindpd' = {
|
||||
discipline = 0 ;
|
||||
parameterCategory = 0 ;
|
||||
parameterNumber = 14 ;
|
||||
}
|
||||
#Maximum relative humidity
|
||||
'maxrh' = {
|
||||
discipline = 0 ;
|
||||
parameterCategory = 1 ;
|
||||
parameterNumber = 27 ;
|
||||
}
|
||||
#Maximum absolute humidity
|
||||
'maxah' = {
|
||||
discipline = 0 ;
|
||||
parameterCategory = 1 ;
|
||||
parameterNumber = 28 ;
|
||||
}
|
||||
#Maximum wind speed
|
||||
'maxgust' = {
|
||||
discipline = 0 ;
|
||||
parameterCategory = 2 ;
|
||||
parameterNumber = 21 ;
|
||||
}
|
||||
#Net long wave radiation flux (surface)
|
||||
'nlwrs' = {
|
||||
discipline = 0 ;
|
||||
parameterCategory = 5 ;
|
||||
parameterNumber = 0 ;
|
||||
}
|
||||
#Net long wave radiation flux (top of atmosphere)
|
||||
'nlwrt' = {
|
||||
discipline = 0 ;
|
||||
parameterCategory = 5 ;
|
||||
parameterNumber = 1 ;
|
||||
}
|
||||
#Maximum snow albedo
|
||||
'mxsalb' = {
|
||||
discipline = 0 ;
|
||||
parameterCategory = 19 ;
|
||||
parameterNumber = 17 ;
|
||||
}
|
||||
#Soil temperature
|
||||
'sot' = {
|
||||
discipline = 2 ;
|
||||
parameterCategory = 3 ;
|
||||
parameterNumber = 18 ;
|
||||
}
|
||||
#Minimum dew point depression
|
||||
'mindpd' = {
|
||||
discipline = 0 ;
|
||||
parameterCategory = 0 ;
|
||||
parameterNumber = 14 ;
|
||||
}
|
||||
#Maximum relative humidity
|
||||
'maxrh' = {
|
||||
discipline = 0 ;
|
||||
parameterCategory = 1 ;
|
||||
parameterNumber = 27 ;
|
||||
}
|
||||
#Maximum absolute humidity
|
||||
'maxah' = {
|
||||
discipline = 0 ;
|
||||
parameterCategory = 1 ;
|
||||
parameterNumber = 28 ;
|
||||
}
|
||||
#Maximum wind speed
|
||||
'maxgust' = {
|
||||
discipline = 0 ;
|
||||
parameterCategory = 2 ;
|
||||
parameterNumber = 21 ;
|
||||
}
|
||||
#Net long wave radiation flux (surface)
|
||||
'nlwrs' = {
|
||||
discipline = 0 ;
|
||||
parameterCategory = 5 ;
|
||||
parameterNumber = 0 ;
|
||||
}
|
||||
#Net long wave radiation flux (top of atmosphere)
|
||||
'nlwrt' = {
|
||||
discipline = 0 ;
|
||||
parameterCategory = 5 ;
|
||||
parameterNumber = 1 ;
|
||||
}
|
||||
#Maximum snow albedo
|
||||
'mxsalb' = {
|
||||
discipline = 0 ;
|
||||
parameterCategory = 19 ;
|
||||
parameterNumber = 17 ;
|
||||
}
|
||||
#Soil temperature
|
||||
'sot' = {
|
||||
discipline = 2 ;
|
||||
parameterCategory = 3 ;
|
||||
parameterNumber = 18 ;
|
||||
}
|
||||
#Soil moisture
|
||||
'som' = {
|
||||
discipline = 2 ;
|
||||
parameterCategory = 3 ;
|
||||
parameterNumber = 19 ;
|
||||
}
|
||||
#Minimum dew point depression
|
||||
'mindpd' = {
|
||||
discipline = 0 ;
|
||||
parameterCategory = 0 ;
|
||||
parameterNumber = 14 ;
|
||||
}
|
||||
#Maximum relative humidity
|
||||
'maxrh' = {
|
||||
discipline = 0 ;
|
||||
parameterCategory = 1 ;
|
||||
parameterNumber = 27 ;
|
||||
}
|
||||
#Maximum absolute humidity
|
||||
'maxah' = {
|
||||
discipline = 0 ;
|
||||
parameterCategory = 1 ;
|
||||
parameterNumber = 28 ;
|
||||
}
|
||||
#Maximum wind speed
|
||||
'maxgust' = {
|
||||
discipline = 0 ;
|
||||
parameterCategory = 2 ;
|
||||
parameterNumber = 21 ;
|
||||
}
|
||||
#Net long wave radiation flux (surface)
|
||||
'nlwrs' = {
|
||||
discipline = 0 ;
|
||||
parameterCategory = 5 ;
|
||||
parameterNumber = 0 ;
|
||||
}
|
||||
#Net long wave radiation flux (top of atmosphere)
|
||||
'nlwrt' = {
|
||||
discipline = 0 ;
|
||||
parameterCategory = 5 ;
|
||||
parameterNumber = 1 ;
|
||||
}
|
||||
#Maximum snow albedo
|
||||
'mxsalb' = {
|
||||
discipline = 0 ;
|
||||
parameterCategory = 19 ;
|
||||
parameterNumber = 17 ;
|
||||
}
|
||||
#Soil temperature
|
||||
'sot' = {
|
||||
discipline = 2 ;
|
||||
parameterCategory = 3 ;
|
||||
parameterNumber = 18 ;
|
||||
}
|
||||
#Soil moisture
|
||||
'som' = {
|
||||
discipline = 2 ;
|
||||
parameterCategory = 3 ;
|
||||
parameterNumber = 19 ;
|
||||
}
|
|
@ -75,6 +75,28 @@ input=${data_dir}/gfs.complex.mvmu.grib2
|
|||
stats=`${tools_dir}/grib_get -F%.2f -p max,min,avg $input`
|
||||
[ "$stats" = "2.81 0.00 0.30" ]
|
||||
|
||||
# ECC-1926
|
||||
# grid_complex_spatial_differencing with bpv=0
|
||||
# Create a data section similar to the attached file dswrf-1.grib2
|
||||
cat >$tempFilt<<EOF
|
||||
set packingType='grid_complex_spatial_differencing';
|
||||
set numberOfGroupsOfDataValues=0;
|
||||
set orderOfSpatialDifferencing=2;
|
||||
set primaryMissingValueSubstitute=0;
|
||||
set referenceForGroupWidths = 64;
|
||||
set numberOfBitsUsedForTheGroupWidths = 4;
|
||||
set referenceForGroupLengths = 203736800;
|
||||
set trueLengthOfLastGroup = 8;
|
||||
set numberOfBitsForScaledGroupLengths = 7;
|
||||
set numberOfOctetsExtraDescriptors = 1;
|
||||
write;
|
||||
EOF
|
||||
input=$ECCODES_SAMPLES_PATH/GRIB2.tmpl
|
||||
${tools_dir}/grib_filter -o $temp1 $tempFilt $input
|
||||
stats1=`${tools_dir}/grib_get -M -F%.0f -n statistics $input`
|
||||
stats2=`${tools_dir}/grib_get -M -F%.0f -n statistics $temp1`
|
||||
[ "$stats1" = "$stats2" ]
|
||||
|
||||
# Decode as string - Null op
|
||||
cat >$tempFilt<<EOF
|
||||
print "[computeStatistics:s]";
|
||||
|
|
Loading…
Reference in New Issue