easysnowdata.processing.contract.write_crs#
- easysnowdata.processing.contract.write_crs(obj: Dataset | DataArray, crs: Any) Dataset | DataArray[source]#
Write crs so that both
obj.rio.crsandobj.odc.crsread it.The spatial dims are set from their names first (
x/yorlongitude/latitude), and the dims are renamed to the contract’s convention for the CRS kind.