Changeset 2017 in lmdz_wrf


Ignore:
Timestamp:
Aug 2, 2018, 6:36:25 PM (7 years ago)
Author:
lfita
Message:

Working up to sounding plots

File:
1 edited

Legend:

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

    r2016 r2017  
    5353
    5454# files from scratch
    55 if test; then ${fscratch} = 'true'; fscratch=true
     55if test ${fscratch} = 'true'; then fscratch=true
    5656else fscratch=false; fi
    5757
    5858# figures from scratch
    59 if test; then ${gscratch} = 'true'; gscratch=true
     59if test ${gscratch} = 'true'; then gscratch=true
    6060else gscratch=false; fi
    6161
     
    435435    if ${gscratch}; then rm ${ofign} >& /dev/null; fi
    436436    if test ! -f ${ofign}; then
    437       echo "  Wind Rose on: "${timeS}
     437      echo "    Wind Rose on: "$(echo ${timeS} | tr '!' ' ')
    438438      python ${pyHOME}/drawing.py -o draw_WindRose -S ${values} -v ua,va -f ${filen} >& /dev/null
    439439      if test $? -ne 0; then
     
    477477    if ${gscratch}; then rm ${ofign} >& /dev/null; fi
    478478    if test ! -f ${ofign}; then
    479       echo "  Sounding on: "$(echo ${timeS} | tr '!' ' ')
     479      echo "    Sounding on: "$(echo ${timeS} | tr '!' ' ')
    480480      python ${pyHOME}/drawing.py -o draw_SkewT -S ${values} -v ta,tda,pres -f ${filen} >& /dev/null
    481481      if test $? -ne 0; then
     
    520520  if ${gscratch}; then rm ${ofign} >& /dev/null; fi
    521521  if test ! -f ${ofign}; then
    522     echo "  Sounding on: "$(echo ${timeS} | tr '!' ' ')
     522    echo "    Sounding on: "$(echo ${timeS} | tr '!' ' ')
    523523    python ${pyHOME}/drawing.py -o draw_multi_SkewT -S ${tatda_evol_values} -f ${tatda_evol_files} >& /dev/null
    524524    if test $? -ne 0; then
     
    567567    if ${gscratch}; then rm ${ofign} >& /dev/null; fi
    568568    if test ! -f ${ofign}; then
    569       echo "  Sounding on: "$(echo ${dateS} | tr '!' ' ')
     569      echo "    Sounding on: "$(echo ${dateS} | tr '!' ' ')
    570570      python ${pyHOME}/drawing.py -o draw_multi_SkewT -S ${values} -f ${compfiles} >& /dev/null
    571571      if test $? -ne 0; then
     
    620620  if ${gscratch}; then rm ${ofign} >& /dev/null; fi
    621621  if test ! -f ${ofign}; then
     622    echo "    Sounding comparison on : "${sndstid}" by "${expl}
    622623    python ${pyHOME}/drawing.py -o draw_2D_shad_contdisc_time -f ${cfiles} -S ${cvalues}
    623624    if test $? -ne 0; then
     
    672673    if ${gscratch}; then rm ${ofign} >& /dev/null; fi
    673674    if test ! -f ${ofign}; then
     675      echo "    Time-Series comparison on : "${sti}" for "${sfcv}
    674676      python ${pyHOME}/drawing.py -o draw_lines_time -f ${files} -S ${values} -v ${sfcv}
    675677      if test $? -ne 0; then
     
    735737    if ${gscratch}; then rm ${ofign} >& /dev/null; fi
    736738    if test ! -f ${ofign}; then
     739      echo "    Map comparison on : "$(echo ${timeS} | tr '!' ' ')" by "${expl}" for "${sfcv}
    737740      python ${pyHOME}/drawing.py -o draw_2D_shad_contdisc -f ${cfiles} -S ${cvalues}
    738741      if test $? -ne 0; then
     
    871874  iost=`expr ${iost} + 1`
    872875done
     876sndstids=${oststids}
    873877
    874878# surface data
     
    955959  iost=`expr ${iost} + 1`
    956960done
     961sfcstids=${oststids}
    957962
    958963###
     
    988993fi
    989994
    990 exit
    991 
    992995###
    993996## Soundings figures
     
    10081011      echo python ${pyHOME}/diagnostics.py -f ${sndf} -d 'time@time,pres@pres' -v 'uavaFROMwswd|ws@wd'
    10091012      exit
    1010     fi
     1013    fi
     1014    echo " * Getting ua,va winds from station "${stid}": " >> ${ofileins}
     1015    echo python ${pyHOME}/diagnostics.py -f ${sndf} -d "'"time@time,pres@pres"'"     \
     1016      -v "'"uavaFROMwswd|ws@wd"'" >> ${ofileins}
     1017    echo " " >> ${ofileins}   
    10111018    mv diagnostics.nc ${ouavasndf}
    10121019  fi
     
    10851092    col2=`expr ${col2} - ${ddcol}`
    10861093
    1087     #exit
    10881094    it=`expr ${it} + 1`
    10891095  done
     
    10951101# End of soundings
    10961102done
     1103exit
    10971104
    10981105# snd-sims comparison
     
    11391146      expc=`echo ${exp} | tr ',' ' ' | awk '{print $4}'`
    11401147
    1141       simjoinselvars=${odir}'/simout_vars_'${expl}'.nc'
    1142       simdiagsf=${odir}'/simout_snddiags_'${expl}'.nc'
     1148      #simjoinselvars=${odir}'/simout_vars_'${expl}'.nc'
     1149      #simdiagsf=${odir}'/simout_snddiags_'${expl}'.nc'
     1150      #simfiles=`ls -1 ${simdir}/${expf}/${simH}*${simM}*${simT}`
     1151      simjoinselvars=`ls -1 ${simdir}/${expf}/${simH}*${simM}*${simT} | head -n 1`
     1152      simdiagsf=${odir}'/simout_sndvars_'${stid}'_'${expl}'.nc'
     1153      simsndptf=${odir}'/simout_sndvars_'${stid}'_'${expl}'.nc'
    11431154
    11441155      gridsndv=`python ${pyHOME}/nc_var.py -o get_point -f ${simjoinselvars}         \
     
    11541165      fi
    11551166
    1156       # Getting values at the sounding point
    1157       simsndptf=${odir}'/simout_vars_sndpt_'${stid}'_'${expl}'.nc'
    1158       if ${fscratch}; then rm ${simsndptf} >& /dev/null; fi
    1159       if test ! -f ${simsndptf}; then
    1160         values='time,0,-1,1@bottom_top,0,-1,1@south_north,'${ysnd}','${ysnd}',1@'
    1161         values=${values}'west_east,'${xsnd}','${xsnd}',1'
    1162         python ${pyHOME}/nc_var.py -o DataSetSection_multidims -f ${simdiagsf}       \
    1163           -S ${values} -v all
    1164         if test $? -ne 0; then
    1165           echo ${errmsg}
    1166           echo "  python failed!!"
    1167           echo python ${pyHOME}/nc_var.py -o DataSetSection_multidims -f ${simdiagsf}\
    1168             -S "'"${values}"'" -v all
    1169           exit
    1170         fi
    1171         ofilen=`ls -rt1 ${odir} | tail -n 1`
    1172         mv ${odir}/${ofilen} ${simsndptf}
    1173       fi
    1174 
    11751167      # Time information from simulation
    11761168      simdimt=`python ${pyHOME}/nc_var.py -o itime -S CFtime, -v time                \
     
    11861178        -S ${otimev}';'${tunits} -v time | tr ' ' '@'`
    11871179      timestep=`echo ${timestepv} | tr '@' ' ' | awk '{print $1}'`
     1180      timestepdiff=`echo ${timestepv} | tr '@' ' ' | awk '{print $2}'`
    11881181      if test $? -ne 0; then
    11891182        echo ${errmsg}
     
    12491242    fivals=${fivals}${compfiles}'@'${dateS}'@'${ofigdir}'@'${datefS}'@'${ofigdir}'@'
    12501243    fivals=${fivals}'SkewT-logP_obs-sim_step'
    1251 
    12521244    multi_SkewT_logP_plot ${fivals}
    12531245
     
    12631255# End of soundings stations
    12641256done
     1257
     1258exit
    12651259
    12661260###
Note: See TracChangeset for help on using the changeset viewer.