Changeset 1735 in lmdz_wrf for trunk/tools/nc_var_tools.py
- Timestamp:
- Dec 16, 2017, 7:09:57 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r1734 r1735 20783 20783 20784 20784 if gen.searchInlist(oxpos.ncattrs(), 'units'): 20785 xunits = oxpos.get attribute('units')20785 xunits = oxpos.getncattr('units') 20786 20786 else: 20787 20787 xunits = '-' 20788 20788 if gen.searchInlist(oypos.ncattrs(), 'units'): 20789 yunits = oypos.get attribute('units')20789 yunits = oypos.getncattr('units') 20790 20790 else: 20791 20791 yunits = '-' … … 20879 20879 for atn in ovar.ncattrs(): 20880 20880 if atn != 'fill_Value': 20881 atv = ovar.get attribute(atn)20881 atv = ovar.getncattr(atn) 20882 20882 set_attribute(newvar, atn, atv) 20883 20883 onewnc.sync() … … 20885 20885 # Global attributes 20886 20886 for atn in onc.ncattrs(): 20887 atv = ovar.get attribute(atn)20887 atv = ovar.getncattr(atn) 20888 20888 set_attribute(onewnc, atn, atv) 20889 20889 onewnc.sync()
Note: See TracChangeset
for help on using the changeset viewer.