Deltares / xugrid

Xarray and unstructured grids
https://deltares.github.io/xugrid/
MIT License
58 stars 8 forks source link

Simplify `set_crs` and `to_crs` #189

Open veenstrajelmer opened 8 months ago

veenstrajelmer commented 8 months ago

Current code in: https://github.com/Deltares/xugrid/blob/699452bad2b1cd6bfaae3f6827615aceda60e215/xugrid/ugrid/ugridbase.py#L596-L627

However, pyproj.CRS.from_user_input also correctly parses epsg integer values, so it is not necessary to do this separately.