Re: No valid Fits header
Posted by Torsten Roehl on Nov 03, 2019; 8:27am
URL: http://astroimagej.170.s1.nabble.com/No-valid-Fits-header-tp177p1236.html
Hi, Karen this must be an misunderstanding.
The problem has nothing todo with 1D fits files.
The Problem is based solely in the source code of ij/aij.
Arbitrary 2D Fitsfiles produces the "integer fixed format Error" (Nasa FITS File Verifier).
This is because this to lines in FITS_Write are not right implemented:
orginal file:
appendFile(writeCard("NAXIS1", " "+ip.getWidth(), "length of data axis 1"), path);
appendFile(writeCard("NAXIS2", " "+ip.getHeight(), "length of data axis 2"), path);
e.g:
Fitsformat requird a fixed valued length.
but " "+ip.getWidth() will give variable lengths, depending on the choosen 2D fits file width!
Torsten
ps: by the way - my 1d fits file plugin works perfect