ECC-1492: GRIB: Add key jScansNegatively

This commit is contained in:
Shahram Najm 2022-12-06 22:02:07 +00:00
parent b1337d386a
commit 0f20ea5b19
3 changed files with 10 additions and 0 deletions

View File

@ -6,7 +6,9 @@ flagbit iScansNegatively(scanningMode,7) : dump;
flagbit jScansPositively(scanningMode,6) : dump;
flagbit jPointsAreConsecutive(scanningMode,5) : dump;
constant alternativeRowScanning=0 : dump;
transient iScansPositively = !iScansNegatively : constraint;
transient jScansNegatively = !jScansPositively : constraint;
alias geography.iScansNegatively=iScansNegatively;
alias geography.jScansPositively=jScansPositively;

View File

@ -21,6 +21,7 @@ alias geography.jScansPositively=jScansPositively;
alias geography.jPointsAreConsecutive=jPointsAreConsecutive;
transient iScansPositively = !iScansNegatively : constraint;
transient jScansNegatively = !jScansPositively : constraint;
flagbit scanningMode5(scanningMode,3) = 0: read_only;
flagbit scanningMode6(scanningMode,2) = 0: read_only;

View File

@ -121,6 +121,13 @@ status=$?
set -e
[ $status -ne 0 ]
# ECC-1492
grib_check_key_equals "$ECCODES_SAMPLES_PATH/GRIB1.tmpl" iScansNegatively,iScansPositively '0 1'
grib_check_key_equals "$ECCODES_SAMPLES_PATH/GRIB1.tmpl" jScansNegatively,jScansPositively '1 0'
grib_check_key_equals "$ECCODES_SAMPLES_PATH/GRIB2.tmpl" iScansNegatively,iScansPositively '0 1'
grib_check_key_equals "$ECCODES_SAMPLES_PATH/GRIB2.tmpl" jScansNegatively,jScansPositively '1 0'
# Clean up
rm -f $tempFilt $tempGribA $tempGribB $tempRef $tempText
rm -f ${data_dir}/scan1.grib ${data_dir}/scan.grib