comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » how to retain header info even after writefits
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
how to retain header info even after writefits [message #70930] Fri, 21 May 2010 12:35
sid is currently offline  sid
Messages: 50
Registered: January 1995
Member
Hi,
I am having fits data, im reading it in this way.
img=readfits('file.fit',h)
Now if I do print,h it prints the header
a=avg(img(0:1023,0:1023),1) ; im averaging over 1024 rows
writefits,'file1.fit',a,h ; im writing into fits file
Now if I do print,h it prints the header were the COMMENT(the header
consists of 8 arrays out of which one array contains comment info)
part of the header of the original(file.fit) is different from the
one(file1.fit) which I got now.
Is there any way to retain all arrays of the header same before and
after writing to a new fits file.
regards
sid
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Fast Marching Algorithm
Next Topic: Re: reading header and manipulating according to the header information

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 21:23:35 PDT 2025

Total time taken to generate the page: 0.72228 seconds