Getting stuck with more issue that I expect is because IFFT is maybe rarely used I am hitting them.
In doing inverse FFT I have found that once I do a save of a FITS file for DFT_magnitude then the inverse FFT will always fail and complain of a 'Parse Error' as follows:
Invalid boolean literal: 'true '
I feel that the save of the DFT_Magnitude file alters the Fits data and makes PIDFTCNT become a little bit different as instead of showing true (no single quotes) it then shows 'true '. Something has happened to it's internal 'type' so my next IFFT then fails in Parse Error.
Cannot figure out how to avoid this and if I cannot avoid this I will not be able to do my inverse fft because after 100 or so uses of the clone stamp to edit out periodic elements PixInsight will then pop its cork (die). So I am really getting stuck here.
I have tried to use the Replace feature of FITS header to specify true in assorted ways including some java syntax and usage of 1 or TRUE or double quotes and other things, no luck.
I attach a bitmap with the left being prior to saving the file and right after saving file where the PIDFTCNT has changed to 'true ' which might be the reason for parse error.
