make_gdal_dataset_size¶
-
bruty.world_raster_database.make_gdal_dataset_size(fname, bands, min_x, max_y, res_x, res_y, shape_x, shape_y, epsg, driver='GTiff')¶ Makes a north up gdal dataset with nodata = numpy.nan and LZW compression. Specifying a positive res_y will be input as a negative value into the gdal file, since tif/gdal likes max_y and a negative Y pixel size. i.e. the geotransform in gdal will be stored as [min_x, res_x, 0, max_y, 0, -res_y] :param fname: filename to create :param bands: list of names of bands in the file :param min_x: minimum X coordinate :param max_y: maximum Y coordinate (because tiff images like to specify max Y and a negative res_y) :param res_x: pixel size in x direction :param res_y: pixel size in y direction :param shape_x: number of pixels in X direction (columns) :param shape_y: number of pixels in Y directions (rows) :param epsg: epsg of the target coordinate system :param driver: gdal driver name of the output file (defaults to geotiff)
- Returns
- Return type
gdal.dataset