JuliaAstro / FITSIO.jl

Flexible Image Transport System (FITS) file support for Julia
http://juliaastro.org/FITSIO.jl/
MIT License
55 stars 29 forks source link

Can not create an empty FITS file #133

Open jishnub opened 4 years ago

jishnub commented 4 years ago

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.

jbrinchmann commented 2 years ago

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 commented 2 years ago

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