Package osgeo :: Module gdal_array |
[hide private]
[frames] | no frames]

# Module gdal_array

source code

Classes | [hide private]
| _swig_property property(fget=None, fset=None, fdel=None, doc=None) -> property attribute
| _object
| VirtualMem Proxy of C++ CPLVirtualMemShadow class.

Functions | [hide private]
_swig_setattr_nondynamic(self, class_type, name, value, static=1) | source code
_swig_setattr(self, class_type, name, value) | source code
_swig_getattr_nondynamic(self, class_type, name, static=1) | source code
_swig_getattr(self, class_type, name) | source code
_swig_repr(self) | source code
_StoreLastException() | source code
TermProgress_nocb(dfProgress, pszMessage=None, pData=None) TermProgress_nocb(double dfProgress, char const * pszMessage=None, void * pData=None) -> int | source code
OpenNumPyArray(psArray, binterleave) OpenNumPyArray(PyArrayObject * psArray, bool binterleave) -> Dataset | source code
GetArrayFilename(psArray) GetArrayFilename(PyArrayObject * psArray) -> retStringAndCPLFree * | source code
BandRasterIONumPy(band, bWrite, xoff, yoff, xsize, ysize, psArray, buf_type, resample_alg, callback=0, callback_data=None) BandRasterIONumPy(Band band, int bWrite, double xoff, double yoff, double xsize, double ysize, PyArrayObject * psArray, int buf_type, GDALRIOResampleAlg resample_alg, GDALProgressFunc callback=0, void * callback_data=None) -> CPLErr | source code
DatasetIONumPy(ds, bWrite, xoff, yoff, xsize, ysize, psArray, buf_type, resample_alg, callback=0, callback_data=None, binterleave=True) DatasetIONumPy(Dataset ds, int bWrite, int xoff, int yoff, int xsize, int ysize, PyArrayObject * psArray, int buf_type, GDALRIOResampleAlg resample_alg, GDALProgressFunc callback=0, void * callback_data=None, bool binterleave=True) -> CPLErr | source code
VirtualMemGetArray(virtualmem) VirtualMemGetArray(VirtualMem virtualmem) | source code
RATValuesIONumPyWrite(poRAT, nField, nStart, psArray) RATValuesIONumPyWrite(RasterAttributeTable poRAT, int nField, int nStart, PyArrayObject * psArray) -> CPLErr | source code
RATValuesIONumPyRead(poRAT, nField, nStart, nLength) RATValuesIONumPyRead(RasterAttributeTable poRAT, int nField, int nStart, int nLength) -> PyObject * | source code
OpenArray(array, prototype_ds=None, interleave='band') | source code
flip_code(code) | source code
NumericTypeCodeToGDALTypeCode(numeric_type) | source code
GDALTypeCodeToNumericTypeCode(gdal_code) | source code
_RaiseException() | source code
LoadFile(filename, xoff=0, yoff=0, xsize=None, ysize=None, buf_xsize=None, buf_ysize=None, buf_type=None, resample_alg=gdal.GRIORA_NearestNeighbour, callback=None, callback_data=None, interleave='band') | source code
SaveArray(src_array, filename, format="GTiff", prototype=None, interleave='band') | source code
DatasetReadAsArray(ds, xoff=0, yoff=0, win_xsize=None, win_ysize=None, buf_obj=None, buf_xsize=None, buf_ysize=None, buf_type=None, resample_alg=gdal.GRIORA_NearestNeighbour, callback=None, callback_data=None, interleave='band') Pure python implementation of reading a chunk of a GDAL file into a numpy array. | source code
BandReadAsArray(band, xoff=0, yoff=0, win_xsize=None, win_ysize=None, buf_xsize=None, buf_ysize=None, buf_type=None, buf_obj=None, resample_alg=gdal.GRIORA_NearestNeighbour, callback=None, callback_data=None) Pure python implementation of reading a chunk of a GDAL file into a numpy array. | source code
BandWriteArray(band, array, xoff=0, yoff=0, resample_alg=gdal.GRIORA_NearestNeighbour, callback=None, callback_data=None) Pure python implementation of writing a chunk of a GDAL file from a numpy array. | source code
RATWriteArray(rat, array, field, start=0) Pure Python implementation of writing a chunk of the RAT from a numpy array. | source code
RATReadArray(rat, field, start=0, length=None) Pure Python implementation of reading a chunk of the RAT into a numpy array. | source code
CopyDatasetInfo(src, dst, xoff=0, yoff=0) Copy georeferencing information and metadata from one dataset to another. | source code

Variables | [hide private]
| _newclass = `0`
| VirtualMem_swigregister = `_gdal_array.VirtualMem_swigregister`
| TermProgress = `_gdal_array.TermProgress`
| codes = `{gdalconst.GDT_Byte: numpy.uint8, gdalconst.GDT_UInt16`...``

Function Details | [hide private]

### DatasetReadAsArray(ds, xoff=0, yoff=0, win_xsize=None, win_ysize=None, buf_obj=None, buf_xsize=None, buf_ysize=None, buf_type=None, resample_alg=gdal.GRIORA_NearestNeighbour, callback=None, callback_data=None, interleave='band') | source code
Pure python implementation of reading a chunk of a GDAL file into a numpy array. Used by the gdal.Dataset.ReadAsArray method.

### BandReadAsArray(band, xoff=0, yoff=0, win_xsize=None, win_ysize=None, buf_xsize=None, buf_ysize=None, buf_type=None, buf_obj=None, resample_alg=gdal.GRIORA_NearestNeighbour, callback=None, callback_data=None) | source code
Pure python implementation of reading a chunk of a GDAL file into a numpy array. Used by the gdal.Band.ReadAsArray method.

### BandWriteArray(band, array, xoff=0, yoff=0, resample_alg=gdal.GRIORA_NearestNeighbour, callback=None, callback_data=None) | source code
Pure python implementation of writing a chunk of a GDAL file from a numpy array. Used by the gdal.Band.WriteArray method.

### RATWriteArray(rat, array, field, start=0) | source code
Pure Python implementation of writing a chunk of the RAT from a numpy array. Type of array is coerced to one of the types (int, double, string) supported. Called from RasterAttributeTable.WriteArray

### RATReadArray(rat, field, start=0, length=None) | source code
Pure Python implementation of reading a chunk of the RAT into a numpy array. Called from RasterAttributeTable.ReadAsArray

### CopyDatasetInfo(src, dst, xoff=0, yoff=0) | source code
    Copy georeferencing information and metadata from one dataset to another.
    src: input dataset
    dst: output dataset - It can be a ROI -
    xoff, yoff:  dst's offset with respect to src in pixel/line.

    Notes: Destination dataset must have update access.  Certain formats
           do not support creation of geotransforms and/or gcps.

Variables Details | [hide private]

  ### codes Value:
      {gdalconst.GDT_Byte: numpy.uint8, gdalconst.GDT_UInt16: numpy.uint16,
      gdalconst.GDT_Int16: numpy.int16, gdalconst.GDT_UInt32: numpy.uint32,
      gdalconst.GDT_Int32: numpy.int32, gdalconst.GDT_Float32: numpy.float32
      , gdalconst.GDT_Float64: numpy.float64, gdalconst.GDT_CInt16: numpy.co
      mplex64, gdalconst.GDT_CInt32: numpy.complex64, gdalconst.GDT_CFloat32
      : numpy.complex64, gdalconst.GDT_CFloat64: numpy.complex128}