Example for assigning new values to FITS Headers? #19
Unanswered
JuergenTerpe
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I also tried this with strings.... Maybe, all this is not the intention how to use it. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to assign new values with a custom keyword to the FITS headers and it seems I'm doing it wrong, obviously (despite it seems to be intuitive). Do you have a working example how to do so? Here is my code, perhaps you can see immediately what I'm doing wrong?
The FITS file will be written successfully, but PixInsight cannot open it - and also not FITScore. PixeInsight gives me this error message:
*** Error: PCL Legacy FITS Format Support: Unable to open FITS file: /Volumes/ImageStore/Leo Triplett/Temp/LIGHT/2024-04-11_00-33-12_Baader Neodymium_-4.90_180.00s_0035.fits
CFITSIO error message stack:
01 : Character 9 in this keyword is illegal. Hex Value = FFFFFF80
02 : �Ä�Ú�Ä�Ý�Ç�æ�Ê�ç�½�é�Å���¼�õ�¿�è�À�ô�Ê�æ�»�ó�¿�ð�¿�ë�Á�î�Ç�ò�¼�ñ�Â�ä�Á�ò�Ä
03 : Name of keyword no. 109 contains illegal character(s): �Ä�Ú�Ä�Ý�Ç�æ�Ê�ç�½�é�Å���
04 : Failed to read the required primary array header keywords.
05 : ffopen could not interpret primary array header of file:
06 : /Volumes/ImageStore/Leo Triplett/Temp/LIGHT/2024-04-11_00-33-12_Baader Neodymium
07 : -4.90_180.00s_0035.fits
*** Unable to open file: /Volumes/ImageStore/Leo Triplett/Temp/LIGHT/2024-04-11_00-33-12_Baader Neodymium-4.90_180.00s_0035.fits
<* failed *>
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions