Changeset 931 for trunk/UTIL


Ignore:
Timestamp:
Apr 15, 2013, 4:47:46 PM (12 years ago)
Author:
aslmd
Message:

UTIL PYTHON. planetoplot_v2. no squeeze in self.allfield, this is causing problems with differing time axis lengths. this feature will be improved in the future. also forgot to report in previous commit the addition of exapi.py to easily interpolate mesoscale fields using api_wrapper.py

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  
    2929# - field dimensions
    3030# -----------------------------
    31 # ALL DIM == 1 HAVE BEEN SQUEEZED
    32 # -----------------------------
    3331
    34 # for instance here, shape of allfield is (3,2)
    35 # because the user requested 3 files, 2 vars, 0D values
    3632
    37 tsurf = test.allfield[:,0]
    38 asr = test.allfield[:,1]
     33for 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]
    3936
    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  
    585585              obj.computations()
    586586              self.allfield[i][j][t][z][y][x] = obj.field
    587         # get rid of useless dimensions in allfield
    588         self.allfield = np.squeeze(self.allfield)
    589587        # change status
    590588        self.status = "retrieved"
Note: See TracChangeset for help on using the changeset viewer.