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

Home » Public Forums » archive » Re: 2-d histogram and Routines of same name
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: 2-d histogram and Routines of same name [message #70991 is a reply to message #70990] Mon, 17 May 2010 05:57 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mrunmayee writes:

> Then I felt this is a histogram problem. So went to IDL's hist_2d
> which does what I want, but doesn't return reverse indices. But I did
> find hist_nd written byt David. This routine uses PRODUCT(.., /
> Preserve_Type). Unfortunately, idlastrolib ALSO contains the routine
> of the same name which DOESN'T use the keywords in IDL's routine. So I
> keep getting KEYWORD NOT ALLOWED error. My guess is that (becaue of
> various issues, I have to set my IDL_PATH such that) this other
> routine always get compiled first. When I have such a problem, of
> having two routines of same name doing things differently, I usually
> compile with full path. E.g
>
> .com /path/to/routine/I/want/routinename
>
> But I don't think there is any product.pro in IDL's libs. So my second
> problem is how do I tell IDL to use inbuilt function instead of user
> written when there is no .pro file associated with it?

Well, you are right, your first problem is a 2D
histogram problem. :-)

Your second problem is more worrisome. (And it is
JD Smith's routine, not mine. I just host it.) This
may truly be one of those problems that don't have
a good solution. Or, maybe I just haven't thought of
it yet.

If I just wanted to get on with my day, I'd probably
delete product.pro from the NASA library. It seems to
be a subset of the IDL routine, although there is no
question in my mind which was on the IDL scene first.

But I can absolutely see why this isn't a good long-term
solution. Maybe PRODUCT has been in IDL long enough now
that Wayne could safely remove it from the NASA Library.
I don't know. I'd like to hear what the principles
have to say about this.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDLWAVE idlwave-surround-by-by-blank
Next Topic: Re: x-y offsets

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

Current Time: Mon Oct 13 08:38:13 PDT 2025

Total time taken to generate the page: 0.23700 seconds