Changeset 1862 in lmdz_wrf for trunk


Ignore:
Timestamp:
Mar 26, 2018, 4:04:10 PM (7 years ago)
Author:
lfita
Message:

Fixing some minor issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r1861 r1862  
    2337023370                tunits = urefvals
    2337123371                tcal = 'standard'
    23372             if gattr['calendar'] == '[unknown]':  gattr['calendar']= tcal
     23372            if gattr['calendar'] == '[unknown]': gattr['calendar']= tcal
    2337323373            CFdimvalues['units'] = tunits
     23374            CFdimvalues['calendar'] = tcal
    2337423375           
    2337523376            Sinit = gen.datetimeStr_conversion(str(CFitime), 'cfTime,'+tunits,       \
     
    2356823569            coorv = []
    2356923570            for cdn in CFvardims:
    23570                 if cdn == 'x': coorv.append('lon')
    23571                 elif cdn == 'y': coorv.append('lat')
     23571                if cdn == 'x' or cdn == 'rlon': coorv.append('lon')
     23572                elif cdn == 'y' or cdn == 'rlat': coorv.append('lat')
     23573                elif cdn == 'time': print ' '
    2357223574                else: coorv.append(cdn)
    2357323575            set_attribute(newvar, 'coordinates', ' '.join(coorv))
Note: See TracChangeset for help on using the changeset viewer.