Changeset 760 in lmdz_wrf
- Timestamp:
- May 6, 2016, 12:28:09 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r758 r760 1829 1829 self.dims = var.shape 1830 1830 1831 if searchInlist(self.attributes, 'standard_name'):1831 if gen.searchInlist(self.attributes, 'standard_name'): 1832 1832 self.sname = var.getncattr('standard_name') 1833 1833 else: … … 1835 1835 self.sname = None 1836 1836 1837 if searchInlist(self.attributes, 'long_name'):1837 if gen.searchInlist(self.attributes, 'long_name'): 1838 1838 self.lname = var.getncattr('long_name') 1839 1839 else: … … 1841 1841 self.lname = None 1842 1842 1843 if searchInlist(self.attributes, 'coordinates'):1843 if gen.searchInlist(self.attributes, 'coordinates'): 1844 1844 self.coor = var.getncattr('coordinates') 1845 1845 else: … … 1847 1847 self.coor = None 1848 1848 1849 if searchInlist(self.attributes, 'units'):1849 if gen.searchInlist(self.attributes, 'units'): 1850 1850 self.units = var.getncattr('units') 1851 1851 else: … … 1853 1853 self.units = None 1854 1854 1855 if searchInlist(self.attributes, '_FillValue'):1855 if gen.searchInlist(self.attributes, '_FillValue'): 1856 1856 self.FillValue = var.getncattr('_FillValue') 1857 1857 else: … … 12474 12474 ncs = 'i' 12475 12475 elif vartype == type(np.int32(1)): 12476 ncs = 'i4' 12477 elif vartype == type(np.int64(1)): 12476 12478 ncs = 'i8' 12477 12479 elif vartype == type(np.float(1.)):
Note: See TracChangeset
for help on using the changeset viewer.