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.crs and obj.odc.crs read it.

The spatial dims are set from their names first (x/y or longitude/latitude), and the dims are renamed to the contract’s convention for the CRS kind.