2.5 MtkDataPlane

class MtkDataPlane
Contains data and map information.

>>> r = MtkRegion(37, 50, 50)
>>> d = MtkFile('../Mtk_testdata/in/MISR_AM1_GRP_ELLIPSOID_GM_P037_O029058_AA_F03_0024.hdf').grid('BlueBand').field('Blue Radiance').read(r)

data( )
Returns a NumPy of the data in the plane.

>>> d.data()
array([[ 0.,  0.,  0., ...,  0.,  0.,  0.],
       [ 0.,  0.,  0., ...,  0.,  0.,  0.],
       [ 0.,  0.,  0., ...,  0.,  0.,  0.],
       ..., 
       [ 0.,  0.,  0., ...,  0.,  0.,  0.],
       [ 0.,  0.,  0., ...,  0.,  0.,  0.],
       [ 0.,  0.,  0., ...,  0.,  0.,  0.]], dtype=float32)

mapinfo( )
Returns a MtkMapInfo for the data in the plane.

>>> d.mapinfo()
<MisrToolkit.MtkMapInfo object at 0x189b200>