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

Home » Public Forums » archive » Re: help with findfile
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: help with findfile [message #25759] Wed, 11 July 2001 15:52 Go to next message
david[2] is currently offline  david[2]
Messages: 100
Registered: June 2001
Senior Member
Mark Hadfield writes:

> So here's another solution to your problem: convert your disk to NTFS.

Alas, I did this too. Now my Windows 2000 machine
cannot see my Windows 98 machine on the network.
Although my Window NT machine can see both. Sheesh... :-(

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: help with findfile [message #25762 is a reply to message #25759] Wed, 11 July 2001 15:34 Go to previous messageGo to next message
m.hadfield is currently offline  m.hadfield
Messages: 36
Registered: April 2001
Member
From: "David Miller" <dom@virl.gsfc.nasa.gov>
> I am using the FINDFILE routine to list all of the available data files in
a
> particular directory. I then search through the list to get starting and
> ending points for a particular image. However, the filenames returned by
> FINDFILE are not in order (alphabetical), they are all mixed up. Any way
to
> get them in order? I am using IDL 5.4 on Win 2000.

Since others have already responded with the correct solution (sort them!)
I'll just throw in a tangential $0.02c. Does anyone know what determines the
order of file listings returned by IDL on Windows? I could swear that when I
first installed IDL on Windows 2000, the file listings were consistently in
reverse alphabetical order. This applied to output from findfile and also to
the !PATH system variable (which caused me a small amount of grief until I
cleared out a few duplicate .pro files). I think it also applied to some
non-IDL utilities. I just went to check it again and I find everything in
forward alphabetical order! The only explanation I can think of is that I
converted my main hard disk from FAT32 to NTFS a week ago.

So here's another solution to your problem: convert your disk to NTFS. But
sorting the output from findfile is more reliable :-)

---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield
National Institute for Water and Atmospheric Research



--
Posted from clam.niwa.cri.nz [202.36.29.1]
via Mailgate.ORG Server - http://www.Mailgate.ORG
Re: help with findfile [message #25769 is a reply to message #25762] Wed, 11 July 2001 11:45 Go to previous messageGo to next message
David Miller is currently offline  David Miller
Messages: 7
Registered: October 1999
Junior Member
Craig,

Thanks, that works perfectly.

-Dave

"Craig Markwardt" <craigmnet@cow.physics.wisc.edu> wrote in message
news:on66czian5.fsf@cow.physics.wisc.edu...
>
> "David Miller" <dom@virl.gsfc.nasa.gov> writes:
>
>> I am using the FINDFILE routine to list all of the available data files
in a
>> particular directory. I then search through the list to get starting and
>> ending points for a particular image. However, the filenames returned by
>> FINDFILE are not in order (alphabetical), they are all mixed up. Any way
to
>> get them in order? I am using IDL 5.4 on Win 2000.
>
> Will the SORT command help? Ie,
>
> NAMES = NAMES(SORT(NAMES)))
>
> Craig
>
> --
> ------------------------------------------------------------ --------------
> Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
> Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
> ------------------------------------------------------------ --------------
Re: help with findfile [message #25770 is a reply to message #25769] Wed, 11 July 2001 11:27 Go to previous messageGo to next message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
"David Miller" <dom@virl.gsfc.nasa.gov> writes:

> I am using the FINDFILE routine to list all of the available data files in a
> particular directory. I then search through the list to get starting and
> ending points for a particular image. However, the filenames returned by
> FINDFILE are not in order (alphabetical), they are all mixed up. Any way to
> get them in order? I am using IDL 5.4 on Win 2000.

Will the SORT command help? Ie,

NAMES = NAMES(SORT(NAMES)))

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
Re: help with findfile [message #25772 is a reply to message #25770] Wed, 11 July 2001 11:22 Go to previous messageGo to next message
david[2] is currently offline  david[2]
Messages: 100
Registered: June 2001
Senior Member
David Miller writes:

> I am using the FINDFILE routine to list all of the available data files in a
> particular directory. I then search through the list to get starting and
> ending points for a particular image. However, the filenames returned by
> FINDFILE are not in order (alphabetical), they are all mixed up. Any way to
> get them in order? I am using IDL 5.4 on Win 2000.

Sort them.

files = Findfile('*.img')
sortedfiles = files(SORT(files))

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: help with findfile [message #25782 is a reply to message #25759] Tue, 17 July 2001 13:48 Go to previous messageGo to next message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
David Fanning wrote:

> Alas, I did this too. Now my Windows 2000 machine
> cannot see my Windows 98 machine on the network.
> Although my Window NT machine can see both. Sheesh... :-(

This is what you get when you work with inferior operating systems :-)
When you use the superior one (which, of course, is Mac OS), you don't
have to worry about these issues. You KNOW that you ain't gonna see
neither of the three, and just get your work done on one computer.

Cheers,
Pavel
Re: help with findfile [message #25860 is a reply to message #25782] Wed, 18 July 2001 10:02 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
"Pavel A. Romashkin" wrote:
>
> David Fanning wrote:
>
>> Alas, I did this too. Now my Windows 2000 machine
>> cannot see my Windows 98 machine on the network.
>> Although my Window NT machine can see both. Sheesh... :-(
>
> This is what you get when you work with inferior operating systems :-)
> When you use the superior one (which, of course, is Mac OS), you don't
> have to worry about these issues. You KNOW that you ain't gonna see
> neither of the three, and just get your work done on one computer.
>
> Cheers,
> Pavel

These OS are really young and you want or like to live with such
problems.
I am not more!

You should either think about using linux. The new suse7.2 distribution
is very comfortable. The konqueror browser and the filemanager are
very useful and well planned
And KWord saves tex files. At the moment it's not able to read tex
files.
But I believe MS Word is much more far away to use tex files as KWord.

The staroffice suite reads and writes all MS Format files. Why pay
expensive
MS licenses ?

And IDL - hm there is no wuidget builder in unix that's for me a problem
too.
I know the builder "QT Designer" by Trolltex but this is only for C.
But this shows me that it is not impossible to write such a tool for
linux.

At the moment for widget programming I start vmware windows and idl.


cheers

Reimar






cheers

Reimar



--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg1/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml

http://www.fz-juelich.de/zb/text/publikation/juel3786.html
============================================================ ======

read something about linux / windows
http://www.suse.de/de/news/hotnews/MS.html
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Huge datasets under Win2000
Next Topic: Variable name to string

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

Current Time: Wed Oct 08 13:17:42 PDT 2025

Total time taken to generate the page: 0.00677 seconds