Skip to content

reproject and clip netcdf file #454

Answered by snowman2
dhetting asked this question in Q&A
Discussion options

You must be logged in to vote

The issue is likely to do with your lon/lat variables as they are 2D. I would select the variable(s) you want to use:

ds = rioxarray.open_rasterio('daymet_v4_daily_na_prcp_2020.nc', variable="prcp")

Also, if grid_mapping is already in your attrs/encoding then you don't need to write the CRS.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@snowman2
Comment options

@dhetting
Comment options

Answer selected by dhetting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants