USNavalResearchLaboratory / GFITSIO

LabVIEW library to read and write data files in FITS data format.
Other
5 stars 2 forks source link

gfitsio-create-img function creates two headers #3

Closed DBernardes closed 2 years ago

DBernardes commented 2 years ago

Hi, I am using the GFITSIO package to create fits images. However, when using the gfitsio-create-img function, the image is created with two headers. Is there a way to fix this?

gatling-nrl commented 2 years ago

The primary header/image has to be created when the file is created. So create-img is always going to be creating the secondary headers. If you really want to only have the primary header, you should be able to set the size of the primary and then write to it, without calling create-img. Note the primary header has to always be an image and can't be a table.

DBernardes commented 2 years ago

It worked. Thanks!