Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Help from UNIX IDL 7.1 Users
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
David Fanning  
View profile  
 More options Aug 18 2009, 7:17 pm
Newsgroups: comp.lang.idl-pvwave
From: David Fanning <n...@dfanning.com>
Date: Tue, 18 Aug 2009 17:17:19 -0600
Local: Tues, Aug 18 2009 7:17 pm
Subject: Help from UNIX IDL 7.1 Users
Folks,

I am looking for someone running a UNIX version of
IDL 7.1 to confirm that the problem described in
this article dealing with Dialog_Pickfile has
been fixed.

   http://www.dfanning.com/fileio_tips/unixpickfile.html

Specifically, if you specify both a file name and
a path when you call Dialog_Pickfile, and then do
nothing else except hit the Accept button, the file name
that is returned has two paths appended to it and is
bogus.

I am interested in what is in the Selection box,
and what is returned.

I am, say we say, dubious. :-)

Thanks,

David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pp  
View profile  
 More options Aug 18 2009, 10:26 pm
Newsgroups: comp.lang.idl-pvwave
From: pp <pp.pente...@gmail.com>
Date: Tue, 18 Aug 2009 19:26:02 -0700 (PDT)
Local: Tues, Aug 18 2009 10:26 pm
Subject: Re: Help from UNIX IDL 7.1 Users
On Aug 18, 8:17 pm, David Fanning <n...@dfanning.com> wrote:

In IDL 7.1 in Linux, I see the path with the file appended to it in
the selection box, and the return value when I just accept it is
correct.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike  
View profile  
 More options Aug 19 2009, 12:56 pm
Newsgroups: comp.lang.idl-pvwave
From: Mike <michael.mill...@gmail.com>
Date: Wed, 19 Aug 2009 09:56:31 -0700 (PDT)
Local: Wed, Aug 19 2009 12:56 pm
Subject: Re: Help from UNIX IDL 7.1 Users

On Aug 18, 7:17 pm, David Fanning <n...@dfanning.com> wrote:

> I am interested in what is in the Selection box,
> and what is returned.

Hi David,

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.

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:

IDL>  help, !version, /structure
** Structure !VERSION, 7 tags, length=44:
   ARCH            STRING    'x86'
   OS              STRING    'linux'
   OS_FAMILY       STRING    'unix'
   RELEASE         STRING    '5.4'
   BUILD_DATE      STRING    'Sep 25 2000'
   MEMORY_BITS     INT             32
   FILE_OFFSET_BITS

IDL> help, !version, /structure
** Structure !VERSION, 8 tags, length=104, data length=100:
   ARCH            STRING    'x86_64'
   OS              STRING    'linux'
   OS_FAMILY       STRING    'unix'
   OS_NAME         STRING    'linux'
   RELEASE         STRING    '6.3'
   BUILD_DATE      STRING    'Mar 23 2006'
   MEMORY_BITS     INT             64
   FILE_OFFSET_BITS
                   INT             64

IDL> help, !version, /structure
** Structure !VERSION, 8 tags, length=76, data length=76:
   ARCH            STRING    'x86'
   OS              STRING    'linux'
   OS_FAMILY       STRING    'unix'
   OS_NAME         STRING    'linux'
   RELEASE         STRING    '7.0'
   BUILD_DATE      STRING    'Oct 25 2007'
   MEMORY_BITS     INT             32
   FILE_OFFSET_BITS
                   INT             64
IDL> help, !version, /structure
** Structure !VERSION, 8 tags, length=76, data length=76:
   ARCH            STRING    'x86'
   OS              STRING    'linux'
   OS_FAMILY       STRING    'unix'
   OS_NAME         STRING    'linux'
   RELEASE         STRING    '7.1'
   BUILD_DATE      STRING    'Apr 21 2009'
   MEMORY_BITS     INT             32
   FILE_OFFSET_BITS
                   INT             64

Mike


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Fanning  
View profile  
 More options Aug 19 2009, 1:25 pm
Newsgroups: comp.lang.idl-pvwave
From: David Fanning <n...@dfanning.com>
Date: Wed, 19 Aug 2009 11:25:22 -0600
Local: Wed, Aug 19 2009 1:25 pm
Subject: Re: Help from UNIX IDL 7.1 Users

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. :-)

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.")


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pp  
View profile  
 More options Aug 19 2009, 3:35 pm
Newsgroups: comp.lang.idl-pvwave
From: pp <pp.pente...@gmail.com>
Date: Wed, 19 Aug 2009 12:35:06 -0700 (PDT)
Local: Wed, Aug 19 2009 3:35 pm
Subject: Re: Help from UNIX IDL 7.1 Users
On Aug 19, 2:25 pm, David Fanning <n...@dfanning.com> wrote:

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike  
View profile  
 More options Aug 20 2009, 10:23 am
Newsgroups: comp.lang.idl-pvwave
From: Mike <michael.mill...@gmail.com>
Date: Thu, 20 Aug 2009 07:23:44 -0700 (PDT)
Local: Thurs, Aug 20 2009 10:23 am
Subject: Re: Help from UNIX IDL 7.1 Users
On Aug 19, 1:25 pm, David Fanning <n...@dfanning.com> wrote:

> Well, you are probably younger than I am. :-)

Maybe - plus I'm used to oddities in the unix/linux and unused to the
idea that a software company might actually act on bug reports.

Either way, you inspire me to heights of idealism and usefulness in
the world.  :-)

> 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.

Except for the inexplicable expansion to my username, instead of
yours, I saw the same result:

IDL> dir = '~/IDL/coyote'
IDL> file = 'fsc_surface.pro'
IDL> Print, Dialog_Pickfile(FILE=file, PATH=dir)
/home/mmiller3/IDL/coyote/~/IDL/coyote/fsc_surface.pro

Interesting that we both have ~/IDL/coyote directories ;-)

Mike

IDL> help, !version, /structure
** Structure !VERSION, 8 tags, length=76, data length=76:
   ARCH            STRING    'x86'
   OS              STRING    'linux'
   OS_FAMILY       STRING    'unix'
   OS_NAME         STRING    'linux'
   RELEASE         STRING    '7.1'
   BUILD_DATE      STRING    'Apr 21 2009'
   MEMORY_BITS     INT             32
   FILE_OFFSET_BITS
                   INT             64


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Fanning  
View profile  
 More options Aug 20 2009, 11:35 am
Newsgroups: comp.lang.idl-pvwave
From: David Fanning <n...@dfanning.com>
Date: Thu, 20 Aug 2009 09:35:40 -0600
Local: Thurs, Aug 20 2009 11:35 am
Subject: Re: Help from UNIX IDL 7.1 Users

Mike writes:
> Maybe - plus I'm used to oddities in the unix/linux and unused to the
> idea that a software company might actually act on bug reports.

Well, given the amount of effort I had to go to
to even convince anyone there might be a *problem*,
let alone a bug, I wouldn't put too much hope in
a rapid solution. (Shouldn't technical support people
be *required* to read the e-mails we send them!)

> Either way, you inspire me to heights of idealism and usefulness in
> the world.  :-)

We all need more hope. Lord knows there is a deficiency
in the world!

Cheers,

David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruce Bowler  
View profile  
 More options Aug 20 2009, 1:12 pm
Newsgroups: comp.lang.idl-pvwave
From: Bruce Bowler <bbow...@bigelow.org>
Date: 20 Aug 2009 17:12:21 GMT
Local: Thurs, Aug 20 2009 1:12 pm
Subject: Re: Help from UNIX IDL 7.1 Users

On Wed, 19 Aug 2009 11:25:22 -0600, David Fanning wrote:
> 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.

I'm sure coyote noticed this, but file_search has an option to
        /expand_tilde.

Perhaps that could be used in some manor or fashion to solve the problem
"graciously" (like beating ITTVIS over the head :-)

Bruce


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yaswant Pradhan  
View profile  
 More options Aug 25 2009, 10:01 am
Newsgroups: comp.lang.idl-pvwave
From: Yaswant Pradhan <yaswant.prad...@gmail.com>
Date: Tue, 25 Aug 2009 07:01:21 -0700 (PDT)
Local: Tues, Aug 25 2009 10:01 am
Subject: Re: Help from UNIX IDL 7.1 Users
I had encountered with this bug a while ago on Red Hat release 4.  The
way around to this was to use EXPAND_PATH() function.
IDL> theDirectory = EXPAND_PATH('~/IDL/coyote/')
IDL> theFile = 'fsc_surface.pro'
IDL> selectedFile = Dialog_Pickfile(FILE=theFile, PATH=theDirectory)

The file selection box still doesn't look right; as you said it
doesn't look right, but it acts right.

On Aug 19, 12:17 am, David Fanning <n...@dfanning.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »