xarray.Dataset.traj.set_crs#

Dataset.traj.set_crs(crs)#

Returns a new dataset with the CF-supported grid-mapping / projection set to crs.

Parameters:

crs (pyproj.crs.CRS)

Returns:

Dataset – Updated dataset

Warning

This does not transform the coordinates, make sure that crs is matching the data in the dataset.