Changeset 931 for trunk/UTIL
- Timestamp:
- Apr 15, 2013, 4:47:46 PM (12 years ago)
- Location:
- trunk/UTIL/PYTHON/planetoplot_v2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/planetoplot_v2/examples/easy_get_field.py
r930 r931 29 29 # - field dimensions 30 30 # ----------------------------- 31 # ALL DIM == 1 HAVE BEEN SQUEEZED32 # -----------------------------33 31 34 # for instance here, shape of allfield is (3,2)35 # because the user requested 3 files, 2 vars, 0D values36 32 37 tsurf = test.allfield[:,0] 38 asr = test.allfield[:,1] 33 for ii in range(test.nfin): 34 print "tsurf",test.allfield[ii][0][0][0][0][0] 35 print "asr",test.allfield[ii][1][0][0][0][0] 39 36 40 mpl.plot(tsurf,asr)41 mpl.show()37 #mpl.plot(tsurf,asr) 38 #mpl.show() -
trunk/UTIL/PYTHON/planetoplot_v2/ppclass.py
r930 r931 585 585 obj.computations() 586 586 self.allfield[i][j][t][z][y][x] = obj.field 587 # get rid of useless dimensions in allfield588 self.allfield = np.squeeze(self.allfield)589 587 # change status 590 588 self.status = "retrieved"
Note: See TracChangeset
for help on using the changeset viewer.