Does rioxarray.open_rasterio work better with threads or workers? #404
Replies: 3 comments 2 replies
-
Both of them work by opening up a new file handle for each thread/process in both reading and writing, so they should be thread/process safe. The GIL can only be released the GDAL python wraper rasterio where applicable, |
Beta Was this translation helpful? Give feedback.
-
|
Reading https://corteva.github.io/rioxarray/stable/examples/dask_read_write.html, |
Beta Was this translation helpful? Give feedback.
-
|
When I use multiple workers: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
From:
https://stackoverflow.com/questions/49406987/how-do-we-choose-nthreads-and-nprocs-per-worker-in-dask-distributed
Basically, does
rioxarray.open_rasteriorelease the GIL through GDAL?What about
to_raster()Beta Was this translation helpful? Give feedback.
All reactions