FITSIO.jl icon indicating copy to clipboard operation
FITSIO.jl copied to clipboard

Can not create an empty FITS file

Open jishnub opened this issue 5 years ago • 2 comments

Currently it is not possible to create an empty fits file, one with minimal header information, something along the lines of what's presented here: https://github.com/esheldon/fitsio/issues/164#issuecomment-389528797. This would be a nice feature to have.

jishnub avatar May 26 '20 17:05 jishnub

I was looking at this because I need it too. Maybe I'm wrong about this but it seems to me that this is a limitation not of FITSIO (alone) but rather of CFITSIO because the fits_create_img function does not allow for Null data (which is how python's fitsio is dealing with this).

jbrinchmann avatar Dec 25 '21 23:12 jbrinchmann

I left an issue at JuliaAstro/CFITSIO.jl#19 where I also include code to create an empty HDU using CFITSIO.

jbrinchmann avatar Dec 26 '21 23:12 jbrinchmann