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

Home » Public Forums » archive » Re: Newbie needs help...
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: Newbie needs help... [message #23223 is a reply to message #23125] Thu, 11 January 2001 06:45 Go to previous messageGo to previous message
Paul van Delst is currently offline  Paul van Delst
Messages: 364
Registered: March 1997
Senior Member
Bruce Bowler wrote:
>
> David Fanning wrote:
>>
>> Bruce Bowler (bbowler@bigelow.org) writes:
>>
>>> I'm willing to try this "thinking outside the box" thing for a while,
>>> but I can't see the box.
>>
>> There is no box. (But see more on spiritual development, below.)
>
> Then what did I trip over last night on my way to the
> toil<del><del><del><del>reading room?
>
> Fortunately, I think I landed on the outside, and I didn't hurt
> myself...
>
> As I hit the ground, I realized that displaying the data and extracting
> the data value at some lat/lon are 2 entirely different processes. I
> can use Liam's image_map to display it and came up with clever (but as
> yet untested) way to extract the data.
>
> Given a target lat/lon and BHAlat and BHAlon, how about (in pseudo-code)
>
> possiblelats = where(BHAlat eq lat{+/- some epsilon})
> possiblelons = where(BHAlon eq lon{+/- some epsilon})
> possiblevalues = intersection(possiblelats,possiblelons)
>
> if number of possiblevalues is between 1 and 10, printout the data
> otherwise adjust epsilon either up or down and try again.
>
> Does that sound like it ought to work (and in some time less than a
> glacial epoch) ?
>
> Bruce

It seems to me that the problem is one where the transformation from array lat/lon to map lat/lon
(for viewing as a contiguous eye-candy type of image) is linear, but the reverse is decidedly
non-linear. Your nearest neighbour search above seems like a workable solution since your
referencing the original lat/lon array.

paulv

--
Paul van Delst A little learning is a dangerous thing;
CIMSS @ NOAA/NCEP Drink deep, or taste not the Pierian spring;
Ph: (301) 763-8000 x7274 There shallow draughts intoxicate the brain,
Fax: (301) 763-8545 And drinking largely sobers us again.
Email: pvandelst@ncep.noaa.gov Alexander Pope.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL compatibility
Next Topic: Tickmarks and ticklabels

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

Current Time: Sat Oct 11 20:55:17 PDT 2025

Total time taken to generate the page: 1.43767 seconds