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

Home » Public Forums » archive » Re: project_vol() in IDL
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: project_vol() in IDL [message #11159] Thu, 26 February 1998 00:00
mgs is currently offline  mgs
Messages: 144
Registered: March 1995
Senior Member
In article <MPG.f5eaf06c86c1a8a989728@news.frii.com>, davidf@dfanning.com
(David Fanning) wrote:

> Grant W. Petty (gpetty@rain.atms.purdue.edu) writes:
>
>> Today's my first day using IDL and I must say...
>
> Sigh...
>
> My next book is going to be entitled How To Do Really, Really
> Hard Things on Your First Day Using IDL. I'm going to use
> examples I have collected from this newsgroup. :-)

I got to thinking about my first day with IDL. I was asked to develop an
application for viewing data from an upcoming satellite. New job, new
project, new reason for headaches.

...
>> command line history/editing/completion capabilities, a la the UNIX
>> tcsh shell. It's a pain to have to retype an entire lengthy command
>> from scratch when all I want to do is change one parameter!
>
> Now here is a question I *DO* know how to answer. :-)
>
> There should be no reason to re-type a lengthy command from
> scratch. IDL has a command "history" buffer that is accessible
> using the UP arrow key. Simply recalling the command and
> editing it before hitting the Carriage Return will do the
> job. The history buffer can be increased in size to more
> than the default 20 commands if need be.
...

There is also a FAQ for the newsgroup available at
http://ww2.sd.cybernex.net/~mgs/idl_faq.html

This is somewhat covered by topic T02.

--
Mike Schienle Interactive Visuals
mgs@sd.cybernex.net http://ww2.sd.cybernex.net/~mgs/
Re: project_vol() in IDL [message #11160 is a reply to message #11159] Thu, 26 February 1998 00:00 Go to previous message
mgs is currently offline  mgs
Messages: 144
Registered: March 1995
Senior Member
In article <MPG.f5eaf06c86c1a8a989728@news.frii.com>, davidf@dfanning.com
(David Fanning) wrote:

> Grant W. Petty (gpetty@rain.atms.purdue.edu) writes:
>
>> Today's my first day using IDL and I must say...
>
> Sigh...

Seems like the sales department has tapped into a new field.

...
>> command line history/editing/completion capabilities, a la the UNIX
>> tcsh shell. It's a pain to have to retype an entire lengthy command
>> from scratch when all I want to do is change one parameter!
>
> Now here is a question I *DO* know how to answer. :-)
>
> There should be no reason to re-type a lengthy command from
> scratch. IDL has a command "history" buffer that is accessible
> using the UP arrow key. Simply recalling the command and
> editing it before hitting the Carriage Return will do the
> job. The history buffer can be increased in size to more
> than the default 20 commands if need be.
...

There is also a FAQ for the group available at
http://ww2.sd.cybernex.net/~mgs/idl_faq.html

This is somewhat covered by topic T02.

--
Mike Schienle Interactive Visuals
mgs@sd.cybernex.net http://ww2.sd.cybernex.net/~mgs/
Re: project_vol() in IDL [message #11167 is a reply to message #11159] Thu, 26 February 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Grant W. Petty (gpetty@rain.atms.purdue.edu) writes:

> Just out of curiosity, is there a repository for user-contributed
> add-ons to IDL?

Many. For general purpose usefulness, however, I don't think
there are many better than Ray Sterner's site at Johns Hopkins
Applied Physics Lab:

http://fermi.jhuapl.edu/s1r/idl/s1rlib/local_idl.html

You can find other good sites by following the links from
my web page and many others.

> P.S. Did I mention that I highly recommend David Fanning's book?

The phone is hopping this morning! Thanks, Grant. :-)

Cheers,

David

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: project_vol() in IDL [message #11169 is a reply to message #11159] Thu, 26 February 1998 00:00 Go to previous message
gpetty is currently offline  gpetty
Messages: 7
Registered: June 1997
Junior Member
In article <MPG.f5eaf06c86c1a8a989728@news.frii.com>,
David Fanning <davidf@dfanning.com> wrote:
> Grant W. Petty (gpetty@rain.atms.purdue.edu) writes:
>
>> Today's my first day using IDL and I must say...
>
> Sigh...
>
> My next book is going to be entitled How To Do Really, Really
> Hard Things on Your First Day Using IDL. I'm going to use
> examples I have collected from this newsgroup. :-)

The fact that I was able to do even Moderately Hard Things, like 3-D
spatial filtering in frequency space, autocorrelation, volume
projection, shaded surface plots, etc. on my first day with IDL is
tribute both to the power and elegance of IDL (relative to what I'm
used to) and to the clarity of David's book. In the past, I would
have spent a couple solid weeks programming in FORTRAN and NCAR
Graphics to accomplish *half* of what I did yesterday alone...


>
>> However, I have already run into what seems to be an annoying
>> limitation in project_vol() and am wondering whether I'm just
>> overlooking something.
>

<snip>

> Here is my advice. Sounds like you want to do some fairly
> complex 3D kinds of things.

Actually, as far as Project_Vol() goes, I hadn't thought of my problem
as being all that complex -- all I need is a 2-D projection of my 3-D
data volume, but with the image representing sums rather than averages
of the data values along the ray. This is closer to the way we
actually see translucent structures.

But I'm now beginning to realize that this might not be as trivial a
difference (computationally speaking) as I had first thought. I'll
have to look at the source code (now that I know that it's accessible)
and see what I can do with it, if anything.

Just out of curiosity, is there a repository for user-contributed
add-ons to IDL?

<snip>

> object problem. I can get *almost* there, but not quite,
> and I end up doing "experiential programming" in which I
> make random changes in my programs, hoping beyond hope
> that something will start to make sense. I hate it.)

Sounds like my experience with some other complex and poorly
documented packages I have worked with over the past 12 years -- I
hate it too. It's partly for that reason that I didn't have the nerve
to delve into the official docmentation at all and waited instead for
David's book to come out before tackling IDL.

> The alternative is to look at the Project_Vol source code, which
> is written in IDL and is available in the lib subdirectory, and
> make the modifications to it yourself. This is probably not a
> first-day-with-IDL kind of a job, but I didn't think the source
> code looked impossibly hard, either.

Well, on my first-day-with-IDL, along with everything else, I
successfully generalized the dist() function from 2 to 3 dimensions
:-) . This is an important capability if you want to do 3-D Fourier
filtering; I'm glad RSI supplies source code for this reason.
But Project_Vol() is obviously going to be more complex.

>
>> P.S. As long as I'm posting to this NG, I might as well mention one
>> other suggested improvement to IDL that immediately comes to mind:
>> command line history/editing/completion capabilities, a la the UNIX
>> tcsh shell. It's a pain to have to retype an entire lengthy command
>> from scratch when all I want to do is change one parameter!
>
> Now here is a question I *DO* know how to answer. :-)
>
> There should be no reason to re-type a lengthy command from
> scratch. IDL has a command "history" buffer that is accessible
> using the UP arrow key. Simply recalling the command and
> editing it before hitting the Carriage Return will do the

Aha! This valuable information alone justified the effort of posting
my message! Maybe if I *had* spent a few minutes with the official
documentation, I would have found this.

Now if only RSI would add an option for EMACS-style command
line editing (a la tcsh), so that one wouldn't need to constantly
shift one's hands back and forth between the letters and the arrow
keys. (Yes, I can always find *something* to complain about!)

thanks,

Grant


P.S. Did I mention that I highly recommend David Fanning's book?

--
Grant W. Petty |Assoc. Prof., Atmospheric Science
Dept. of Earth & Atmospheric Sciences |Voice: (765)-494-2544
Purdue University, 1397 CIVL Bldg. |Fax: (765)-496-1210
West Lafayette, IN 47907-1397, USA |Email: gpetty@purdue.edu
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How much for new PV-WAVE package for Win95.
Next Topic: PRINT request for RSI

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

Current Time: Fri Oct 10 08:11:14 PDT 2025

Total time taken to generate the page: 0.32175 seconds