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

Home » Public Forums » archive » IDL Workbench Path Woes
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: IDL Workbench Path Woes [message #59586 is a reply to message #59339] Wed, 02 April 2008 10:21 Go to previous messageGo to previous message
Spon is currently offline  Spon
Messages: 178
Registered: September 2007
Senior Member
On Apr 2, 5:34 pm, David Fanning <n...@dfanning.com> wrote:
> Spon writes:
>> As I'm currently in the grip of evangelical fervour induced by a
>> re-reading of JD Smith's (in)famous oration -
>> http://www.dfanning.com/tips/forloops.html- I've discovered that you
>> can replace the FOR loop by using TRANSPOSE; like this:
>
>> Print, Transpose(StrSplit(!PATH, Path_Sep(/SEARCH_PATH), /Extract))
>
> JD, of course, is famous, but hardly anyone reads (well,
> finishes) his articles. I, on the other hand, am not
> famous at all, but a lot of people have read the nonsense
> I've written. The difference between us is the
> energy differential given off by the human brain when
> they read a line of code like that compared to my humble
> PrintPath program. :-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming (www.dfanning.com)
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Butbutbut...

theSeparator = Path_Sep(/SEARCH_PATH)
theStringArray = (!Path, theSeparator, /EXTRACT)
theStringColumnArray = Transpose(theStringArray)
Print, theStringColumnArray

...and suddenly you'd be hard pushed to spot JD's influence at all ;-)

I think you're selling yourself short, David!

Chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Path Problems Redux
Next Topic: something strange with MESH_VOLUME

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

Current Time: Sun Oct 12 06:21:20 PDT 2025

Total time taken to generate the page: 1.52088 seconds