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

Home » Public Forums » archive » Re: Variable sized bins in histogram, or find a bounding lat/lon box
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: Variable sized bins in histogram, or find a bounding lat/lon box [message #53451] Thu, 12 April 2007 12:28 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Wed, 11 Apr 2007 09:49:52 -0700, Matt wrote:

> On Apr 11, 10:13 am, Paolo Grigis <pgri...@astro.phys.ethz.ch> wrote:
>> Because the grid is orthogonal and sorted, you could try
>>
>> res1=value_locate(lats,target_lats)
>> res2=value_locate(lons,target_lons)
>>
>> IDL> print,res1,res2
>> 0 3 2
>> 4 2 4
>>
>> Is that what you need?
>
> Wow, it's easy to find that solution now that I know the keyword
> "value_locate". That was incredibly helpful and exactly what I
> needed. I
> just grepped my entire library of idl programs and I've never once
> used that
> routine. Now that I've got a hammer, maybe everything will look like
> a nail?

Yep, value_locate is what you want. Histogram works only with fixed bin
sizes, so you'd have to resort to rescaling either the bins or the data
points non homogenously to make the match.

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: May anyone share his IDLwave configuration file with me ?
Next Topic: idl segfaults in FC5

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

Current Time: Wed Oct 08 15:36:26 PDT 2025

Total time taken to generate the page: 0.00377 seconds