mapshader.io.load_raster#
- mapshader.io.load_raster(file_path, transforms, force_recreate_overviews, storage_options, geometry, region_of_interest, xmin=None, ymin=None, xmax=None, ymax=None, chunks=None, layername='data')[source]#
Load raster data.
- Parameters:
file_path (str) – Relative path to the file.
xmin (float) – X-axis minimum range.
ymin (float) – Y-axis minimum range.
xmax (float) – X-axis maximum range.
ymax (float) – Y-axis maximum range.
layername (str, default=data) – Data layer name.
- Returns:
arr – The loaded data.
- Return type:
xarray.DataArray