cfgrib icon indicating copy to clipboard operation
cfgrib copied to clipboard

Open from s3

Open peterdudfield opened this issue 2 years ago • 4 comments

I would like to open a grib file directly from s3.

fsspec is quite handy at opening files from a variety of different file systems

I'm happy to have a go at this myself, just wanted to flag this incase anyone has done this, or its already done

peterdudfield avatar Apr 19 '22 10:04 peterdudfield

I see it has come up here - https://github.com/ecmwf/cfgrib/issues/198

peterdudfield avatar Apr 19 '22 14:04 peterdudfield

I'm actually trying to do the same. I'd like to extract a variable from a (large) grib file on a s3 bucket without downloading the file.

Did you find a solution?

theoCREALP avatar May 05 '22 09:05 theoCREALP

Can this be closed?

The linked issue seems to solve this.

There is also https://stackoverflow.com/questions/66229140/xarray-read-remote-grib-file-on-s3-using-cfgrib

raybellwaves avatar May 27 '22 17:05 raybellwaves

It seems to me the link provided above does download the file locally in a temporary folder before accessing it. So I'd say it isn't a solution to this problem.

A potential solution may be using datacube : https://datacube-core.readthedocs.io/en/stable/ops/indexing.html#indexing-data-on-amazon-aws-s3

theoCREALP avatar May 30 '22 07:05 theoCREALP