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

Home » Public Forums » archive » How can I make the headers of two fits files same in IDL?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How can I make the headers of two fits files same in IDL? [message #93006 is a reply to message #93005] Fri, 08 April 2016 08:21 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 4/8/16 8:30 AM, wlandsman wrote:
> On Friday, April 8, 2016 at 12:11:54 AM UTC-4, Meegle_Jade wrote:
>> Is there any way to match the headers of two fits files?
>
> This question could mean many different things.
>
> But to make the FITS header in a file test2.fits the same as in file test1.fits
>
> h = headfits('test1.fits')
> modfits,'test2.fits',0,h
>
> using routines from http://idlastro.gsfc.nasa.gov/homepage.html
>

I agree that this could mean many things. If by "match the headers of
two fits files" you mean check to see the differences between two
headers, then check out my routine MG_FITS_DIFF:

https://github.com/mgalloy/mglib/blob/master/src/fits/mg_fit s_diff.pro

You can ignore specified keywords as well.

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: wplot not zooming
Next Topic: Looping over odd values only

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

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

Total time taken to generate the page: 0.80321 seconds