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) x.__init__(...) initializes x; see help(type(x)) for signature | source code
__repr__(self) repr(x) | 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
GetOffsetStorageType(self, *args) GetOffsetStorageType(MDArray self) -> GDALDataType | source code
GetScale(self, *args) GetScale(MDArray self) | source code
GetScaleStorageType(self, *args) GetScaleStorageType(MDArray self) -> GDALDataType | source code
SetOffset(self, *args, **kwargs) SetOffset(MDArray self, double val, GDALDataType storageType=GDT_Unknown) -> CPLErr | source code
SetScale(self, *args, **kwargs) SetScale(MDArray self, double val, GDALDataType storageType=GDT_Unknown) -> 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
Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Class Variables | [hide private]
| thisown = `property(lambda x: x.this.own(), lambda x, v: x.this`...``
| __swig_destroy__ = `_gdal.delete_MDArray`
| shape = `property(fget= GetShape, doc= 'Returns the shape of th`...``

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, *args, **kwargs) (Constructor) | source code
x.__init__(...) initializes x; see help(type(x)) for signature Overrides: object.__init__ (inherited documentation)

### __repr__(self) (Representation operator) | source code
repr(x) Overrides: object.__repr__ (inherited documentation)

Class Variable Details | [hide private]

  ### thisown Value:
      property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc= "The
       membership flag")

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