Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not create an empty FITS file #133

Open
jishnub opened this issue May 26, 2020 · 2 comments
Open

Can not create an empty FITS file #133

jishnub opened this issue May 26, 2020 · 2 comments

Comments

@jishnub
Copy link
Contributor

jishnub commented May 26, 2020

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: esheldon/fitsio#164 (comment). This would be a nice feature to have.

@jbrinchmann
Copy link
Contributor

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants