mirror of https://github.com/ecmwf/eccodes.git
Testing: Tools options
This commit is contained in:
parent
858b418335
commit
c0a38a2d3c
|
@ -26,6 +26,12 @@ fTmp=${label}".tmp.txt"
|
||||||
gts_file=EGRR20150317121020_00493212.DAT
|
gts_file=EGRR20150317121020_00493212.DAT
|
||||||
${tools_dir}/gts_get -p TT,AA,II,CCCC,YY,GG,gg,BBB $gts_file >/dev/null
|
${tools_dir}/gts_get -p TT,AA,II,CCCC,YY,GG,gg,BBB $gts_file >/dev/null
|
||||||
|
|
||||||
|
#----------------------------------------------
|
||||||
|
# Test "-w" switch
|
||||||
|
#----------------------------------------------
|
||||||
|
${tools_dir}/gts_get -p TT -w count=3 $gts_file >/dev/null
|
||||||
|
|
||||||
|
|
||||||
gts_file=${data_dir}/gts.grib
|
gts_file=${data_dir}/gts.grib
|
||||||
result=$( ${tools_dir}/grib_get -wcount=1 -p gts_CCCC -g $gts_file )
|
result=$( ${tools_dir}/grib_get -wcount=1 -p gts_CCCC -g $gts_file )
|
||||||
[ "$result" = "ECMG" ]
|
[ "$result" = "ECMG" ]
|
||||||
|
|
|
@ -25,15 +25,16 @@ touch $fLog
|
||||||
fTmp=${label}".tmp.txt"
|
fTmp=${label}".tmp.txt"
|
||||||
rm -f $fTmp
|
rm -f $fTmp
|
||||||
|
|
||||||
#----------------------------------------------
|
#-----------------------------------------
|
||||||
# Test default "ls" on all the metar data files
|
# Test default "ls" on the metar data file
|
||||||
#----------------------------------------------
|
#-----------------------------------------
|
||||||
metar_file=metar.txt
|
metar_file=metar.txt
|
||||||
export METAR_YEAR=2015
|
export METAR_YEAR=2015
|
||||||
export METAR_MONTH=4
|
export METAR_MONTH=4
|
||||||
|
|
||||||
${tools_dir}/metar_get -n ls $metar_file >/dev/null
|
${tools_dir}/metar_get -n ls $metar_file >/dev/null
|
||||||
${tools_dir}/metar_get -w count=1/2/3 -p CCCC,latitude,longitude,dateTime,elevation,temperature,dewPointTemperature,qnh $metar_file
|
${tools_dir}/metar_get -w count=1/2/3 -p CCCC,latitude,longitude,dateTime,elevation,temperature,dewPointTemperature,qnh $metar_file
|
||||||
|
${tools_dir}/metar_get -w count=2 -p CCCC $metar_file
|
||||||
|
|
||||||
# Decode a 'group' key as int and double
|
# Decode a 'group' key as int and double
|
||||||
result=$( ${tools_dir}/metar_get -p visibilityInMetres:i,visibilityInMetres:d -w count=1 $metar_file )
|
result=$( ${tools_dir}/metar_get -p visibilityInMetres:i,visibilityInMetres:d -w count=1 $metar_file )
|
||||||
|
|
Loading…
Reference in New Issue