Changeset 2017 in lmdz_wrf
- Timestamp:
- Aug 2, 2018, 6:36:25 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/obs-sim_Comparison.bash
r2016 r2017 53 53 54 54 # files from scratch 55 if test ; then ${fscratch} = 'true';fscratch=true55 if test ${fscratch} = 'true'; then fscratch=true 56 56 else fscratch=false; fi 57 57 58 58 # figures from scratch 59 if test ; then ${gscratch} = 'true';gscratch=true59 if test ${gscratch} = 'true'; then gscratch=true 60 60 else gscratch=false; fi 61 61 … … 435 435 if ${gscratch}; then rm ${ofign} >& /dev/null; fi 436 436 if test ! -f ${ofign}; then 437 echo " Wind Rose on: "${timeS}437 echo " Wind Rose on: "$(echo ${timeS} | tr '!' ' ') 438 438 python ${pyHOME}/drawing.py -o draw_WindRose -S ${values} -v ua,va -f ${filen} >& /dev/null 439 439 if test $? -ne 0; then … … 477 477 if ${gscratch}; then rm ${ofign} >& /dev/null; fi 478 478 if test ! -f ${ofign}; then 479 echo " Sounding on: "$(echo ${timeS} | tr '!' ' ')479 echo " Sounding on: "$(echo ${timeS} | tr '!' ' ') 480 480 python ${pyHOME}/drawing.py -o draw_SkewT -S ${values} -v ta,tda,pres -f ${filen} >& /dev/null 481 481 if test $? -ne 0; then … … 520 520 if ${gscratch}; then rm ${ofign} >& /dev/null; fi 521 521 if test ! -f ${ofign}; then 522 echo " Sounding on: "$(echo ${timeS} | tr '!' ' ')522 echo " Sounding on: "$(echo ${timeS} | tr '!' ' ') 523 523 python ${pyHOME}/drawing.py -o draw_multi_SkewT -S ${tatda_evol_values} -f ${tatda_evol_files} >& /dev/null 524 524 if test $? -ne 0; then … … 567 567 if ${gscratch}; then rm ${ofign} >& /dev/null; fi 568 568 if test ! -f ${ofign}; then 569 echo " Sounding on: "$(echo ${dateS} | tr '!' ' ')569 echo " Sounding on: "$(echo ${dateS} | tr '!' ' ') 570 570 python ${pyHOME}/drawing.py -o draw_multi_SkewT -S ${values} -f ${compfiles} >& /dev/null 571 571 if test $? -ne 0; then … … 620 620 if ${gscratch}; then rm ${ofign} >& /dev/null; fi 621 621 if test ! -f ${ofign}; then 622 echo " Sounding comparison on : "${sndstid}" by "${expl} 622 623 python ${pyHOME}/drawing.py -o draw_2D_shad_contdisc_time -f ${cfiles} -S ${cvalues} 623 624 if test $? -ne 0; then … … 672 673 if ${gscratch}; then rm ${ofign} >& /dev/null; fi 673 674 if test ! -f ${ofign}; then 675 echo " Time-Series comparison on : "${sti}" for "${sfcv} 674 676 python ${pyHOME}/drawing.py -o draw_lines_time -f ${files} -S ${values} -v ${sfcv} 675 677 if test $? -ne 0; then … … 735 737 if ${gscratch}; then rm ${ofign} >& /dev/null; fi 736 738 if test ! -f ${ofign}; then 739 echo " Map comparison on : "$(echo ${timeS} | tr '!' ' ')" by "${expl}" for "${sfcv} 737 740 python ${pyHOME}/drawing.py -o draw_2D_shad_contdisc -f ${cfiles} -S ${cvalues} 738 741 if test $? -ne 0; then … … 871 874 iost=`expr ${iost} + 1` 872 875 done 876 sndstids=${oststids} 873 877 874 878 # surface data … … 955 959 iost=`expr ${iost} + 1` 956 960 done 961 sfcstids=${oststids} 957 962 958 963 ### … … 988 993 fi 989 994 990 exit991 992 995 ### 993 996 ## Soundings figures … … 1008 1011 echo python ${pyHOME}/diagnostics.py -f ${sndf} -d 'time@time,pres@pres' -v 'uavaFROMwswd|ws@wd' 1009 1012 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} 1011 1018 mv diagnostics.nc ${ouavasndf} 1012 1019 fi … … 1085 1092 col2=`expr ${col2} - ${ddcol}` 1086 1093 1087 #exit1088 1094 it=`expr ${it} + 1` 1089 1095 done … … 1095 1101 # End of soundings 1096 1102 done 1103 exit 1097 1104 1098 1105 # snd-sims comparison … … 1139 1146 expc=`echo ${exp} | tr ',' ' ' | awk '{print $4}'` 1140 1147 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' 1143 1154 1144 1155 gridsndv=`python ${pyHOME}/nc_var.py -o get_point -f ${simjoinselvars} \ … … 1154 1165 fi 1155 1166 1156 # Getting values at the sounding point1157 simsndptf=${odir}'/simout_vars_sndpt_'${stid}'_'${expl}'.nc'1158 if ${fscratch}; then rm ${simsndptf} >& /dev/null; fi1159 if test ! -f ${simsndptf}; then1160 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 all1164 if test $? -ne 0; then1165 echo ${errmsg}1166 echo " python failed!!"1167 echo python ${pyHOME}/nc_var.py -o DataSetSection_multidims -f ${simdiagsf}\1168 -S "'"${values}"'" -v all1169 exit1170 fi1171 ofilen=`ls -rt1 ${odir} | tail -n 1`1172 mv ${odir}/${ofilen} ${simsndptf}1173 fi1174 1175 1167 # Time information from simulation 1176 1168 simdimt=`python ${pyHOME}/nc_var.py -o itime -S CFtime, -v time \ … … 1186 1178 -S ${otimev}';'${tunits} -v time | tr ' ' '@'` 1187 1179 timestep=`echo ${timestepv} | tr '@' ' ' | awk '{print $1}'` 1180 timestepdiff=`echo ${timestepv} | tr '@' ' ' | awk '{print $2}'` 1188 1181 if test $? -ne 0; then 1189 1182 echo ${errmsg} … … 1249 1242 fivals=${fivals}${compfiles}'@'${dateS}'@'${ofigdir}'@'${datefS}'@'${ofigdir}'@' 1250 1243 fivals=${fivals}'SkewT-logP_obs-sim_step' 1251 1252 1244 multi_SkewT_logP_plot ${fivals} 1253 1245 … … 1263 1255 # End of soundings stations 1264 1256 done 1257 1258 exit 1265 1259 1266 1260 ###
Note: See TracChangeset
for help on using the changeset viewer.