-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix buffer CRS #440
Fix buffer CRS #440
Conversation
@RondeauG Ton fix est le bon. Le changement se cache dans
Exemple: ds = xr.open_zarr('xscen/docs/notebooks/_data/CMIP6_ScenarioMIP_NCC_NorESM2-MM_ssp245_r1i1p1f1_example-region.finer-grid.biasadjusted.day.zarr')
dsc = ds.convert_calendar('360_day', align_on='date',missing=0).chunk(time=-1)
dsc.convert_calendar('standard', missing=-9999, align_on='year').chunks
# dask 2024.08.0 : Frozen({'time': (25550, 17), 'lon': (4,), 'lat': (5,)})
# dask avant : Frozen({'time': (25567,), 'lon': (4,), 'lat': (5,)}) C'est dû au premier changement du changelog de dask : https://docs.dask.org/en/stable/changelog.html#highlights Exemple bas niveau: import dask.array as dsk
a = dsk.array([0, 1, 2, 3]) # chunks = (4,)
a[[0, 0, 0, 0, 0, 0, 1]] # donc plus d'indices dans le indexing que d'éléments
# Dask 2024.08.0 : chunks = (4, 3)
# Dask avantt : chunks = (7,) |
Merci pour ce travail de détective ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This receives the @aulemahal approval as well
Pull Request Checklist:
number
) and pull request (:pull:number
) has been added.What kind of change does this PR introduce?
_subset_shape
needs to be in the same units as the shapefile, so it's simpler to always project the shapefile to WGS84 before the call toclisops
, when usingtile_buffer
.ensure_time
to accurately catch missing timesteps.Does this PR introduce a breaking change?
Other information: