How can I edit FITS Headers when I can't open the file to edit them?

1 visualización (últimos 30 días)
I generated many 3D FITS files with incorrect header sequences. In particular, the Keyword NAXIS3 does not immediately follow NAXIS1 and NAXIS2. I can open these fits files in MatLab R2010a using fitsread, but not in R2013a where the FITS format was updated. When I try to open the file in MatLab R2013a, I get the following error:
Error using fitsiolib CFITSIO library error (224): missing NAXISn keywords
I would love to edit the headers in these files in some way, but can not seem to edit in R2010a where I can open them, and in R2013a where I could edit them if I could open them, I can't open. Any suggestions?
Thanks!
  1 comentario
dpb
dpb el 18 de Sept. de 2013
I "know nuthink" of FITS per se; looking at the doc's makes me wonder if you could
a) open in 2010a, save the image data in some other format and then use that in 2013a, or
b) use the lower-level API calls and workaround the problem the higher-level packaged functions have?
Just a WAG...

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Performance and Memory en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by