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

intake-stac setup and error on aws search example #64

Closed
dogrdon-cu opened this issue Oct 8, 2020 · 5 comments
Closed

intake-stac setup and error on aws search example #64

dogrdon-cu opened this issue Oct 8, 2020 · 5 comments

Comments

@dogrdon-cu
Copy link

Hello,

I've noticed that there is an error running the aws search notebook example. Am getting, at cell 11 loading the item to Dask da = item.B04(chunks=dict(band=1, y=2048, x=2048)).to_dask() the following error:

ValueError: No plugins loaded for this entry: image/tiff; application=geotiff; profile=cloud-optimized A listing of installable plugins can be found at https://intake.readthedocs.io/en/latest/plugin-directory.html .

I've ensured that the module is installed and the example on the intake-stac readme does run fine.

Initially was running this inside of the pangeo notebook docker image and thought that might be the issue but am getting this same error just installing the dependencies in a clean virtual environment.

@scottyhq
Copy link
Collaborator

scottyhq commented Oct 8, 2020

Hi @dogrdon-cu, sorry about that, we're working on a fix over in #61 and hope to have a new release ASAP that fixes this.

In the meantime a workaround is to pin intake-xarray=0.3.1 in your environment

@dogrdon-cu
Copy link
Author

dogrdon-cu commented Oct 9, 2020

thanks @scottyhq that worked.

FWIW, I noted that I also had to remove and reinstall intake-stac with
pip uninstall intake-stac
pip install git+https://github.com/intake/intake-stac
in the pangeo-notebook image on dockerhub to get from the plugin error to the open_local error ref. in #61

@hssiddiqui
Copy link

@scottyhq Any workarounds for dealing with 'sentinel-s2-l1c' products? From the example above, intake-xarray=0.3.1 works for Sentinel 2 L2A dataset but not for Sentinel 2 L1C dataset returning the following error:

ValueError: No plugins loaded for this entry: image/jp2
A listing of installable plugins can be found at https://intake.readthedocs.io/en/latest/plugin-directory.html .

It seems there's a plugin issue due to the different format of the datasets from Sentinel 2 even though they're both raster files that should be handled by the existing plugins.

@scottyhq
Copy link
Collaborator

@hssiddiqui , thanks for pointing this out. this pending PR #61 sets the driver to 'rasterio' by default so even if the entry type is not recognized we'll attempt to read the data rather than going straight to the ValueError.

So for now you'll have to install from the branch in the PR above. Hopefully this week we'll get new versions released...

Note also the S2L1C imagery is in a requester-pays bucket, so you'll have to use the following syntax:

import rasterio
awsconfig = rasterio.session.AWSSession(requester_pays=True)
with rasterio.Env(session=awsconfig):
    da = item.B01.to_dask()

@scottyhq
Copy link
Collaborator

closed by #61

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

3 participants