5.6. save_as¶
Saves the FitsArray to the specified output.
- FitsArray.save_as(self, output: str) Self¶
Saves the
FitsArrayto the specified output.Parameters
outputstrThe new path to save the file.
Returns
FitsArrayA new
FitsArrayobject representing the saved data.
Raises
NumberOfElementErrorRaised 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/")