5.2. from_paths¶
Create a FitsArray from paths as a list of strings.
- FitsArray.from_paths(cls, paths: List[str], logger: Logger | None = None, verbose: bool = False) Self¶
Create a
FitsArrayfrom paths as a list of strings.Notes
This method combines multiple FITS files into a single
FitsArrayobject.Parameters
pathsList[str]A list of paths to the FITS files as strings.
loggerOptional[Logger]An optional logger for logging messages during the operation.
verbosebool, optional, default=FalseIf set to
True, additional information will be displayed during processing.
Returns
FitsArrayThe
FitsArraycreated from the list of FITS files.
Raises
NumberOfElementErrorRaised when the number of FITS files is 0.
5.2.1. Example:¶
from myraflib import FitsArray
fa = FitsArray.from_paths(["PATH/TO/FILE_1", "PATH/TO/FILE_2"])