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

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(self, class_type, name) | source code
_swig_repr(self) | source code
GetArrayFilename(*args) GetArrayFilename(PyArrayObject psArray) -> retStringAndCPLFree | source code
BandRasterIONumPy(*args, **kwargs) BandRasterIONumPy(Band band, int bWrite, int xoff, int yoff, int xsize, ... | source code
OpenArray(array, prototype_ds=None) | source code
flip_code(code) | source code
NumericTypeCodeToGDALTypeCode(numeric_type) | source code
GDALTypeCodeToNumericTypeCode(gdal_code) | source code
LoadFile(filename, xoff=0, yoff=0, xsize=None, ysize=None) | source code
SaveArray(src_array, filename, format="GTiff", prototype=None) | source code
DatasetReadAsArray(ds, xoff=0, yoff=0, xsize=None, ysize=None, buf_obj=None) | source code
BandReadAsArray(band, xoff=0, yoff=0, win_xsize=None, win_ysize=None, buf_xsize=None, buf_ysize=None, buf_obj=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) Pure python implementation of writing a chunk of a GDAL file from 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`
| codes = `{gdalconst.GDT_Byte: numpy.uint8, gdalconst.GDT_UInt16`...``

Function Details | [hide private]

### BandRasterIONumPy(*args, **kwargs) | source code
    BandRasterIONumPy(Band band, int bWrite, int xoff, int yoff, int xsize,
        int ysize, PyArrayObject psArray, int buf_type) -> CPLErr

### BandReadAsArray(band, xoff=0, yoff=0, win_xsize=None, win_ysize=None, buf_xsize=None, buf_ysize=None, buf_obj=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) | source code
Pure python implementation of writing a chunk of a GDAL file from a numpy array. Used by the gdal.Band.WriteArray method.

### 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}