Skip to content

Commit

Permalink
Testing: ECC-1333
Browse files Browse the repository at this point in the history
  • Loading branch information
shahramn committed Feb 5, 2025
1 parent 3018f33 commit d3580ee
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/grib_levtype.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,19 @@ fi

sample2=$ECCODES_SAMPLES_PATH/GRIB2.tmpl
tempGrib=temp.${label}.grib
tempText=temp.${label}.txt
latestAvailable=`${tools_dir}/grib_get -p tablesVersionLatest $sample2`
latestOfficial=`${tools_dir}/grib_get -p tablesVersionLatestOfficial $sample2`

# ECC-1333: levtype should be read-only in GRIB2
set +e
${tools_dir}/grib_set -s mars.levtype=o2d $sample2 $tempGrib 2>$tempText
status=$?
set -e
[ $status -ne 0 ]
grep -q "Value is read only" $tempText


# These level types are S2S ocean parameters and are dealt with differently (See products_s2s.def)
exclude="20 160 169"

Expand Down Expand Up @@ -60,3 +70,4 @@ done


rm -f $tempGrib
rm -f $tempText

0 comments on commit d3580ee

Please sign in to comment.