Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Delete all FITS keywords?
11-14-2016, 15:16
Post: #1
Delete all FITS keywords?
Is there any way to delete all the keywords from one FITS image header?
Otherwise, could I replace one existing long header of an existing image with another small set defined in ASCII format?
Many thanks in advance!
Find all posts by this user
Quote this message in a reply
11-17-2016, 15:36
Post: #2
RE: Delete all FITS keywords?
(11-14-2016 15:16)ovidiuv Wrote:  Is there any way to delete all the keywords from one FITS image header?
Nope.

(11-14-2016 15:16)ovidiuv Wrote:  Otherwise, could I replace one existing long header of an existing image with another small set defined in ASCII format?
You can't replace keywords but you can add them.
If your image is <image>.fits, and you create an ASCII file called <image>.head like, eg,
Code:
KEY1    = 'keyvalue1'
KEY2    = 'keyvalue2'
END
all new keywords will be added to the output image. If one of them already exists its value will be replaced.

Bests,
Chiara
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)