wradlib.io.gdal.gdal_create_dataset

wradlib.io.gdal.gdal_create_dataset(drv, name, cols=0, rows=0, bands=0, gdal_type=<MagicMock name='mock.GDT_Unknown' id='140650682438656'>, remove=False)

Creates GDAL.DataSet object.

Parameters
  • drv (str) – GDAL driver string

  • name (str) – path to filename

  • cols (int) – # of columns

  • rows (int) – # of rows

  • bands (int) – # of raster bands

  • gdal_type (osgeo.ogr.DataType) – raster data type eg. gdal.GDT_Float32

  • remove (bool) – if True, existing gdal.Dataset will be removed before creation

Returns

out (osgeo.gdal.Dataset) – gdal.Dataset