fetch_all#
- fetch_all(*, hdf=5)#
Fetch every registry file matching the requested HDF version.
Downloads all files in the fetcher registry whose names end with the extension for the requested HDF version and returns their cached paths.
- Parameters:
- hdf
int, optional HDF format version to download:
4(.hdf) or5(.h5). Default is5.
- hdf
- Returns:
- Raises:
ValueErrorIf hdf is not a supported HDF version.
See also
fetch_mas_dataFetch a targeted subset of MAS field output.
Notes
This downloads the entire data collection for the chosen format and may transfer a large volume of data on its first invocation.
Examples
>>> from psi_data import fetch_all >>> paths = fetch_all(hdf=5) >>> all(p.suffix == ".h5" for p in paths) True