-
Notifications
You must be signed in to change notification settings - Fork 189
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
add rasterio to docker image? #249
Comments
I suggest we give it a try and if the image size is truly causing problems, we rethink the decision. |
I was experimenting with rasterio this morning on our http://pangeo.esipfed.org instance. I added it from the It works great single-threaded, but distributed I'm currently getting errors like:
which I'm trying to figure out. |
In [1]: import rasterio
In [2]: ds = rasterio.open('RGB.byte.tif')
In [3]: ds
Out[3]: <open RasterReader name='RGB.byte.tif' mode='r'>
In [4]: import pickle
In [5]: pickle.dumps(ds)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-5-a165c2473431> in <module>()
----> 1 pickle.dumps(ds)
TypeError: can't pickle rasterio._io.RasterReader objects I think we should probably open an issue in xarray to discuss possibly creating a picklable wrapper for rasterio objects, much like we do for netcdf objects. |
I've started working on a fix for the rasterio+distributed issue. pydata/xarray#2131 |
@rsignell-usgs - this should be working in xarray now. Any chance we can convince you to donate a working notebook as an example for Pangeo's website (http://pangeo-data.org/use_cases/index.html)? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it had not seen recent activity. The issue can always be reopened at a later date. |
I wanted to try an example using rasterio to read from some of the cloud-optimized GeoTiff archives on S3 (from pangeo.esipfed.org). Providing an example working with imagery could open up a huge new community to Pangeo.
However, we don't currently have rasterio in the pangeo docker images? Is this a dependency we should add? It is very heavy and requires changes to lots of the package versions. This would make the docker images much bigger and could potentially screw up other dependencies (e.g. netCDF) in an unforeseen way.
Thoughts?
The text was updated successfully, but these errors were encountered: