"Fossies" - the Fresh Open Source Software Archive

Member "fimex-1.4.1/test/testVerticalInterpolatorAltitude.sh" (30 Oct 2019, 657 Bytes) of package /linux/privat/fimex-1.4.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #! /bin/sh
    2 echo "testing conversion of pressure to altitude"
    3 TEST_SRCDIR=$(dirname $0)
    4 OUT_NC="out$$.nc"
    5 ./fimex.sh \
    6     --input.file=${TEST_SRCDIR}/verticalPressure.nc \
    7     --verticalInterpolate.type=altitude \
    8     --verticalInterpolate.method=linear \
    9     --verticalInterpolate.level1=0,50,100,250,500,750,1000,5500,10000,20000 \
   10     --output.file="$OUT_NC"
   11 if [ $? != 0 ]; then
   12   echo "failed converting pressure to altitude"
   13   rm -f "$OUT_NC"
   14   exit 1
   15 fi
   16 EXP_NC="${TEST_SRCDIR}/verticalPressureAltitude.nc"
   17 if ./nccmp.sh "$EXP_NC" "$OUT_NC" ; then
   18   echo "success"
   19   E=0
   20 else
   21   echo "failed diff pressure to altitude"
   22   E=1
   23 fi
   24 rm -f "$OUT_NC"
   25 exit $E