Changeset 1014 for trunk/UTIL/PYTHON/planetoplot_v2
- Timestamp:
- Jul 29, 2013, 10:46:34 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/planetoplot_v2/ppclass.py
r1011 r1014 1709 1709 if self.method_y == "comp": 1710 1710 if self.verbose: print "**** OK. Computing over y axis." 1711 if "mean" in self.compute: self.field = ppcompute.mean(self.field,axis=2) 1711 if self.compute == "meanarea": self.field = ppcompute.sum(self.field,axis=2) 1712 elif "mean" in self.compute: self.field = ppcompute.mean(self.field,axis=2) 1712 1713 elif self.compute == "min": self.field = ppcompute.min(self.field,axis=2) 1713 1714 elif self.compute == "max": self.field = ppcompute.max(self.field,axis=2) 1714 elif self.compute == "meanarea": self.field = ppcompute.sum(self.field,axis=2)1715 1715 else: print "!! ERROR !! operation not supported." ; exit() 1716 1716 ny = 1 ; self.field = np.reshape(self.field,(nt,nz,ny,nx)) … … 1718 1718 if self.method_x == "comp": 1719 1719 if self.verbose: print "**** OK. Computing over x axis." 1720 if "mean" in self.compute: self.field = ppcompute.mean(self.field,axis=3) 1720 if self.compute == "meanarea": self.field = ppcompute.sum(self.field,axis=3) 1721 elif "mean" in self.compute: self.field = ppcompute.mean(self.field,axis=3) 1721 1722 elif self.compute == "min": self.field = ppcompute.min(self.field,axis=3) 1722 1723 elif self.compute == "max": self.field = ppcompute.max(self.field,axis=3) 1723 elif self.compute == "meanarea": self.field = ppcompute.sum(self.field,axis=3)1724 1724 else: print "!! ERROR !! operation not supported." ; exit() 1725 1725 nx = 1 ; self.field = np.reshape(self.field,(nt,nz,ny,nx))
Note: See TracChangeset
for help on using the changeset viewer.