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

Home » Public Forums » archive » Re: passing parameters to .sav file in IDL VM
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: passing parameters to .sav file in IDL VM [message #68071 is a reply to message #68070] Mon, 21 September 2009 01:55 Go to previous messageGo to previous message
Prashanth is currently offline  Prashanth
Messages: 9
Registered: June 2009
Junior Member
Hello David,

The first part of the code goes like this

Pro ChangeView, file1,file2,file3

argsarray=command_line_args(count=nparams)

if nparams eq 3 then begin
file1=argsarray[0]
file2=argsarray[1]
file3=argsarray[2]
endif

if (nparams lt 3) then begin
file1 = DIALOG_PICKFILE(title='Select the first image')
file2 = DIALOG_PICKFILE(title='Select the second image')
file3 = DIALOG_PICKFILE(title='Select the change image')
endif

img1= read_envi_img(file1,lines=lines, samples=samples, bands=bands)
.
.
.

and I try to execute it using

idl -vm=changeview.sav -args "c:\june" "c:\october" "c:\june_oct"

This one opens the dialog window which means it is not recognizing the
input arguments. Is there something wrong with my procedure definition
"Pro changeview, file1,file2,file3" ?

Thank you
Prashanth

> An alternative explanation is that the variables
> are not set before you get to that part of the code.
> That seems entirely more likely to me. :-)
>
> The question really is, what are you *doing* with
> those parameters once you pick them up with
> Command_Line_Args? I'd guess, not putting them into
> your variables.
>
> 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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Breakpoints Missing in IDL 7.1?
Next Topic: Re: Sorting (big) int array: Eliminate for loop

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

Current Time: Wed Oct 08 19:25:57 PDT 2025

Total time taken to generate the page: 0.00405 seconds