merge two datasets gives unexpected dimensions #6158
-
I have two datasets, one is I want to combine the two datasets using the The |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
just a quick guess: maybe your coordinates are not exactly equal? In other words, I think this is a floating-point issue. To check that, try If you are sure that the coordinates should be exactly equal, you can override the coordinates of one dataset, e.g.: ds_tmean = ds_tmean.assign_coords(longitude=ds_prcp.longitude, latitude=ds_prcp.latitude) |
Beta Was this translation helpful? Give feedback.
just a quick guess: maybe your coordinates are not exactly equal? In other words, I think this is a floating-point issue.
To check that, try
ds_prcp.longitude.equals(ds_tmean.longitude)
, and you can also try comparing the output ofds_prcp.longitude.item(0)
withds_tmean.longitude.item(0)
.If you are sure that the coordinates should be exactly equal, you can override the coordinates of one dataset, e.g.: