Hi all,
I'd like to upload a set of fit.fz files, but that's not a supported file type. I've tried converting them to .fits files using:
with fits.open(image_path) as hdul:
hdul.writeto(new_name, overwrite=True)
Where image_path is the fit.fz file and new_name is the .fits file. But when I upload the resulting .fits file, I get the error:
...ns.py", line 612, in dosub
img = get_or_create_image(df, tempfiles=tempfiles)
File "process_submissions.py", line 663, in get_or_create_image
raise Exception("This file's type is not supported.")
Exception: This file's type is not supported.
so the conversion isn't behaving as I intend. I can convert the fit.fz files to fits using DS9, but I'd like a solution I can apply to large number of files. Any help is welcome.
Thanks!
Carrie