- Timestamp:
- Mar 26, 2018, 4:04:10 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r1861 r1862 23370 23370 tunits = urefvals 23371 23371 tcal = 'standard' 23372 if gattr['calendar'] == '[unknown]': 23372 if gattr['calendar'] == '[unknown]': gattr['calendar']= tcal 23373 23373 CFdimvalues['units'] = tunits 23374 CFdimvalues['calendar'] = tcal 23374 23375 23375 23376 Sinit = gen.datetimeStr_conversion(str(CFitime), 'cfTime,'+tunits, \ … … 23568 23569 coorv = [] 23569 23570 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 ' ' 23572 23574 else: coorv.append(cdn) 23573 23575 set_attribute(newvar, 'coordinates', ' '.join(coorv))
Note: See TracChangeset
for help on using the changeset viewer.