Package osgeo :: Module gdal :: Class MDArray
[hide private]
[frames] | no frames]

Class MDArray

source code


Proxy of C++ GDALMDArrayHS class.

Instance Methods [hide private]
 
__init__(self, *args, **kwargs) source code
 
__repr__(self) source code
 
GetName(self, *args)
GetName(MDArray self) -> char const *
source code
 
GetFullName(self, *args)
GetFullName(MDArray self) -> char const *
source code
 
GetTotalElementsCount(self, *args)
GetTotalElementsCount(MDArray self) -> unsigned long long
source code
 
GetDimensionCount(self, *args)
GetDimensionCount(MDArray self) -> size_t
source code
 
GetDimensions(self, *args)
GetDimensions(MDArray self)
source code
 
GetBlockSize(self, *args)
GetBlockSize(MDArray self)
source code
 
GetProcessingChunkSize(self, *args)
GetProcessingChunkSize(MDArray self, size_t nMaxChunkMemory)
source code
 
GetDataType(self, *args)
GetDataType(MDArray self) -> ExtendedDataType
source code
 
GetStructuralInfo(self, *args)
GetStructuralInfo(MDArray self) -> char **
source code
 
WriteStringArray(self, *args)
WriteStringArray(MDArray self, int nDims1, int nDims2, int nDims3, ExtendedDataType buffer_datatype, char ** options) -> CPLErr
source code
 
GetAttribute(self, *args)
GetAttribute(MDArray self, char const * name) -> Attribute
source code
 
GetAttributes(self, *args)
GetAttributes(MDArray self, char ** options=None)
source code
 
CreateAttribute(self, *args)
CreateAttribute(MDArray self, char const * name, int nDimensions, ExtendedDataType data_type, char ** options=None) -> Attribute
source code
 
GetNoDataValueAsRaw(self, *args)
GetNoDataValueAsRaw(MDArray self) -> CPLErr
source code
 
GetNoDataValueAsDouble(self, *args)
GetNoDataValueAsDouble(MDArray self)
source code
 
SetNoDataValueDouble(self, *args)
SetNoDataValueDouble(MDArray self, double d) -> CPLErr
source code
 
SetNoDataValueRaw(self, *args)
SetNoDataValueRaw(MDArray self, GIntBig nLen) -> CPLErr
source code
 
DeleteNoDataValue(self, *args)
DeleteNoDataValue(MDArray self) -> CPLErr
source code
 
GetOffset(self, *args)
GetOffset(MDArray self)
source code
 
GetScale(self, *args)
GetScale(MDArray self)
source code
 
SetOffset(self, *args)
SetOffset(MDArray self, double val) -> CPLErr
source code
 
SetScale(self, *args)
SetScale(MDArray self, double val) -> CPLErr
source code
 
SetUnit(self, *args)
SetUnit(MDArray self, char const * unit) -> CPLErr
source code
 
GetUnit(self, *args)
GetUnit(MDArray self) -> char const *
source code
 
SetSpatialRef(self, *args)
SetSpatialRef(MDArray self, SpatialReference srs) -> OGRErr
source code
 
GetSpatialRef(self, *args)
GetSpatialRef(MDArray self) -> SpatialReference
source code
 
GetView(self, *args)
GetView(MDArray self, char const * viewExpr) -> MDArray
source code
 
Transpose(self, *args)
Transpose(MDArray self, int nList) -> MDArray
source code
 
GetUnscaled(self, *args)
GetUnscaled(MDArray self) -> MDArray
source code
 
GetMask(self, *args)
GetMask(MDArray self, char ** options=None) -> MDArray
source code
 
AsClassicDataset(self, *args)
AsClassicDataset(MDArray self, size_t iXDim, size_t iYDim) -> Dataset
source code
 
GetStatistics(self, *args, **kwargs)
GetStatistics(MDArray self, Dataset ds=None, bool approx_ok=False, bool force=True, GDALProgressFunc callback=0, void * callback_data=None) -> Statistics
source code
 
ComputeStatistics(self, *args, **kwargs)
ComputeStatistics(MDArray self, Dataset ds=None, bool approx_ok=False, GDALProgressFunc callback=0, void * callback_data=None) -> Statistics
source code
 
Read(self, array_start_idx=None, count=None, array_step=None, buffer_stride=None, buffer_datatype=None) source code
 
ReadAsArray(self, array_start_idx=None, count=None, array_step=None, buffer_datatype=None, buf_obj=None) source code
 
AdviseRead(self, array_start_idx=None, count=None) source code
 
__getitem__(self, item) source code
 
Write(self, buffer, array_start_idx=None, count=None, array_step=None, buffer_stride=None, buffer_datatype=None) source code
 
WriteArray(self, array, array_start_idx=None, array_step=None) source code
 
ReadAsMaskedArray(self, array_start_idx=None, count=None, array_step=None)
Return a numpy masked array of ReadAsArray() with GetMask()
source code
 
GetShape(self)
Return the shape of the array
source code
Class Variables [hide private]
  __swig_setmethods__ = {}
  __setattr__ = lambda self, name, value:
  __swig_getmethods__ = {}
  __getattr__ = lambda self, name:
  __swig_destroy__ = _gdal.delete_MDArray
  __del__ = lambda self:
  shape = property(fget= GetShape, doc= 'Returns the shape of th...
Class Variable Details [hide private]

shape

Value:
property(fget= GetShape, doc= 'Returns the shape of the array.')