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

Issue 1 #1

Open
vincentsarago opened this issue Mar 24, 2022 · 1 comment
Open

Issue 1 #1

vincentsarago opened this issue Mar 24, 2022 · 1 comment

Comments

@vincentsarago
Copy link
Member

👋 rio-tiler-fs is an experimental plugin to create a custom COGReader that uses fsspec to open dataset instead of relying on GDAL.

This is experimental because file-like VSI plugin is not yet publish in a stable rasterio version

How To

Within the custom COGReader we are opening the input file (url) using fsspec and then passing it to rasterio.

# rio_tiler.io.cogeo.COGReader
with rasterio.open(src_path) as src:
    data = src.read()

# rio_tiler_fs.reader.COGReader
with fsspec.open(src_path) as fsobj:
    with rasterio.open(fsobj) as src:
        data = src.read()

Why

We have seen numerous reports of issue when using S3 files (mostly when using threads) where for unknown reason (to me) GDAL/Rasterio will loose the ability to read a file.

A second reason will be to enable custom cache 🤷
ref: gjoseph92/stackstac#90

@RichardScottOZ
Copy link

Yes - had this happen this week - using a dask Fargate cluster and occasionally otherwise something that reads fine then stops - and possibly when reading chunks of same file it craps out.

e.g. use a 1 machine cluster, ok for sometime - use 100 reading lots of parts, instant failure.

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

2 participants