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='139706811908504'>, remove=False)

Creates GDAL.DataSet object.

Parameters:
  • drv (string) – GDAL driver string
  • name (string) – path to filename
  • cols (int) – # of columns
  • rows (int) – # of rows
  • bands (int) – # of raster bands
  • gdal_type (raster data type) – eg. gdal.GDT_Float32
  • remove (bool) – if True, existing gdal.Dataset will be removed before creation
Returns:

out (gdal.Dataset) – object