windkit.spatial.add_crs
- windkit.spatial.add_crs(obj, crs)[source]
Adds a Coordinate Reference System to a WindKit object.
This helper function either adds or updates a crs coordinate on an existing object.
- Parameters:
obj (geopandas.GeoDataFrame, geopandas.GeoSeries,xarray.DataArray,xarray.Dataset or BBox) – Object to set CRS on.
crs (int, dict, str or CRS) – Value to create CRS object or an existing CRS object
- Returns:
Returns the same object with the updated CRS.
- Return type:
same as obj