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

Home » Public Forums » archive » Duplicate lat/long points
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: Duplicate lat/long points [message #64863 is a reply to message #64779] Wed, 21 January 2009 07:14 Go to previous messageGo to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Jan 20, 8:57 am, hethomas <het...@googlemail.com> wrote:
> Thank you all for your responses -  I am still trying to get the
> histogram method working, but have come up with a temporary working
> solution using UNIQ and running it over two FOR loops.
> James  - my problem wasn't as complicated as yours, as all my points
> are the same precision, so that identical points are truly exactly the
> same.  Thanks for sharing your method though.  May be useful later! (I
> can't easily move to R as I am using IDL coupled with ENVI for
> satellite data work . . .)
>
> Helen

How about turning each (lat,lon) pair into a single unique index?
Since the latitudes are bounded by (-90,+90) the following mapping
function should work:

onedcoord = (lats+90) + 200*lons

You can then just run onedcoord through sort and uniq and just use one
for loop (or probably none if you're clever enough...).

-Jeremy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FLOAT images instead of BYTE ones from IDL Object graphics ?
Next Topic: BAR_PLOT with pairs of bars

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

Current Time: Thu Oct 09 14:58:46 PDT 2025

Total time taken to generate the page: 1.75970 seconds