How can I get a FITS header of string value?

Scripts and programs to automate Astroart
Post Reply
Forum_2016
Posts: 219
Joined: 08 Dec 2018, 13:30

How can I get a FITS header of string value?

Post by Forum_2016 »

I want to get a FITS header of string value by script.

My FITS file has some FITS headers bellow;
TEMPERATURE = -10
EXPOSURE = 180
FILTER = 'B'
...

My script is bellow;
print Image.GetKey("TEMPERATURE")
print Image.GetKey("EXPOSURE")
print Image.GetKey("FILTER")

The result is bellow;
-10
180
0

I know the function of Image.GetKey() only support "number value".
But in this case, I want to get the FITS header of FILTER value 'B'
How can I get a FITS header of string value ?
Please let me know other function, other way.....

w/ regards,
Tadayoshi

Forum_2016
Posts: 219
Joined: 08 Dec 2018, 13:30

Re: How can I get a FITS header of string value?

Post by Forum_2016 »

This reply is "self reply".

I'm verry sorry. I watched "Astroart6" help file.
I found Image.GetKey$() function in the "Astroart5" help file.

My script is bellow;
print Image.GetKey$("FILTER")

The result is bellow;
B

----------
Image.GetKey$() function is written in Astroart5 help file but not in Astroart6 help file.
Why is this function's description deleted Astroart6 ?

Thank you,

Forum_2016
Posts: 219
Joined: 08 Dec 2018, 13:30

Re: How can I get a FITS header of string value?

Post by Forum_2016 »

Thank you,
the documentation will be fixed as soon as possible.
The syntax "Image.GetKey" will be valid for string keys in the next camera interface. As you wrote, meanwhile it's required to use "GetKey$" or "GetKeyString".
Thanks, Fabio.

Post Reply