Changeset 1094 for trunk/UTIL/PYTHON


Ignore:
Timestamp:
Nov 7, 2013, 4:59:11 PM (11 years ago)
Author:
aslmd
Message:

PLANETOPLOT. broke something with means. fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/planetoplot_v2/ppclass.py

    r1092 r1094  
    17881788        # (happens with some netCDF files where -- appears in arrays)
    17891789        # (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
    17921794        ## catch netCDF missing values (TBD: add a test try)
    17931795        #miss = self.f.variables[self.var].missing_value
Note: See TracChangeset for help on using the changeset viewer.