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

Home » Public Forums » archive » Re: Return the name of the last (newest) file ?
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: Return the name of the last (newest) file ? [message #31673 is a reply to message #31672] Tue, 13 August 2002 10:09 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kolbjorn Bekkelund (kobe@rocketrange.no) writes:

> I'm modifying an old IDL-routine (under Linux and IDL 5.4), plotting some of our ozone lidar data.
> This has to be done manually today, but I'm working against an automation
> of this job now. The final stage here is to have IDL run by cron, finding the last
> (newest) file by itself and process it.
>
> Now I'm using this approach:
>
> FileTable=dialog_pickfile(/read, filter='/data/ozon/dialdata/ozon-online/*')
>
> which isn't very automatic :-)

No. :-)

I think you are going to have to use FindFile to
get your list of files. Then you are going to have
to sort the list. You DON'T want to use the IDL
SORT command to do that, since a unique sort order
is not guaranteed. Have a look at the BSORT
command from the NASA astronomy library. (Perhaps
someone could provide a link, I don't have it at
the moment.) With luck, that will be enough and you
won't have to resort to more aggressive string processing
techniques.

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Scrolling in draw widgets - newbie's question
Next Topic: Return the name of the last (newest) file ?

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

Current Time: Fri Oct 10 15:51:15 PDT 2025

Total time taken to generate the page: 2.07880 seconds