Changeset 865 in lmdz_wrf for trunk


Ignore:
Timestamp:
Jun 17, 2016, 7:48:24 PM (8 years ago)
Author:
lfita
Message:

Adding not error when first dependency is 'deaccum' or 'accum', since last value is the name of the new variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/diagnostics.py

    r772 r865  
    10691069
    10701070    for it in range(dt):
    1071         wrfdates = ncvar.datetimeStr_conversion(timewrfv[it,:],'WRFdatetime', 'matYmdHMS')
    1072         WRFtime[it] = ncvar.realdatetime1_CFcompilant(wrfdates, refdate, tunitsval)
     1071        wrfdates = gen.datetimeStr_conversion(timewrfv[it,:],'WRFdatetime', 'matYmdHMS')
     1072        WRFtime[it] = gen.realdatetime1_CFcompilant(wrfdates, refdate, tunitsval)
    10731073
    10741074    tunits = tunitsval + ' since ' + refdateS
    1075 
    10761075
    10771076### ## #
     
    10911090            if not ncobj.variables.has_key(depv) and not                             \
    10921091              gen.searchInlist(NONcheckingvars, depv) and                            \
    1093               not gen.searchInlist(methods, depv):
     1092              not gen.searchInlist(methods, depv) and not depvars[0] == 'deaccum'    \
     1093              and not depvars[0] == 'accum':
    10941094                print errormsg
    10951095                print '  ' + main + ": file '" + opts.ncfile +                       \
Note: See TracChangeset for help on using the changeset viewer.