Author Topic: Error writing FITS header  (Read 3352 times)

Offline Purgitoria

  • Newcomer
  • Posts: 2
Error writing FITS header
« on: 2014 September 06 21:36:47 »
So I have been trying to calibrate some files in PI but every time I try I get an error due to one of the items in a FITS header due to the software owners name in the header.

*** PCL Exception: PCL FITS Format Support: Error writing FITS header keyword:
F:/Astro/LB_M33/Lum/RAW-M33_32449_Luminance_1x1_20140902_002355_c_1.fit
CFITSIO error message stack:
01 : Character 20 in this keyword is illegal. Hex Value = FFFFFFE4
02 : SWOWNER = 'Knut Schäffner'     / Licensed owner of software   

The information in this secton of the header however is not editable. Is there a workaround for this or do i need to wait until a new release where this font is supported?                 

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Error writing FITS header
« Reply #1 on: 2014 September 11 04:22:16 »
To fix these issues:

- Open the Format Explorer window

- Double click the FITS item on the left panel

- On the FITS Format Preferences dialog, check the Cleanup header keywords option (Miscellaneous Options section). Please read the tooltip information given by this check box. Click the OK button.

I suggest you contact the developers of the application that created these FITS files and ask them not to include illegal characters in FITS headers.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Purgitoria

  • Newcomer
  • Posts: 2
Re: Error writing FITS header
« Reply #2 on: 2014 September 11 13:34:19 »
Thanks Juan that worked great. The files were actually created in Maxim DL so i am not sure why there are any illegal charecters annd they do not show up in the FITS header when i view them in Maxim, only in PI.

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Error writing FITS header
« Reply #3 on: 2014 September 11 16:30:00 »
the umlaut-a is illegal i think. FITS probably does not officially support unicode?

rob

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Error writing FITS header
« Reply #4 on: 2014 September 12 04:32:21 »
Quote
FITS probably does not officially support unicode?

No it doesn't. Only a subset of 7-bit ASCII is allowed. From the current FITS Standard version 3.0 (November 2010 revision), Section 3.2:

The primary HDU and every extension HDU shall consist of one or more 2880-byte header blocks immediately followed by an optional sequence of associated 2880-byte data blocks. The header blocks shall contain only the restricted set of ASCII text characters, decimal 32 through 126 (hexadecimal 20 through 7E). The ASCII control characters with decimal values less than 32 (including the null, tab, carriage return, and line feed characters), and the delete character (decimal 127 or hexadecimal 7F) must not appear anywhere within a header block.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Error writing FITS header
« Reply #5 on: 2014 September 12 09:14:51 »
i feel like coding some FORTRAN 77 or COBOL now  >:D