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

Home » Public Forums » archive » Re: Selecting odd/even numbered files
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: Selecting odd/even numbered files [message #30058 is a reply to message #29971] Wed, 03 April 2002 11:20 Go to previous message
Wayne Landsman is currently offline  Wayne Landsman
Messages: 117
Registered: January 1997
Senior Member
David Fanning wrote:

>
> Here is a little program that should do what you want it to
> do:
>

A minor footnote to the little program: In IDL V5.3 or later, the 5 lines

numbers = IntArr(N_Elements(files))
FOR j=0,N_Elements(files)-1 DO BEGIN
stringpart = StrMid(files[j], 5, 3)
numbers[j] = Fix(stringpart)
ENDFOR

can be replaced by the single vectorized line:

numbers = fix(strmid(files,5,3))

--Wayne Landsman landsman@mpb.gsfc.nasa.gov
[Message index]
 
Read Message
Read Message
Previous Topic: Re: analyze reader and writer in IDL?
Next Topic: Selecting odd/even numbered files

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

Current Time: Wed Oct 08 14:12:12 PDT 2025

Total time taken to generate the page: 0.00203 seconds