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 #70989 is a reply to message #70988] Mon, 17 May 2010 07:58 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 5/17/10 6:57 AM, David Fanning wrote:
> 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.

It seems that PRODUCT is a built-in, not .pro code or in a DLM. So I
made my own PRODUCT routine, but couldn't get IDL to ever use it, even
if I manually compiled it. IDL always found the built-in PRODUCT first
and used it. Maybe this was different in older versions of IDL? The docs
say PRODUCT was introduced in IDL 5.6, but I only have access back to
IDL 6.4 where it still seems to be a built-in.

Mike
--
www.michaelgalloy.com
Research Mathematician
Tech-X Corporation
[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: Sat Nov 29 20:25:11 PST 2025

Total time taken to generate the page: 0.00252 seconds