Changeset 626 in lmdz_wrf


Ignore:
Timestamp:
Sep 14, 2015, 5:40:15 PM (9 years ago)
Author:
lfita
Message:

Testing the radial cross section program

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r625 r626  
    1525115251          'wrf': WRF kind
    1525215252        [Nangle]: Number of angles
    15253         [radii]: length in grtid points of the angle
     15253        [radii]: length in grid points of the radius
    1525415254      ncfile= netCDF file to use
    1525515255      varn= ',' list of variables' name ('all', for all variables)
     
    1534315343
    1534415344    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)
    1534515349
    1534615350    it = 0
     
    1538215386# Assuming time as the first dimension in a C/python like way (t=0)
    1538315387
    15384             varvalst = np.ones((Nangle, radii), dtype=np.float)*fillValue
    1538515388            posangle = np.zeros((radii,2), dtype=np.float)
    1538615389
     
    1600116004        ivar = ivar + 1
    1600216005
    16003 
    1600416006# global attributes
    1600516007    objofile.setncattr('author', 'L. Fita')
     
    1602216024
    1602316025    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
     16037compute_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
     16040ompute_tevolboxtraj_radialsec(values, ncfile, varn)
     16041quit()
     16042
    1602416043
    1602516044def DatesFiles(values, ncfile, varn):
Note: See TracChangeset for help on using the changeset viewer.