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

Home » Public Forums » archive » Re: findfile on unix bug - help
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: findfile on unix bug - help [message #26924] Thu, 04 October 2001 13:48 Go to previous message
R.G.S. is currently offline  R.G.S.
Messages: 46
Registered: September 2000
Member
Steve Smith<steven_smith> <nobody@nowhere.com> wrote in message
news:slrn9rpi8q.v7j.nobody@pooh.nrel.gov...
> On Thu, 4 Oct 2001 13:43:43 -0600, R.G.S. <rgs1967@hotmail.com> wrote:
>> Hi,
>>
>>
>>
>> I have a problem running my code on a unix machine
>> (idlv5.4). The command is as follows:
>>
>>
>> files = findfile(subdirectory+'*.dat',count=num)
>
> On Linux and IDL 5.2, I do: result=findfile('subdirectory/*.dat') and it
> works fine, what's the "+" for anyways?


subdirectory is a string retrieved through an object method.

My variable is
subdirectory = '/data/ocean03/QSCAT-KU2001/DATA/'
Thus, subdirectory+'*.dat' = '/data/ocean03/QSCAT-KU2001/DATA/*.dat'
and then
files = findfile('/data/ocean03/QSCAT-KU2001/DATA/*.dat',count=num)
doesn't work (gives file list from current directory)
whereas
files = findfile('/data/ocean03/QSCAT-KU2001/DATA/*',count=num)
does give all the files (problem is that I only want *.dat files).



There are ~11,000 files in that folder. This isn't (?) a problem since the
command works with the file name part = '*' as opposed to '*.dat'.

Cheers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: the precision of PRINT and HELP statements
Next Topic: Re: Polygon filling oddities

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

Current Time: Fri Oct 10 12:56:17 PDT 2025

Total time taken to generate the page: 0.13050 seconds