Changeset 1358 in lmdz_wrf for trunk


Ignore:
Timestamp:
Nov 28, 2016, 4:16:51 PM (8 years ago)
Author:
lfita
Message:

Changing 'WRFt' to 'WRFtime'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r1354 r1358  
    1317113171        [fold]: folder with the location of the netCDF files
    1317213172      [ncfile]= header of the name of the files to concatenate [ncfile]*
    13173       [varn]= name of the variable Time ('WRFt', for WRF time)
     13173      [varn]= name of the variable Time ('WRFtime', for WRF time)
    1317413174    """
    1317513175    import subprocess as sub
     
    1319913199        ncf = NetCDFFile(filename, 'r')
    1320013200        datesv = []
    13201         if varn == 'WRFt':
     13201        if varn == 'WRFtime':
    1320213202            fdates = ncf.variables['Times'][:]
    1320313203            for it in range(fdates.shape[0]):
     
    1368213682    """ Function to get a section (values along multiple variables) of a given data-set
    1368313683      values= [varn1],[beg1],[end1],[int1]@[...[[varnM],[begM],[endM],[intM]]]
    13684         [varni]: name of the variable ('WRFt', for WRF time varibale)
     13684        [varni]: name of the variable ('WRFtime', for WRF time varibale)
    1368513685        [begi],[endi],[inti]: beginning, end and interval along the variable
    1368613686          [endi] = -1, maximum value
     
    1369713697
    1369813698# Variables not to check in the file
    13699     NOcheck = ['WRFt']
     13699    NOcheck = ['WRFtime']
    1370013700
    1370113701    if values == 'h':
     
    1379413794            quit(-1)
    1379513795
    13796         if varns[ivar] == 'WRFt':
     13796        if varns[ivar] == 'WRFtime':
    1379713797            ovar = nciobj.variables['Times'][:]
    1379813798            vals = []
     
    1391113911
    1391213912#DataSetSection_multivars('XTIME,4380,4800,-1','/home/lluis/PY/wrfout_d01_2001-11-11_00:00:00','T2')
    13913 #DataSetSection_multivars('WRFt,20011111060000,20011111180000,-1','/home/lluis/PY/wrfout_d01_2001-11-11_00:00:00','all')
     13913#DataSetSection_multivars('WRFtime,20011111060000,20011111180000,-1','/home/lluis/PY/wrfout_d01_2001-11-11_00:00:00','all')
    1391413914#quit()
    1391513915
Note: See TracChangeset for help on using the changeset viewer.