Changeset 2028 in lmdz_wrf for trunk/tools/obs-sim_Comparison.bash


Ignore:
Timestamp:
Aug 6, 2018, 4:23:09 PM (6 years ago)
Author:
lfita
Message:

Adding `inf_operSlist'
Improving `inf_operSlist' checking of sign preservation of interval

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/obs-sim_Comparison.bash

    r2024 r2028  
    14701470        obsuavaf=${odir}/sounding_uava_${stid}.nc
    14711471        obspres=`python $pyHOME/nc_var.py -o varout -f ${obsuavaf} -S time:${it}     \
    1472           -v pres | awk '{print $2}' | tr '\n' ' '`
    1473         kobs=0
    1474         for obsp0 in ${obspres}; do
    1475           obsp=`echo ${obsp0} | awk '{printf ("%d",$1*1000)}'`
    1476           if test ${obsp} -gt ${nsimpres}; then kobs=`expr ${kobs} + 1`
    1477           else kobs=`expr ${kobs} + 1`; break; fi
    1478         done
     1472          -v pres | awk '{print $2}' | tr '\n' ':'`
     1473        vals=${obspres}',threshold,:,'${nsimpres}
     1474        kobs=`python ${pyHOME}/generic.py -o inf_operSlist -S ${vals}`
     1475        if test $? -ne 0; then
     1476            echo ${errormsg}
     1477            echo "  python failed !!"
     1478            echo python ${pyHOME}/generic.py -o inf_operSlist -S ${vals}
     1479            exit
     1480        fi
     1481        echo "      obs level of sim npres "${nsimpres}": "${kobs}
    14791482
    14801483        mWRcomplabs='obs,'${expn}
     
    15381541
    15391542    multi_WindRose_plot ${fivals}
     1543    exit
    15401544
    15411545    it=`expr ${it} + 1`
Note: See TracChangeset for help on using the changeset viewer.