Changeset 998 in lmdz_wrf


Ignore:
Timestamp:
Aug 10, 2016, 4:20:15 PM (8 years ago)
Author:
lfita
Message:

Minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r989 r998  
    1591715917      varname= CF-compilant variable name
    1591815918      onc= netCDF file object from which the variable should be retrieved
     15919      printing= whether result should be printed in standard output or no ('true'/'false')
    1591915920      NOTE: on output 'computevardiag', first value of the list is the 'diagnostics.py' name
    1592015921    >>> onc = NetCDFFile('/home/lluis/PY/wrfout_d01_2001-11-11_00:00:00', 'r')
     
    1594815949    diagvars = gen.CFvar_DIAGvar(varname)
    1594915950
    15950 #    print '  ' + fname + ': Lluis; diagvars:', diagvars
    1595115951    computevarmod = []
    1595215952    if modelvars is not None:
     
    1596715967                        if gen.searchInlist(ncvars,cvar): alltrue = True
    1596815968            else:
    15969 #                print '  ' + fname + ': Lluis; combovar:', combovar[0],' is:',gen.searchInlist(ncvars,combovar[0])
    1597015969                if gen.searchInlist(ncvars,combovar[0]): alltrue = True
    1597115970
    1597215971            if alltrue: computevardiag.append([diagn] + combovar)
    15973 #    print '  ' + fname + ': Lluis; alltrue:', alltrue, 'computevardiag:', computevardiag
    1597415972
    1597515973    if len(computevardiag) < 1: computevardiag = None
    1597615974
    1597715975    return computevarmod, computevardiag
    15978 #onc = NetCDFFile('/home/lluis/PY/wrfout_d01_2001-11-11_00:00:00', 'r')
    15979 #mod, diag = var_model('tas', onc)
    15980 #print mod
    15981 #print diag
    15982 #mod, diag = var_model('hurs', onc)
    15983 #print mod
    15984 #print diag
    1598515976
    1598615977def computevar_model(values, ncfile):
Note: See TracChangeset for help on using the changeset viewer.