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 #53455 is a reply to message #53451] Thu, 12 April 2007 06:59 Go to previous messageGo to previous message
yp is currently offline  yp
Messages: 42
Registered: February 2005
Member
On Apr 11, 5:49 pm, "Matt" <sav...@nsidc.org> 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?
>
> Thanks so much.
>
> Matt
>
> --
> Matthew Savoie - Scientific Programmer
> National Snow and Ice Data Center
> (303) 735-0785 http://nsidc.org

Be aware that lats, lons must be monotonically increasing/decreasing
vectors in this case!
[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 19:29:27 PDT 2025

Total time taken to generate the page: 0.00444 seconds