Autostronomy / AutoProf

Automatic Isophotal solutions for galaxy images
https://autoprof.readthedocs.io/
GNU General Public License v3.0
27 stars 4 forks source link

A method for dumping of current IMG to FITS/npy #2

Closed Smith42 closed 3 years ago

Smith42 commented 3 years ago
modified:   ../../Pipeline.py
new file:   ../../autoprofutils/Write_Fi.py

This Write_FI method writes the IMG as it is at the point where writefi is inserted into the pipeline. Currently I have implemented both fits and npy binary dumps.

If the dumped file will be clobbered then the filename is iterated upon (i.e. .000.fits becomes .001.fits).

ConnorStoneAstro commented 3 years ago

Please change the default save behaviour to "fits" as that is the astronomy standard. Also for the np.save line, I think you want to pass "f" not "fi".

Smith42 commented 3 years ago

this commit fixes the typo, and changes the default save format to fits