- Timestamp:
- Aug 7, 2018, 1:34:32 AM (6 years ago)
- Location:
- trunk/tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/diagnostics.inf
r1980 r2033 42 42 va, WRFva, U@V@SINALPHA@COSALPHA 43 43 uavaFwswd, uavaFROMwswd, ws@wd 44 uavaFOwswd, uavaFROMobswswd, ws@wd 44 45 uavaz, WRFzwind, U@V@WRFz@U10@V10@SINALPHA@COSALPHA@z=100. 45 46 uavaz, WRFzwind_log, U@V@WRFz@U10@V10@SINALPHA@COSALPHA@z=100. -
trunk/tools/diagnostics.py
r1999 r2033 911 911 ncvar.insert_variable(ncobj, 'va', va, dnamesvar, dvnamesvar, newnc) 912 912 913 # ua va from obs ws wd (deg) 914 elif diagn == 'uavaFROMobswswd': 915 916 var0 = ncobj.variables[depvars[0]][:] 917 var1 = ncobj.variables[depvars[1]][:] 918 919 ua = var0*np.cos((var1+180.)*np.pi/180.) 920 va = var0*np.sin((var1+180.)*np.pi/180.) 921 922 dnamesvar = ncobj.variables[depvars[0]].dimensions 923 dvnamesvar = ncvar.var_dim_dimv(dnamesvar,dnames,dvnames) 924 925 ncvar.insert_variable(ncobj, 'ua', ua, dnamesvar, dvnamesvar, newnc) 926 ncvar.insert_variable(ncobj, 'va', va, dnamesvar, dvnamesvar, newnc) 913 927 914 928 # WRFbils fom WRF as HFX + LH -
trunk/tools/obs-sim_Comparison.bash
r2032 r2033 913 913 figheader=`echo ${valuesfig} | tr '%' ' ' | awk '{print $9}'` 914 914 915 Nfiles=`echo ${labs} | tr ' :' ' ' | wc -w | awk '{print $1-1}'`915 Nfiles=`echo ${labs} | tr ',' ' ' | wc -w | awk '{print $1-1}'` 916 916 frqm='1' 917 917 iff=1 918 while test ${iff} -le ${Nfiles}; do frqm=${frqm}'@10'; done919 920 values='linepoint;multicol;pres;-;'${lmark}' :'${frqm}';spectral;auto:'${labs}':'918 while test ${iff} -le ${Nfiles}; do frqm=${frqm}'@10'; iff=`expr ${iff} + 1`; done 919 920 values='linepoint;multicol;pres;-;'${lmark}';'${frqm}';spectral;auto:'${labs}':' 921 921 values=${values}'WindRose!obs!,!sim!comparison!at!'${stid}'!on!'${timeS}'!UTC:' 922 922 values=${values}${kfig}':auto:''True' … … 1268 1268 if ${fscratch}; then rm ${ouavasndf}; fi 1269 1269 if test ! -f ${ouavasndf}; then 1270 python ${pyHOME}/diagnostics.py -f ${sndf} -d 'time@time,pres@pres' -v 'uavaFROMwswd|ws@wd' 1270 python ${pyHOME}/diagnostics.py -f ${sndf} -d 'time@time,pres@pres' \ 1271 -v 'uavaFROMobswswd|ws@wd' 1271 1272 if test $? -ne 0; then 1272 1273 echo ${errmsg} 1273 1274 echo " python failed!!" 1274 echo python ${pyHOME}/diagnostics.py -f ${sndf} -d 'time@time,pres@pres' -v 'uavaFROMwswd|ws@wd' 1275 echo python ${pyHOME}/diagnostics.py -f ${sndf} -d 'time@time,pres@pres' \ 1276 -v 'uavaFROMobswswd|ws@wd' 1275 1277 exit 1276 1278 fi 1277 1279 echo " * Getting ua,va winds from station "${stid}": " >> ${ofileins} 1278 1280 echo python ${pyHOME}/diagnostics.py -f ${sndf} -d "'"time@time,pres@pres"'" \ 1279 -v "'"uavaFROM wswd|ws@wd"'" >> ${ofileins}1281 -v "'"uavaFROMobswswd|ws@wd"'" >> ${ofileins} 1280 1282 echo " " >> ${ofileins} 1281 1283 mv diagnostics.nc ${ouavasndf} … … 1549 1551 1550 1552 multi_WindRose_plot ${fivals} 1551 exit1552 1553 1553 1554 it=`expr ${it} + 1`
Note: See TracChangeset
for help on using the changeset viewer.