Re: How to add several *.fit files (matrices) into one output *.fit file? [message #63392 is a reply to message #63391] |
Thu, 06 November 2008 12:14   |
Griffons
Messages: 15 Registered: November 2008
|
Junior Member |
|
|
On Nov 6, 12:32 pm, Wox <s...@nomail.com> wrote:
> On Thu, 6 Nov 2008 09:14:30 -0800 (PST), Griffons
>
> <griffon...@gmail.com> wrote:
>> I downloaded readfits, writefits and the other files required.
>> I am not sure what to do next. I compiled and ran readfits and
>> writefits, but then what to do?
>
> files=['test1.fits','test2.fits',...] ; use e.g. file_search for this
> sum = READFITS( files[0], /NOSCALE)
> for i=1,n_elements(files)-1 do $
> sum += READFITS( files[i], /NOSCALE)
> writefits, 'sum_filename', sum
>
> Both readfits and writefits depend on some other procedures from the
> ASTRO library. Make sure you compiled them too.
Hello Wox,
Thank you very much for your help.
It works well now.
Griffons
|
|
|