erlab.io.fitsutils

Functions

fits_to_xarray(filename)

Load the contents of a FITS file into a xarray.DataTree.

load_fits7(filename)

Load ARPES data saved to a FITS file.

erlab.io.fitsutils.fits_to_xarray(filename)[source]

Load the contents of a FITS file into a xarray.DataTree.

This function corresponds to the functionality of the Fits Loader Igor procedure; it loads the contents of a FITS file into a xarray.DataTree with minimal processing. To load ALS BL7 or BL10 data, use load_fits7() which wraps this function and processes the data further.

Parameters:

filename (str | PathLike) – Path to the FITS file.

Returns:

xarray.DataTree

Return type:

DataTree

See also

load_fits7

erlab.io.fitsutils.load_fits7(filename)[source]

Load ARPES data saved to a FITS file.

Loads ARPES data assuming a format used by beamlines 10.0.1 and 7.0.1 at ALS, and possibly others.

Parameters:

filename (str | PathLike) – Path to the FITS file.