Changeset 1094 for trunk/UTIL/PYTHON
- Timestamp:
- Nov 7, 2013, 4:59:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/planetoplot_v2/ppclass.py
r1092 r1094 1788 1788 # (happens with some netCDF files where -- appears in arrays) 1789 1789 # (but isn't it that netcdf4 returns masked arrays?) 1790 w = np.where(np.isfinite(self.field) != True) 1791 self.field[w] = np.NaN 1790 # -- we do not perform this correction for computations for which -- are handled correctly 1791 if "comp" not in self.method_t+self.method_z+self.method_y+self.method_x: 1792 w = np.where(np.isfinite(self.field) != True) 1793 self.field[w] = np.NaN 1792 1794 ## catch netCDF missing values (TBD: add a test try) 1793 1795 #miss = self.f.variables[self.var].missing_value
Note: See TracChangeset
for help on using the changeset viewer.