vsi.io.image package

Module contents

class vsi.io.image.GdalReader(*args, **kwargs)[source]

Bases: Reader

bands(segment=0)[source]
load(mode=osgeo.gdal.GA_ReadOnly, *args, **kwargs)[source]
raster(segment=0, *args, **kwargs)[source]
raster_roi(segment=0, *args, **kwargs)[source]

This isn’t written yet

shape(segment=0)[source]
class vsi.io.image.GdalWriter(array, dtype=None)[source]

Bases: Writer

gdal_array_types = {}
save(filename, driver=None, *args, **kwargs)[source]
class vsi.io.image.Reader(filename, autoload=False, *args, **kwargs)[source]

Bases: object

extensions = None
class vsi.io.image.Register[source]

Bases: object

register(reader)[source]
class vsi.io.image.Writer(array, dtype=None)[source]

Bases: object

vsi.io.image.imread(filename, *args, **kwargs)[source]
vsi.io.image.imwrite(img, filename, *args, **kwargs)[source]

write the numpy array as an image

vsi.io.image.imwrite_byte(img, vmin, vmax, filename)[source]

write the 2-d numpy array as an image, scale to byte range first

vsi.io.image.imwrite_geotiff(img, filename, transform, wkt_projection=None)[source]