Changeset 927 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Jun 22, 2016, 8:41:12 PM (8 years ago)
Author:
lfita
Message:

Working version with the right values for the configuration
Including the skip of the plot when there is not the file with the necessary variable

Location:
trunk/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/model_graphics.bash

    r926 r927  
    808808      varn=`echo ${varkind} | tr '|' ' ' | awk '{print $1}'`
    809809      kind=`echo ${varkind} | tr '|' ' ' | awk '{print $2}'`
    810       # Do we have 'pinterp' in the plot?
     810      # Do we have processed the given variable?
     811      nfiles=`ls -1 ${odir}/${varn}_${headf}*.nc | wc -l | awk '{print $1}'`
     812      if test ${nfiles} -eq 0; then
     813        echo "  "${fname}": there are no files for variable '"${varn}"' skiping it !!"
     814        return
     815      fi
    811816
    812817      if $(isInlist ${varmeanname} ${kind}); then
     
    920925 
    921926        plotins="python "${pyHOME}"/drawing.py -f "${figfs}" -o draw_2D_shad_cont "
    922         plotins=${plotins}"-S '"${graphvals}"' -v "${shdstdn}"mean,"${cntstdn}"mean"
     927        plotins=${plotins}"-S '"${graphvals}"' -v "$(echo ${varinfileb} | tr ':' ',')
    923928        echo " " >> ${odir}/all_figures.inf
    924929        echo "#"$(echo $f{igtit} | tr '|' ' ') >> ${odir}/all_figures.inf
    925930        echo ${plotins} >> ${odir}/all_figures.inf
    926931        pyout=`python ${pyHOME}/drawing.py -f ${figfs} -o draw_2D_shad_cont          \
    927           -S ${graphvals} -v ${shdstdn}'mean,'${cntstdn}'mean'`
     932          -S ${graphvals} -v $(echo ${varinfilen} | tr ':' ',')`
    928933        pyn=$?
    929934        Spyout=`echo ${pyout} | tr '\n' '#' | tr ' ' '!'`
     
    13621367
    13631368    pts=`echo ${plots} | tr ':' ' '`
     1369    idp=1
    13641370    for pt in ${pts}; do
    13651371      echo "        "${pt}
    13661372      draw_plot ${pt} ${owdir} ${fileh} ${figscratch}
     1373      idp=`expr ${idp} + 1`
    13671374    done
    13681375
     1376    echo "  "${main}": "${idp}" direct plots hav been computed"
    13691377# LLUIS
    1370 
    1371 
    13721378    cd ${rootsh}
    13731379    exit
  • trunk/tools/model_graphics_template.dat

    r926 r927  
    104104directplots = hovmsfc:map2Dsfc:map3D:shadcount2Dsfc
    105105
    106 pltshadcount2Dsfc = huss|tmean#tas|tmean:vas|tmean#uas|tmean:ps|tmean#wss|tmean:pr|tmean#rsds|tmean:prw|tmean#clt|tmean:hfls|tmean#hfss|tmean:evspsbl|tmean#bils|tmean:zmaxth|tmean#stherm|tmean:wakeh|tmean#wakes|tmean:zmaxth|tmean#stherm|tmean:prls|tmean#prc|tmean:clt|tmean#cll|tmean:clm|tmean:clh|tmean:hurs|tmean#zmla|tmean:huss|last#tas|last:vas|last#uas|last:ps|last#wss|mean:pr|last#rsds|last:prw|last#clt|last:hfls|last#hfss|last:evspsbl|last#bils|last:zmaxth|last#stherm|last:wakeh|last#wakes|last:zmaxth|last#stherm|last:prls|last#prc|last:clt|last#cll|last:clm|last:clh|last:hurs|last#zmla|last
     106pltshadcount2Dsfc = huss|tmean#tas|tmean:vas|tmean#uas|tmean:ps|tmean#wss|tmean:pr|tmean#rsds|tmean:prw|tmean#clt|tmean:hfls|tmean#hfss|tmean:evspsbl|tmean#bils|tmean:zmaxth|tmean#stherm|tmean:wakeh|tmean#wakes|tmean:zmaxth|tmean#stherm|tmean:prls|tmean#prc|tmean:clt|tmean#cll|tmean:clm|tmean#clh|tmean:hurs|tmean#zmla|tmean:huss|last#tas|last:vas|last#uas|last:ps|last#wss|tmean:pr|last#rsds|last:prw|last#clt|last:hfls|last#hfss|last:evspsbl|last#bils|last:zmaxth|last#stherm|last:wakeh|last#wakes|last:zmaxth|last#stherm|last:prls|last#prc|last:clt|last#cll|last:clm|last#clh|last:hurs|last#zmla|last
    107107
    108108pltdiffmap2Dsfc = uas:vas:ps:pr
Note: See TracChangeset for help on using the changeset viewer.