Skip to content
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

pyramid_reroject OOM'ing #125

Open
norlandrhagen opened this issue Apr 8, 2024 · 0 comments
Open

pyramid_reroject OOM'ing #125

norlandrhagen opened this issue Apr 8, 2024 · 0 comments

Comments

@norlandrhagen
Copy link
Contributor

When creating pyramids for the AGDC dataset, pyramid_reproject was leading to OOM errors. This was happening using both Distributed and vanilla dask.

Example for later debugging:

from ndpyramid import pyramid_reproject
import rioxarray
import xarray as xr 
import distributed


from dask.distributed import Client
client = Client(n_workers=4)
client 

store = 'https://ncsa.osn.xsede.org/Pangeo/pangeo-forge/pangeo-forge/AGDC-feedstock/AGCD.zarr'
ds = xr.open_dataset(store, engine='zarr', chunks={})

ds = ds.rio.write_crs('EPSG:4326')
pyramid = pyramid_reproject(ds,levels=4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant