I have a netcdf that I want to slice by coordinates, but when I open it, the dataset appears not to have any coordinates associated. It has dimmensions and lat/lon variables, but any coordinates, so it looks like this:
<xarray.Dataset>
Dimensions: (y: 10980, x: 10980)
Dimensions without coordinates: y, x
Data variables: (12/20)
lon (y, x) float32 ...
lat (y, x) float32 ...
But I need something like this:
<xarray.Dataset>
Dimensions: (x: 7861, y: 7981)
Coordinates:
* x (x) float64 1.992e+05 1.992e+05 ... 4.35e+05 4.35e+05
* y (y) float64 4.586e+06 4.586e+06 ... 4.347e+06 4.347e+06
Data variables: (12/15)
lon (y, x) float32 ...
lat (y, x) float32 ...
I cannot upload the netcdf files as they're extremely heavy, sorry about that.
Any grasp of how it can possibly be done would be very appreciated!!