Re: Help from UNIX IDL 7.1 Users [message #67651 is a reply to message #67648] |
Wed, 19 August 2009 10:25   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Mike writes:
> I think that the include-the-path-in-the-Selection-box behavior has
> been there for a long time - at least since 5.4. I've always treated
> it as an annoying platform-dependence rather than a bug.
Well, you are probably younger than I am. :-)
> I tried your example on 5.4, 6.3, 7.0 and 7.1
>
> theDirectory = '/disks/arctic6_raid/fanning/june_2007_162/mod09/'
> theFile = 'channel_4_mosaic.png'
> selectedFile = Dialog_Pickfile(FILE=theFile, PATH=theDirectory)
>
>
> The dialogs look like this:
>
> http://mypage.iu.edu/~mmiller3/IDL/dialog_pickfile-5.4.png
>
> http://mypage.iu.edu/~mmiller3/IDL/dialog_pickfile-6.3.png
>
> http://mypage.iu.edu/~mmiller3/IDL/dialog_pickfile-7.0.png
>
> http://mypage.iu.edu/~mmiller3/IDL/dialog_pickfile-7.1.png
>
>
> and the return value for your example is '/disks/arctic6_raid/fanning/
> june_2007_162/mod09/channel_4_mosaic.png' with IDL 5.4, 6.3, 7.0, 7.1:
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.
--
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.")
|
|
|