mirror of https://github.com/ecmwf/eccodes.git
ECC-1492: GRIB: Add key jScansNegatively
This commit is contained in:
parent
b1337d386a
commit
0f20ea5b19
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue