mirror of https://github.com/ecmwf/eccodes.git
ECC-1333: GRIB2 only: make levtype read-only, typeOfLevel should be used to set fixed surfaces
This commit is contained in:
parent
3641a8d402
commit
174d9b3be1
|
@ -74,7 +74,7 @@ if (extraDim) {
|
|||
alias mars.levelist = level;
|
||||
}
|
||||
}
|
||||
concept mars.levtype (unknown,"marsLevtypeConcept.def",conceptsDir2,conceptsDir1):no_copy;
|
||||
concept mars.levtype (unknown,"marsLevtypeConcept.def",conceptsDir2,conceptsDir1):no_copy,read_only;
|
||||
# GRIB-372: levelist alias does not pertain to surface parameters
|
||||
if (levtype is "sfc") {
|
||||
unalias mars.levelist;
|
||||
|
|
|
@ -39,7 +39,7 @@ outfile=${data_dir}/set.grib2
|
|||
|
||||
rm -f $outfile
|
||||
|
||||
${tools_dir}/grib_set -v -p levtype:l,centre:s -s levtype=pl,centre:s=cnmc $infile $outfile >$REDIRECT
|
||||
${tools_dir}/grib_set -v -p levtype:l,centre:s -s typeOfLevel=isobaricInhPa,centre:s=cnmc $infile $outfile >$REDIRECT
|
||||
|
||||
levtype=`${tools_dir}/grib_get -p levtype $outfile`
|
||||
[ $levtype = "pl" ]
|
||||
|
|
Loading…
Reference in New Issue