Changeset 391 for trunk/UTIL/PYTHON/myplot.py
- Timestamp:
- Nov 16, 2011, 3:11:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/myplot.py
r385 r391 128 128 from scipy import integrate 129 129 if yint: 130 output = integrate.trapz(input,x=vert,axis=ax) 130 if type(input).__name__=='MaskedArray': 131 input.set_fill_value([np.NaN]) 132 output = integrate.trapz(input.filled(),x=vert,axis=ax) 133 else: 134 output = integrate.trapz(input.filled(),x=vert,axis=ax) 131 135 else: 132 136 output = mean(input,axis=ax)
Note: See TracChangeset
for help on using the changeset viewer.