From 35c46307db0eba271097b8ad45262b4633fba722 Mon Sep 17 00:00:00 2001 From: Marijana Crepulja Date: Tue, 17 Nov 2015 14:24:37 +0000 Subject: [PATCH] ECC 109 shell wrapper for python --- examples/python/bufr_read_tropical_cyclone.sh | 1169 ++++++++++++++++- 1 file changed, 1158 insertions(+), 11 deletions(-) diff --git a/examples/python/bufr_read_tropical_cyclone.sh b/examples/python/bufr_read_tropical_cyclone.sh index 05130e5c2..59bf4ddbd 100755 --- a/examples/python/bufr_read_tropical_cyclone.sh +++ b/examples/python/bufr_read_tropical_cyclone.sh @@ -12,25 +12,1172 @@ #Define a common label for all the tmp files -label="bufr_read_tropical_cyclone_test_p" +label="bufr_read_tropical_cyclone_p" #Define tmp file -fTmp=${label}".tmp.txt" +fTmp=${label}.tmp.txt +ref=${label}.tmp.ref rm -f $fTmp | true -#We check "syno_multi.bufr". The path is +#We check "asca_1391.bufr". The path is #hardcoded in the example REDIRECT=/dev/null -#Write the values into a file and compare with reference -#$PYTHON $examples_src/bufr_read_tropical_cyclone.py 2> $REDIRECT > $fTmp -$PYTHON $examples_src/bufr_read_tropical_cyclone.py +echo $PYTHON $examples_src +#Write the key values into a file +$PYTHON $examples_src/bufr_read_tropical_cyclone.py >$fTmp -#TODO: check the output - -#cat $fTmp +#TODO: check the results +cat > $ref <