All You Need Is Zarr.: Parallel Access to Remote Hdf5, Tiff, Grib2 and Others.
Speaker: Martin Durant
Summary
We introduce ReferenceFileSystem, a virtual implementation for fsspec which views arbitrary byte chunks at specific keys, presenting chunks of HDF5, TIFF, grib2 and others at the appropriate paths conforming to zarr's model. Thus, you can use zarr to load data from potentially thousands of remote data files, selecting only what you need, and with parallelism and concurrency.
Description
fsspec's ReferenceFileSystem allows a file system like virtual view onto chunks of bytes stored in arbitrary locations elsewhere, e.g., cloud bucket storage. We can present each byte chunk as a particular path in the filesystem conforming to the zarr hierarchy model, such that the original set of chunks, potentially across many files, appears as a single zarr dataset. This brings the following advantages:
only zarr (plus the relevant codecs) is required to read the data, but the original data could be locked in HDF5, TIFF or grib2 files (and more to come)
the metadata is extracted once, so future opening of the dataset does not need to scan through the target files to find metadata, and so the process is much faster
you get a single logical view over potentially thousands of files, but due to zarr's access model, you only load the data you need
loading can happen chunk-wise and in parallel
The details of how to make such reference files is described at https://github.com/fsspec/kerchunk , and the latest result for some 80TB/370k files of water flow modelling can be seen at https://nbviewer.jupyter.org/gist/rsignell-usgs/02da7d9257b4b26d84d053be1af2ceeb . Note that this is using xarray to process the data, but only zarr is needed to load it.
Martin Durant's Bio
Open Source contributor and community advocate. Former astrophysicist, data scientist and medical imaging researcher.
Has been involved in - training for python programming courses (intensive on-site and remote, numerical python, visualisation and machine learning) and course development, - consultant work for external client, - proprietary software development (anaconda-cluster, anaconda-enterprise-notebooks, AE5) - conda packaging - design of anaconda-navigator - lead developer of open source projects Intake, fsspec, fastparquet with millions of downloads - core contributor to Dask, zarr, high profile python data processing software.
GitHub: https://github.com/martindurant/
Twitter: https://twitter.com/martin_durant_/
LinkedIn: https://www.linkedin.com/in/martin-durant-1a3b6676/
Website: http://martindurant.github.io//
PyData Global 2021
Website: https://pydata.org/global2021/
LinkedIn: https://www.linkedin.com/company/pydata-global
Twitter: https://twitter.com/PyData
www.pydata.org
PyData is an educational program of NumFOCUS, a 501(c)3 non-profit organization in the United States. PyData provides a forum for the international community of users and developers of data analysis tools to share ideas and learn from each other. The global PyData network promotes discussion of best practices, new approaches, and emerging technologies for data management, processing, analytics, and visualization. PyData communities approach data science using many languages, including (but not limited to) Python, Julia, and R.
PyData conferences aim to be accessible and community-driven, with novice to advanced level presentations. PyData tutorials and talks bring attendees the latest project features along with cutting-edge use cases.
00:00 Welcome!
00:10 Help us add time stamps or captions to this video! See the description for details.
Want to help add timestamps to our YouTube videos to help with discoverability? Find out more here: https://github.com/numfocus/YouTubeVideoTimestamps