Re: How to add several *.fit files (matrices) into one output *.fit file? [message #63404 is a reply to message #63403] |
Thu, 06 November 2008 10:52   |
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.
Thank you for your help.
I compiled all the procedures related to readfits and writefits.
When I run readfits, it gives this error:
Attempt to call undefined procedure/function: 'READFITS'.
Execution halted at: $MAIN$
As a result, the files cannot be read when they are called:
files=['test1.fits','test2.fits',...] ; I tried files_search it does
not work.
writefits work when is run.
What could I do?
|
|
|