raster_tools.Raster.set_crs#

Raster.set_crs(crs)[source]#

Set the CRS for the underlying data.

Parameters

crs (object) – The desired CRS. This can be anything accepted by rasterio.crs.CRS.from_user_input (i.e. 4326, “epsg:4326”, etc).

Returns

A new raster with the specified CRS.

Return type

Raster