From 69a86fff3720a802d8c6b0e2a3485fb7566d35a0 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Fri, 10 Jan 2020 15:40:59 +0000 Subject: [PATCH] ECC-1018: Reduced size of sample file --- samples/diag.tmpl | Bin 2423 -> 120 bytes tests/diag.sh | 23 ++++++++++++++++------- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/samples/diag.tmpl b/samples/diag.tmpl index 94b2b629d1ade8f50606e677c63e029ce93be313..e9603d191887997477a7c383d7ab6505f550fc68 100644 GIT binary patch literal 120 zcmZ?qbaZE6kYGq+WMlw=3@&~i1|S>4(_&y?0f_>65Cr1Df%8KKh6V;E-Bbp1AYd?u IOAx^T0JDPyo&W#< literal 2423 zcmYk7yN=sH3`LbklORBfG^ql&>AVXBspZkbgPrw5q%G_sRjPbKJ}sY@OH#w300U>P zE??u3G~|Bny06{uH*Y$*{(SuWsRQfk!`gN4MSa(GZ#&auxn2E_Z~yu)zrJI6!0&mt z`#U9G`WGIThusc*S;mx!OW>1pIyXI?T~CA?TdeTO8Hoa)rfcEbveRq2o&t-Gz&mV8RdS!-T7`2~kW%RSL_U|nE67o=BizQw{EbaK|X~;zR0;e-7I?u~U_Zh?O zbrxj~+?Ru_=w6so)xqu&-4^N@#*6!xGKV z%pTbNHoN&TyIE}Z#%qb3ZGqV*;zv9>G9&mJ_+fu@{b7&Oym^?OoL~1X_H}=By)S~6 z^H7>zrl#k>)7WTm~8z|Vn?fm44Ot3Mrjs=OaYsi1l8nR4Yz%BR4xE9!y% zSb3V046k|`vrJ~p=SyW?w`WB5bG0)w;VjWQoW)~&Q@?NtdRd!Jx>e@4Z8Ns*F_r;q zPTd{Jk2C4Dl((E;}4@7vZ@~bQ PlyiD2<7wvO?kBGQe1t|H diff --git a/tests/diag.sh b/tests/diag.sh index 76b06371a..41509629f 100755 --- a/tests/diag.sh +++ b/tests/diag.sh @@ -25,16 +25,14 @@ sample=$ECCODES_SAMPLES_PATH/diag.tmpl ${tools_dir}/grib_ls $sample > $REDIRECT ${tools_dir}/grib_dump $sample > $REDIRECT -# Check setting keys -# ------------------- +echo "Check setting integer keys..." +# ---------------------------------- echo 'set numberOfIntegers=3; set integerValues={55, 44, 66}; write;' | ${tools_dir}/grib_filter -o $tempOut - $sample ${tools_dir}/grib_dump -p numberOfFloats,numberOfIntegers,floatValues,integerValues $tempOut | sed 1d > $tempTxt cat > $tempRef < $tempTxt cat > $tempRef < $tempRef < $tempTxt @@ -70,6 +72,13 @@ cat > $tempRef < $tempTxt +grep -q "'E', 'C', 'M', 'W', 'F', ' '" $tempTxt + # TODO encoding of characters not fully working. We are using one-byte integers instead #echo 'set numberOfCharacters=4; set charValues={"J","u","m","p"}; write;'| ${tools_dir}/grib_filter -o $tempOut - $sample #res=`${tools_dir}/grib_dump $tempOut | grep charValues | tr -d '\n' | tr -d ' '`