Changeset 276 in lmdz_wrf
- Timestamp:
- Feb 25, 2015, 11:48:36 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r275 r276 9831 9831 arguments = '[trajfile]@[Tbeg],[lonname],[latname],[zname],[timename],' + \ 9832 9832 '[timekind],[boxsize],[circler]]' 9833 check_arguments(f ame,len(arguments.split(',')),arguments,',',8)9833 check_arguments(fname,len(arguments.split(',')),arguments,',',8) 9834 9834 9835 9835 ofile = 'tevolboxtraj_' + varn + '.nc' … … 9908 9908 ## 9909 9909 Ttraj = file_nlines(trajfile,'#') 9910 if Ttraj > varobj.shape[0]: 9910 if timekind == 'wrf': 9911 dimt = objfile.variables[timn].shape[0] 9912 else: 9913 dimt = objfile.variables[timn].shape 9914 9915 if Ttraj > dimt: 9911 9916 print errormsg 9912 9917 print ' ' + fname + ': trajectory has ', Ttraj, ' time steps and data', \ … … 9976 9981 # trajcut[0] = tstept - 1 9977 9982 # Assuming time as the first dimension in a C/python like way (t=0) 9978 9979 slicev.append(gtrajvals[it,0])9980 9983 9981 9984 # box values … … 10623 10626 #compute_tevolboxtraj('control/trajectory.dat@0,lon,lat,time,cf,5,5', \ 10624 10627 # 'control/wss.nc', 'wss') 10625 # in /home/lluis/etudes/WL_HyMeX/superstorm10626 compute_tevolboxtraj(' control/trajectory.dat@0,XLONG,XLAT,ZNU,Times,wrf,3,3', \10627 ' control/wrfout/wrfout_d01_2001-11-09_00:00:00', 'PSFC')10628 # in camelot, /bdd/PCER/workspace/lfita/etudes/FF/50sims 10629 compute_tevolboxtraj('001/trajectory.dat@0,XLONG,XLAT,ZNU,Times,wrf,3,3', \ 10630 '001/full_concatenated.nc', 'PSFC') 10628 10631 10629 10632 def numVector_String(vec,char):
Note: See TracChangeset
for help on using the changeset viewer.