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

Home » Public Forums » archive » Re: matching coordinates
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: matching coordinates [message #55055] Mon, 30 July 2007 17:20 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Mon, 30 Jul 2007 11:12:23 +0000, jradavenport wrote:


>
> % HISTOGRAM: Illegal binsize or max/min.
>
> This is for the line:
> ;; Dual HISTOGRAM method, loop by repeat count in bins
> h2 = histogram(h[b],MIN=1,REVERSE_INDICES=ri2)
>
> Anybody have ideas who knows about Histogram?

That is due to an array of all zeroes being passed to HISTOGRAM, with
MIN=1. It seems that *none* of your bins had a match in it, which is
very likely an indication that you need a larger search radius.

I've rolled the original algorithm into the function MATCH_2D,
available here:

http://turtle.as.arizona.edu/idl/match_2d.pro

This version deals gracefully with the case of no search points in any
target point bin, and also returns -1 in all cases where no point was
found within the search radius (vs. returning a
close-but-not-necessarily-the-closest point).

In principle one could also write MATCH_ND, but the sensitivity to a
poorly chosen search_radius would become quite extreme in dimensions
higher than 2, as would the need to search 2^d adjacent bins.

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Runtime error woes
Next Topic: Path/Directory String

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

Current Time: Wed Oct 08 15:53:23 PDT 2025

Total time taken to generate the page: 0.00417 seconds