read_files#
- irispy.io.read_files(
- filenames,
- *,
- spectral_windows=None,
- uncertainty=False,
- memmap=False,
- allow_errors=False,
- **kwargs,
A wrapper function to read any number of raster, SJI or IRIS-aligned AIA data files.
The goal is be able to download an entire IRIS observation and read it in one go, without having to worry about the type of file.
- Parameters:
filename (
listofstr,str,pathlib.Path) – Filename(s) to load.spectral_windows (iterable of
strorstr) – Spectral windows to extract from files. Default=None, implies, extract all spectral windows.uncertainty (
bool, optional) – IfTrue(not the default), will compute the uncertainty for the data (slower and uses more memory). Ifmemmap=True, the uncertainty is never computed.memmap (
bool, optional) – IfTrue(not the default), FITS data are opened using Astropy/NumPy memory mapping rather than being fully read into memory at once. This can keep memory usage low when working with many files, since array data are accessed from disk on demand. In this mode FITS image scaling is disabled, so the returned data are unscaled/raw FITS values rather than automatically scaled physical values. Ifmemmap=True, the uncertainty is never computed.allow_errors (
bool, optional) – Will continue loading the files if one fails to load. Defaults toFalse.kwargs (
dict, optional) – Additional keyword arguments to pass to the reader functions.
- Returns:
With keys being the value of TDESC1, the values being the cube.
- Return type: