mirror of https://github.com/ecmwf/eccodes.git
ECC-1115: New keys: projSourceString and projTargetString
This commit is contained in:
parent
fb41fb9c2b
commit
8ab83fae9a
|
@ -231,7 +231,9 @@ alias ls.gridType=gridType;
|
||||||
alias geography.gridType=gridType;
|
alias geography.gridType=gridType;
|
||||||
alias typeOfGrid=gridType;
|
alias typeOfGrid=gridType;
|
||||||
|
|
||||||
meta projString proj_string(gridType): hidden;
|
constant projSourceString = "EPSG:4326" : hidden;
|
||||||
|
meta projTargetString proj_string(gridType): hidden;
|
||||||
|
alias projString = projTargetString : hidden;
|
||||||
|
|
||||||
meta getNumberOfValues size(values) : edition_specific,dump ;
|
meta getNumberOfValues size(values) : edition_specific,dump ;
|
||||||
|
|
||||||
|
|
|
@ -120,4 +120,6 @@ alias typeOfGrid=gridType;
|
||||||
meta md5Section3 md5(offsetSection3,section3Length);
|
meta md5Section3 md5(offsetSection3,section3Length);
|
||||||
alias md5GridSection = md5Section3;
|
alias md5GridSection = md5Section3;
|
||||||
|
|
||||||
meta projString proj_string(gridType): hidden;
|
constant projSourceString = "EPSG:4326" : hidden;
|
||||||
|
meta projTargetString proj_string(gridType): hidden;
|
||||||
|
alias projString = projTargetString : hidden;
|
||||||
|
|
12570
src/grib_hash_keys.c
12570
src/grib_hash_keys.c
File diff suppressed because it is too large
Load Diff
|
@ -24,7 +24,9 @@ fi
|
||||||
|
|
||||||
for f in `echo $files`; do
|
for f in `echo $files`; do
|
||||||
file=${data_dir}/$f
|
file=${data_dir}/$f
|
||||||
ps=`${tools_dir}/grib_get -wcount=1 -p projString $file`
|
ps=`${tools_dir}/grib_get -wcount=1 -p projSourceString $file`
|
||||||
|
[ "$ps" = "EPSG:4326" ]
|
||||||
|
ps=`${tools_dir}/grib_get -wcount=1 -p projTargetString $file`
|
||||||
# Check length of result is nonzero
|
# Check length of result is nonzero
|
||||||
[ -n "$ps" ]
|
[ -n "$ps" ]
|
||||||
# Check contents (basic)
|
# Check contents (basic)
|
||||||
|
@ -40,4 +42,4 @@ done
|
||||||
|
|
||||||
# Reminder
|
# Reminder
|
||||||
keysfile=${proj_dir}/tests/keys
|
keysfile=${proj_dir}/tests/keys
|
||||||
grep -q projString $keysfile
|
grep -q projTargetString $keysfile
|
||||||
|
|
1344
tests/keys
1344
tests/keys
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue