comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Re: How to add several *.fit files (matrices) into one output *.fit file?

Re: How to add several *.fit files (matrices) into one output *.fit file?
type: item
description: On Thu, 6 Nov 2008 08:46:31 -0800 (PST), Griffons <griffons76@gmail.com> wrote: > Hello, > Thank you for your help. > I mean adding as in summation. Let say you have 20 image files in a > folder and want the output to be the sum into one file. Well, then it's like Jeremy said, readfits to read all images and writefits to write the sum. I'm not sure what the problem is...
creator: Wout De Nolf
date: 2008-11-06T16:55:56-00:00

Re: How to add several *.fit files (matrices) into one output *.fit file?
type: item
description: On Nov 6, 11:55 am, Wox <s...@nomail.com> wrote: > On Thu, 6 Nov 2008 08:46:31 -0800 (PST), Griffons > > <griffon...@gmail.com> wrote: >> Hello, >> Thank you for your help. >> I mean adding as in summation. Let say you have 20 image files in a >> folder and want the output to be the sum into one file. > > Well, then it's like Jeremy said, readfits to read all images and > writefits to write the sum. I'm not sure what the problem is... 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?
creator: Griffons
date: 2008-11-06T17:14:30-00:00

Re: How to add several *.fit files (matrices) into one output *.fit file?
type: item
description: On Thu, 6 Nov 2008 09:14:30 -0800 (PST), Griffons <griffons76@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.
creator: Wout De Nolf
date: 2008-11-06T17:32:13-00:00

Re: How to add several *.fit files (matrices) into one output *.fit file?
type: item
description: Griffons writes: > 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? Usually, the next step is to read the documentation headers. Cheers, David -- David Fanning, Ph.D. Fanning Software Consulting, Inc. Coyote's Guide to IDL Programming: http://www.dfanning.com/ Sepore ma de ni thui. ("Perhaps thou speakest truth.")
creator: David Fanning
date: 2008-11-06T17:35:30-00:00

Re: How to add several *.fit files (matrices) into one output *.fit file?
type: item
description: On Nov 6, 7:14 am, Griffons <griffon...@gmail.com> wrote: > On Nov 6, 11:55 am, Wox <s...@nomail.com> wrote: > >> On Thu, 6 Nov 2008 08:46:31 -0800 (PST), Griffons > >> <griffon...@gmail.com> wrote: >>> Hello, >>> Thank you for your help. >>> I mean adding as in summation. Let say you have 20 image files in a >>> folder and want the output to be the sum into one file. > >> Well, then it's like Jeremy said, readfits to read all images and >> writefits to write the sum. I'm not sure what the problem is... > > 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? I would do something like this, where files is a string array of the file names and nfiles is the number of files in that array: im = mrdfits( files[0], 0, h, /silent) for i = 1, nfiles - 1, 1 do begin im += mrdfits(files[i], 0, h, /silent) endfor writefits,'outfile', im, h The caveat to this is that the header of the output file is the header of the last file only. Use something like file_search to create the files array. Chris
creator: Chris[6]
date: 2008-11-06T17:37:33-00:00

Re: How to add several *.fit files (matrices) into one output *.fit file?
type: item
description: 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?
creator: Griffons
date: 2008-11-06T18:52:17-00:00

Re: How to add several *.fit files (matrices) into one output *.fit file?
type: item
description: On Nov 6, 12:35 pm, David Fanning <n...@dfanning.com> wrote: > Griffons writes: >> 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? > > Usually, the next step is to read the documentation headers. > > Cheers, > > David > -- > David Fanning, Ph.D. > Fanning Software Consulting, Inc. > Coyote's Guide to IDL Programming:http://www.dfanning.com/ > Sepore ma de ni thui. ("Perhaps thou speakest truth.") Thank you for your help. Griffons
creator: Griffons
date: 2008-11-06T18:52:44-00:00

Re: How to add several *.fit files (matrices) into one output *.fit file?
type: item
description: On Nov 6, 12:53 pm, Christopher Thom <ct...@oddjob.uchicago.edu> wrote: > Quoth Wox: > >> 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. > > And a minor point to add...be clear that you really want to specify the > /NOSCALE option. If the fits images have BSCALE and BZERO set in the > header, then you may want them scaled appropriately before summing... > > cheers > chris Thank you for your help Chris. Griffons
creator: Griffons
date: 2008-11-06T18:54:18-00:00

Re: How to add several *.fit files (matrices) into one output *.fit file?
type: item
description: Griffons writes: > 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=3D['test1.fits','test2.fits',...] ; I tried files_search it does > not work. > > writefits work when is run. > > What could I do? The next step is to read this article: http://www.catb.org/~esr/faqs/smart-questions.html Especially the part about "don't say program XXX doesn't work unless you are *absolutely* sure about it." Cheers, David -- David Fanning, Ph.D. Fanning Software Consulting, Inc. Coyote's Guide to IDL Programming: http://www.dfanning.com/ Sepore ma de ni thui. ("Perhaps thou speakest truth.")
creator: David Fanning
date: 2008-11-06T18:57:40-00:00

Re: How to add several *.fit files (matrices) into one output *.fit file?
type: item
description: On Nov 6, 1:57 pm, David Fanning <n...@dfanning.com> wrote: > Griffons writes: >> 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=3D['test1.fits','test2.fits',...] ; I tried files_search it does >> not work. > >> writefits work when is run. > >> What could I do? > > The next step is to read this article: > > http://www.catb.org/~esr/faqs/smart-questions.html > > Especially the part about "don't say program XXX doesn't > work unless you are *absolutely* sure about it." > > Cheers, > > David > -- > David Fanning, Ph.D. > Fanning Software Consulting, Inc. > Coyote's Guide to IDL Programming:http://www.dfanning.com/ > Sepore ma de ni thui. ("Perhaps thou speakest truth.") I compiled gettok, mrd_skip, strnumber, sxaddpar, sxdelpar, sxpar, valid_num, and readfits. They all worked. Then I run readfits and it does not work.
creator: Griffons
date: 2008-11-06T19:08:11-00:00

Re: How to add several *.fit files (matrices) into one output *.fit file?
type: item
description: Griffons wrote: > On Nov 6, 1:57�pm, David Fanning <n...@dfanning.com> wrote: >> Griffons writes: >>> 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=3D['test1.fits','test2.fits',...] ; �I tried files_search it does >>> not work. >> >>> writefits work when is run. >> >>> What could I do? >> >> The next step is to read this article: >> >> � http://www.catb.org/~esr/faqs/smart-questions.html >> >> Especially the part about "don't say program XXX doesn't >> work unless you are *absolutely* sure about it." >> >> Cheers, >> >> David >> -- >> David Fanning, Ph.D. >> Fanning Software Consulting, Inc. >> Coyote's Guide to IDL Programming:http://www.dfanning.com/ >> Sepore ma de ni thui. ("Perhaps thou speakest truth.") > > I compiled gettok, mrd_skip, strnumber, sxaddpar, sxdelpar, sxpar, > valid_num, and readfits. They all worked. Then I run readfits and it > does not work. How does it fail then? Paolo
creator: pgrigis
date: 2008-11-06T19:35:33-00:00

Re: How to add several *.fit files (matrices) into one output *.fit file?
type: item
description: On Nov 6, 2:35 pm, Paolo <pgri...@gmail.com> wrote: > Griffons wrote: >> On Nov 6, 1:57 pm, David Fanning <n...@dfanning.com> wrote: >>> Griffons writes: >>>> 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=3D['test1.fits','test2.fits',...] ; I tried files_search it does >>>> not work. > >>>> writefits work when is run. > >>>> What could I do? > >>> The next step is to read this article: > >>> http://www.catb.org/~esr/faqs/smart-questions.html > >>> Especially the part about "don't say program XXX doesn't >>> work unless you are *absolutely* sure about it." > >>> Cheers, > >>> David >>> -- >>> David Fanning, Ph.D. >>> Fanning Software Consulting, Inc. >>> Coyote's Guide to IDL Programming:http://www.dfanning.com/ >>> Sepore ma de ni thui. ("Perhaps thou speakest truth.") > >> I compiled gettok, mrd_skip, strnumber, sxaddpar, sxdelpar, sxpar, >> valid_num, and readfits. They all worked. Then I run readfits and it >> does not work. > > How does it fail then? > > Paolo- Hide quoted text - > > - Show quoted text - Hello Paolo, how are you? Here is what I get as error message: It is not able to locate any of the files. I am not sure how to pick/ search for them. IDL> .COMPILE "C:\Documents and Settings\Owner\My Documents \Data_Reduction\code\READFITS_code\readfits.pro" Compiled module: READFITS. IDL> .COMPILE "C:\Documents and Settings\Owner\My Documents \Data_Reduction\code\READFITS_code\readfits.pro" Compiled module: READFITS. IDL> .COMPILE "C:\Documents and Settings\Owner\My Documents \Data_Reduction\code\READFITS_code\strnumber.pro" Compiled module: STRNUMBER. IDL> .COMPILE "C:\Documents and Settings\Owner\My Documents \Data_Reduction\code\READFITS_code\sxaddpar.pro" Compiled module: SXADDPAR. IDL> .COMP…
creator: Griffons
date: 2008-11-06T19:38:45-00:00

Re: How to add several *.fit files (matrices) into one output *.fit file?
type: item
description: On Nov 6, 9:38 am, Griffons <griffon...@gmail.com> wrote: > On Nov 6, 2:35 pm, Paolo <pgri...@gmail.com> wrote: > > > >> Griffons wrote: >>> On Nov 6, 1:57 pm, David Fanning <n...@dfanning.com> wrote: >>>> Griffons writes: >>>> > 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=3D['test1.fits','test2.fits',...] ; I tried files_search it does >>>> > not work. > >>>> > writefits work when is run. > >>>> > What could I do? > >>>> The next step is to read this article: > >>>> http://www.catb.org/~esr/faqs/smart-questions.html > >>>> Especially the part about "don't say program XXX doesn't >>>> work unless you are *absolutely* sure about it." > >>>> Cheers, > >>>> David >>>> -- >>>> David Fanning, Ph.D. >>>> Fanning Software Consulting, Inc. >>>> Coyote's Guide to IDL Programming:http://www.dfanning.com/ >>>> Sepore ma de ni thui. ("Perhaps thou speakest truth.") > >>> I compiled gettok, mrd_skip, strnumber, sxaddpar, sxdelpar, sxpar, >>> valid_num, and readfits. They all worked. Then I run readfits and it >>> does not work. > >> How does it fail then? > >> Paolo- Hide quoted text - > >> - Show quoted text - > > Hello Paolo, > how are you? > > Here is what I get as error message: > It is not able to locate any of the files. I am not sure how to pick/ > search for them. > > IDL> .COMPILE "C:\Documents and Settings\Owner\My Documents > \Data_Reduction\code\READFITS_code\readfits.pro" > Compiled module: READFITS. > IDL> .COMPILE "C:\Documents and Settings\Owner\My Documents > \Data_Reduction\code\READFITS_code\readfits.pro" > Compiled module: READFITS. > IDL> .COMPILE "C:\Documents and Settings\Owner\My Documents > \Data_Reduction\code\READFITS_code\strnumber.pro" > Compiled module: STRNUMBER. > IDL>…
creator: Chris[6]
date: 2008-11-06T19:53:33-00:00

Re: How to add several *.fit files (matrices) into one output *.fit file?
type: item
description: On Nov 6, 2:53 pm, Chris <beaum...@ifa.hawaii.edu> wrote: > On Nov 6, 9:38 am, Griffons <griffon...@gmail.com> wrote: > > > > > >> On Nov 6, 2:35 pm, Paolo <pgri...@gmail.com> wrote: > >>> Griffons wrote: >>>> On Nov 6, 1:57 pm, David Fanning <n...@dfanning.com> wrote: >>>> > Griffons writes: >>>> > > 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=3D['test1.fits','test2.fits',...] ; I tried files_search it does >>>> > > not work. > >>>> > > writefits work when is run. > >>>> > > What could I do? > >>>> > The next step is to read this article: > >>>> >http://www.catb.org/~esr/faqs/smart-questions.html > >>>> > Especially the part about "don't say program XXX doesn't >>>> > work unless you are *absolutely* sure about it." > >>>> > Cheers, > >>>> > David >>>> > -- >>>> > David Fanning, Ph.D. >>>> > Fanning Software Consulting, Inc. >>>> > Coyote's Guide to IDL Programming:http://www.dfanning.com/ >>>> > Sepore ma de ni thui. ("Perhaps thou speakest truth.") > >>>> I compiled gettok, mrd_skip, strnumber, sxaddpar, sxdelpar, sxpar, >>>> valid_num, and readfits. They all worked. Then I run readfits and it >>>> does not work. > >>> How does it fail then? > >>> Paolo- Hide quoted text - > >>> - Show quoted text - > >> Hello Paolo, >> how are you? > >> Here is what I get as error message: >> It is not able to locate any of the files. I am not sure how to pick/ >> search for them. > >> IDL> .COMPILE "C:\Documents and Settings\Owner\My Documents >> \Data_Reduction\code\READFITS_code\readfits.pro" >> Compiled module: READFITS. >> IDL> .COMPILE "C:\Documents and Settings\Owner\My Documents >> \Data_Reduction\code\READFITS_code\readfits.pro" >> Compiled module: READFITS. >> IDL> .COMPILE "C:\…
creator: Griffons
date: 2008-11-06T20:12:51-00:00

Re: How to add several *.fit files (matrices) into one output *.fit file?
type: item
description: On Nov 6, 2:50 pm, "R.G. Stockwell" <notha...@noemail.com> wrote: > "Griffons" <griffon...@gmail.com> wrote in message > > news:dd8c46c9-8ac9-435f-8822-b549d7ba118a@d10g2000pra.google groups.com... > ... > >> IDL> files=['S_08189493.fit','S_08189494.fit','S_08189495.fit', >> 'S_08189496.fit'] ; >> IDL> sum = READFITS( files[0], /NOSCALE) >> READFITS: ERROR - Unable to locate file S_08189493.fit > > well, if you don't know where your files are, how is > IDL supposed to know? > > This means that the file is not in your current directory. > Include the full path for the file, and it should work. > > Cheers, > bob Hi Bob, Thank you very much. It works now. Griffons
creator: Griffons
date: 2008-11-06T20:13:30-00:00

Re: How to add several *.fit files (matrices) into one output *.fit file?
type: item
description: 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
creator: Griffons
date: 2008-11-06T20:14:40-00:00

Re: How to add several *.fit files (matrices) into one output *.fit file?
type: item
description: I think you may have been confused by the posts about automatically locate files.... these are important for IDL source code, but when you are dealing with data, you have to spacifiy the full path. Normally I use something as file=dir+filename such that when I need to move the files somewhere else I only need to change the dir in one place. Ciao, Paolo Griffons wrote: > On Nov 6, 2:35�pm, Paolo <pgri...@gmail.com> wrote: >> Griffons wrote: >>> On Nov 6, 1:57 pm, David Fanning <n...@dfanning.com> wrote: >>>> Griffons writes: >>>> > 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=3D['test1.fits','test2.fits',...] ; I tried files_search it does >>>> > not work. >> >>>> > writefits work when is run. >> >>>> > What could I do? >> >>>> The next step is to read this article: >> >>>> http://www.catb.org/~esr/faqs/smart-questions.html >> >>>> Especially the part about "don't say program XXX doesn't >>>> work unless you are *absolutely* sure about it." >> >>>> Cheers, >> >>>> David >>>> -- >>>> David Fanning, Ph.D. >>>> Fanning Software Consulting, Inc. >>>> Coyote's Guide to IDL Programming:http://www.dfanning.com/ >>>> Sepore ma de ni thui. ("Perhaps thou speakest truth.") >> >>> I compiled gettok, mrd_skip, strnumber, sxaddpar, sxdelpar, sxpar, >>> valid_num, and readfits. �They all worked. Then I run readfits and it >>> does not work. >> >> How does it fail then? >> >> Paolo- Hide quoted text - >> >> - Show quoted text - > > Hello Paolo, > how are you? > > Here is what I get as error message: > It is not able to locate any of the files. I am not sure how to pick/ > search for them. > > > IDL> .COMPILE "C:\Documents and Settings\Owner\My Documents > \Data_Reduction\code\READFITS_code\readfits.pro"…
creator: pgrigis
date: 2008-11-06T20:16:17-00:00

Re: How to add several *.fit files (matrices) into one output *.fit file?
type: item
description: On Nov 6, 3:16 pm, Paolo <pgri...@gmail.com> wrote: > I think you may have been confused by the posts > about automatically locate files.... these are important for > IDL source code, but when you are dealing with data, > you have to spacifiy the full path. > > Normally I use something as > file=dir+filename > such that when I need to move the files somewhere else > I only need to change the dir in one place. > > Ciao, > Paolo > > > > Griffons wrote: >> On Nov 6, 2:35 pm, Paolo <pgri...@gmail.com> wrote: >>> Griffons wrote: >>>> On Nov 6, 1:57 pm, David Fanning <n...@dfanning.com> wrote: >>>> > Griffons writes: >>>> > > 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=3D['test1.fits','test2.fits',...] ; I tried files_search it does >>>> > > not work. > >>>> > > writefits work when is run. > >>>> > > What could I do? > >>>> > The next step is to read this article: > >>>> >http://www.catb.org/~esr/faqs/smart-questions.html > >>>> > Especially the part about "don't say program XXX doesn't >>>> > work unless you are *absolutely* sure about it." > >>>> > Cheers, > >>>> > David >>>> > -- >>>> > David Fanning, Ph.D. >>>> > Fanning Software Consulting, Inc. >>>> > Coyote's Guide to IDL Programming:http://www.dfanning.com/ >>>> > Sepore ma de ni thui. ("Perhaps thou speakest truth.") > >>>> I compiled gettok, mrd_skip, strnumber, sxaddpar, sxdelpar, sxpar, >>>> valid_num, and readfits. They all worked. Then I run readfits and it >>>> does not work. > >>> How does it fail then? > >>> Paolo- Hide quoted text - > >>> - Show quoted text - > >> Hello Paolo, >> how are you? > >> Here is what I get as error message: >> It is not able to locate any of the files. I am not sure how to pick/ >> searc…
creator: Griffons
date: 2008-11-06T20:17:48-00:00

Re: How to add several *.fit files (matrices) into one output *.fit file?
type: item
description: > Hello Paolo, > > Thank you for your help. I think that as a general rule, it is best to just thank everybody in one post at the end of the thread instead of posting 5 different thank messages ;-) Ciao, Paolo > > Griffons
creator: pgrigis
date: 2008-11-06T20:21:31-00:00

Re: How to add several *.fit files (matrices) into one output *.fit file?
type: item
description: On 6 nov, 14:53, Chris <beaum...@ifa.hawaii.edu> wrote: > On Nov 6, 9:38 am, Griffons <griffon...@gmail.com> wrote: > > > > > >> On Nov 6, 2:35 pm, Paolo <pgri...@gmail.com> wrote: > >>> Griffons wrote: >>>> On Nov 6, 1:57 pm, David Fanning <n...@dfanning.com> wrote: >>>> > Griffons writes: >>>> > > 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=3D['test1.fits','test2.fits',...] ; I tried files_search it does >>>> > > not work. > >>>> > > writefits work when is run. > >>>> > > What could I do? > >>>> > The next step is to read this article: > >>>> >http://www.catb.org/~esr/faqs/smart-questions.html > >>>> > Especially the part about "don't say program XXX doesn't >>>> > work unless you are *absolutely* sure about it." > >>>> > Cheers, > >>>> > David >>>> > -- >>>> > David Fanning, Ph.D. >>>> > Fanning Software Consulting, Inc. >>>> > Coyote's Guide to IDL Programming:http://www.dfanning.com/ >>>> > Sepore ma de ni thui. ("Perhaps thou speakest truth.") > >>>> I compiled gettok, mrd_skip, strnumber, sxaddpar, sxdelpar, sxpar, >>>> valid_num, and readfits. They all worked. Then I run readfits and it >>>> does not work. > >>> How does it fail then? > >>> Paolo- Hide quoted text - > >>> - Show quoted text - > >> Hello Paolo, >> how are you? > >> Here is what I get as error message: >> It is not able to locate any of the files. I am not sure how to pick/ >> search for them. > >> IDL> .COMPILE "C:\Documents and Settings\Owner\My Documents >> \Data_Reduction\code\READFITS_code\readfits.pro" >> Compiled module: READFITS. >> IDL> .COMPILE "C:\Documents and Settings\Owner\My Documents >> \Data_Reduction\code\READFITS_code\readfits.pro" >> Compiled module: READFITS. >> IDL> .COMPILE "C:\Do…
creator: Griffons
date: 2008-11-06T21:20:33-00:00