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

Home » Public Forums » archive » Re: Help from UNIX IDL 7.1 Users
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: Help from UNIX IDL 7.1 Users [message #67648 is a reply to message #67641] Wed, 19 August 2009 12:35 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Aug 19, 2:25 pm, David Fanning <n...@dfanning.com> wrote:
> Well, that is interesting. My test case was actually different from
> the case I wrote in the article. My test case was this:
>
>    IDL> dir = '~/IDL/coyote'
>    IDL> file = 'fsc_surface.pro'
>    IDL> Print, Dialog_Pickfile(FILE=file, PATH=dir)
>         /home/fanning/IDL/coyote/~/IDL/coyote/fsc_suface.pro
>
> Which is obviously wrong. So maybe it is just a bug in
> how wildcards are handled. Anyway, it sure looks and feels
> like a bug to me. :-)
>
> Cheers,
>
> David
>
> P.S. Can you check the test case above in IDL 7.1 and let me
> know what you see? It will probably help with my report to
> ITTVIS. You will probably have to substitute your own
> directories for mine.
>

Indeed, it messes up the result when there is a wildcard in the path:

IDL> dir='~/idl'
IDL> file='readcube.pro'
IDL> print,dialog_pickfile(file=file,path=dir)
/home/penteado/idl/~/idl/readcube.pro

When I tested it before I had used an absolute path, and that was
returned correctly:

IDL> dir='/home/penteado/idl'
IDL> print,dialog_pickfile(file=file,path=dir)
/home/penteado/idl/readcube.pro

But it also messes it up with a relative path:

IDL> cd,'/home/penteado'
IDL> dir='idl'
IDL> print,dialog_pickfile(file=file,path=dir)
/home/penteado/idl/idl/readcube.pro

Though with other flavours of relative paths the results are ugly-
looking but valid:

IDL> dir='./idl'
IDL> print,dialog_pickfile(file=file,path=dir)
/home/penteado/./idl/readcube.pro

IDL> dir='../penteado/idl'
IDL> print,dialog_pickfile(file=file,path=dir)
/home/penteado/../penteado/idl/readcube.pro
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: [IDL 6.2 with ENVI 4.2] is-it possible to extract multiple profiles on multiple images from shape files
Next Topic: Re: is-it possible to extract multiple profiles on multiple images from shape files

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

Current Time: Sat Oct 11 19:59:16 PDT 2025

Total time taken to generate the page: 1.36139 seconds