Changeset 626 in lmdz_wrf
- Timestamp:
- Sep 14, 2015, 5:40:15 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r625 r626 15251 15251 'wrf': WRF kind 15252 15252 [Nangle]: Number of angles 15253 [radii]: length in gr tid points of the angle15253 [radii]: length in grid points of the radius 15254 15254 ncfile= netCDF file to use 15255 15255 varn= ',' list of variables' name ('all', for all variables) … … 15343 15343 15344 15344 trajpos = np.zeros(Ttraj,Nangle,raddi) 15345 15346 # Grid position at each time-step and angle 15347 varvalst = np.ones((Traj, Nangle, radii, 2), dtype=np.float)*fillValue 15348 varvalstSQ = np.zeros((Traj, radii, radii), dtype=bool) 15345 15349 15346 15350 it = 0 … … 15382 15386 # Assuming time as the first dimension in a C/python like way (t=0) 15383 15387 15384 varvalst = np.ones((Nangle, radii), dtype=np.float)*fillValue15385 15388 posangle = np.zeros((radii,2), dtype=np.float) 15386 15389 … … 16001 16004 ivar = ivar + 1 16002 16005 16003 16004 16006 # global attributes 16005 16007 objofile.setncattr('author', 'L. Fita') … … 16022 16024 16023 16025 return 16026 16027 # [trajfile]: ASCII file with the trajectory ('#' not readed) 16028 # [time] [xpoint] [ypoint] 16029 # [Tbeg]: equivalent first time-step of the trajectory within the netCDF file 16030 # [lonname],[latname],[zname],[timename]: longitude, latitude, z and time variables names 16031 # [timekind]: kind of time 16032 # 'cf': cf-compilant 16033 # 'wrf': WRF kind 16034 # [Nangle]: Number of angles 16035 # [radii]: length in grid points of the radius 16036 16037 compute_tevolboxtraj('/bdd/PCER/workspace/lfita/etudes/FF/medic051215_2km/run/trajectory.dat@6,XLONG,XLAT,ZNU,Times,wrf,4,10', \ 16038 '001/full_concatenated.nc', 'U10') 16039 16040 ompute_tevolboxtraj_radialsec(values, ncfile, varn) 16041 quit() 16042 16024 16043 16025 16044 def DatesFiles(values, ncfile, varn):
Note: See TracChangeset
for help on using the changeset viewer.