geodesic.boson.dataset.Dataset.create_raster_file#
- Dataset.create_raster_file(filename_prefix, file_format, bbox, shape=None, pixel_size=None, datetime=None, pixel_dtype=<class 'numpy.float32'>, bbox_crs='EPSG:4326', output_crs='EPSG:3857', resampling='nearest', no_data=None, asset_bands=[], filter={}, image_ids=[], create_options={}, overwrite=False)[source]#
Create a new raster file from the dataset.
- Parameters:
filename_prefix (str) – the prefix of the filename to create
file_format (str) – the format of the file to create
bbox (list) – the bounding box of the resulting image
shape (list | None) – the shape (rows, columns) of the data to return
pixel_size (list | None) – the pixel size (dx, dy) of the data
datetime (List | Tuple | None) – a datetime range to filter the raster data
pixel_dtype (dtype | str) – the data type of the pixels in the result
bbox_crs (str) – the coordinate reference system of the bounding box
output_crs (str) – the coordinate reference system of the output data
resampling (str) – the resampling method to use, if applicable
no_data (Any | None) – the no data value to use. These values will be ignored and possibly made transparent depending on the resulting file type.
asset_bands (List[AssetBands] | AssetBands) – the list of asset/bands to use in the output
filter (dict) – a CQL2 filter to apply to the data
create_options (dict) – options to pass to the file creation process
overwrite (bool) – whether to overwrite the file if it already exists
- Returns:
A new File object
- Return type: