astromodule.io.read_image#

read_image(path: str | Path) ndarray[source]#

Load image from local storage to numpy array. Supports several types of files, incluing .jpg, .png, .npy, .npz, .fits

Parameters:
path: str or pathlib.Path

Path to the desired file

Returns:
numpy.ndarray

Image converted (if needed) to a numpy array.