Changeset 535 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Jun 29, 2015, 5:59:07 PM (9 years ago)
Author:
lfita
Message:

Fixing typo on the if

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r534 r535  
    30243024# Checking calendar!
    30253025##
    3026     360daycal = ['earth_360d', '360d', '360days']
     3026    y360 = False
     3027    daycal360 = ['earth_360d', '360d', '360days']
    30273028    if searchInlist(attvar, 'calendar'):
    30283029        calendar = times.getncattr('calendar')
    3029         if searchInlist(360daycal,calendar):
     3030        if searchInlist(daycal360,calendar):
    30303031            print warnmsg
    30313032            print '  ' + fname + ': calendar of 12 months of 30 days !!'
    3032             360daycal = True
     3033            y360 = True
    30333034
    30343035## Not in timedelta
     
    30413042#            realdate = refdate + dt.timedelta(months=float(times[it]))
    30423043#            realdates[it] = int(realdate.year)
    3043     if 360daycal:
     3044    if y360:
    30443045        if tunits == 'weeks':
    30453046            for it in range(dimt):
Note: See TracChangeset for help on using the changeset viewer.