4.1. from_image

Creates a Fits object from the given image file


Fits.from_image(path) Self

Creates a Fits object from the given image file.

Parameters

pathstr

Path of the file as a string.

Returns

Fits

A Fits object.

Raises

FileNotFoundError

Raised when the file does not exist.


4.1.1. Example:

from myraflib import Fits

fits = Fits.from_image("PATH/TO/FILE")