cylammarco / ASPIRED

Automated SpectroPhotometric Image REDuction (ASPIRED)
https://aspired.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
30 stars 4 forks source link

Save/Load #85

Open cylammarco opened 2 years ago

cylammarco commented 2 years ago

To allow saving and loading of Spectrum1D, FluxCalibration, WavelengthCalibration, OneDSpec and TwoDSpec.

rjs3273 commented 1 year ago

I have been playing with OneDSpec.save_fits() and so far not got any useful output, just empty FITS. Does the existence of this issue imply that the save function currently does not work? I have used it in the past without problems. I just wanted to check what is the current status of OneDSpec.save_fits() before I spend too long investigating my current problem.

cylammarco commented 1 year ago

@rjs3273 Try using create_fits() first. This is a bug that has been bugging me for half a year now. I don't understand why save_fits() doesn't work on its own.

rjs3273 commented 1 year ago

Aha. Yes. I saw create_fits() yesterday and immediately forgot about it again. Looks like it is working now. Thanks.