ECC-1333: GRIB2 only: make levtype read-only, typeOfLevel should be used to set fixed surfaces

This commit is contained in:
Shahram Najm 2022-01-27 17:40:55 +00:00
parent 3641a8d402
commit 174d9b3be1
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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" ]