5.6. save_as

Saves the FitsArray to the specified output.


FitsArray.save_as(self, output: str) Self

Saves the FitsArray to the specified output.

Parameters

outputstr

The new path to save the file.

Returns

FitsArray

A new FitsArray object representing the saved data.

Raises

NumberOfElementError

Raised when the number of FITS files is 0.


5.6.1. Example:

from myraflib import FitsArray

fa = FitsArray.sample()
saved_fa = fa.save_as("PATH/TO/DIRECTORY/")