Changeset 757 in lmdz_wrf


Ignore:
Timestamp:
May 4, 2016, 12:53:13 PM (9 years ago)
Author:
lfita
Message:

More `gen' ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r755 r757  
    87478747
    87488748# Variable
    8749     varvalues = variables_values(varn)
     8749    varvalues = gen.variables_values(varn)
    87508750
    87518751    if onewnc.variables.has_key(varvalues[0]):
     
    88218821    wrfnc = NetCDFFile(ncfile, 'a')
    88228822
    8823     if not searchInlist(wrfnc.variables.keys(),wlonn):
     8823    if not gen.searchInlist(wrfnc.variables.keys(),wlonn):
    88248824        print errormsg
    88258825        print '  ' + fname + ": file '" + ncfile + "' has not lon variable '" +      \
     
    88278827        quit(-1)
    88288828
    8829     if  not searchInlist(wrfnc.variables.keys(),wlatn):
     8829    if  not gen.searchInlist(wrfnc.variables.keys(),wlatn):
    88308830        print errormsg
    88318831        print '  ' + fname + ": file '" + ncfile + "' has not lat variable '" +      \
     
    88338833        quit(-1)
    88348834
    8835     if  not searchInlist(wrfnc.dimensions.keys(),'west_east'):
     8835    if  not gen.searchInlist(wrfnc.dimensions.keys(),'west_east'):
    88368836        print errormsg
    88378837        print '  ' + fname + ": file '" + ncfile + "' has not 'west_east' dimension !!!"
    88388838        quit(-1)
    88398839
    8840     if  not searchInlist(wrfnc.dimensions.keys(),'south_north'):
     8840    if  not gen.searchInlist(wrfnc.dimensions.keys(),'south_north'):
    88418841        print errormsg
    88428842        print '  ' + fname + ": file '" + ncfile + "' has not 'south_north' dimension !!!"
Note: See TracChangeset for help on using the changeset viewer.