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

Home » Public Forums » archive » Re: contour and 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: contour and points [message #76715] Wed, 29 June 2011 04:43 Go to previous message
Andy Heaps is currently offline  Andy Heaps
Messages: 22
Registered: March 2006
Junior Member
Hi Gray,
as Wox says you need to check what the value is at that point. If
you don't have a value for the point in question i.e. it isn't one of
the grid points you used for cgcontour then you'll have to do some
interpolation to find the value at that point.

A user of mine came to me with a similar problem: how do I find
whether a point is inside a country outline? Her example was Norway. I
suggested that she plots the points by number and sees which points are
within the outline of Norway. As she was just using one set of points
and one country this is easier to do by eye. If you have multiple
countries and/or grid points to check this method is too laborious. For
the generalised case I'd open a Z buffer image plot, plot and fill the
country and then check whether your point was the filled colour or
background colour.

Cheers
Andy





On 28/06/11 11:10, Gray wrote:
> Hi all,
>
> What's the easiest/best way to determine which of a set of points is
> inside a contour (created with cgcontour)? Thanks!
>
> --Gray
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: map_continents and /fill... revisited
Next Topic: Having trouble reading MRDFITS files

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

Current Time: Fri Oct 10 00:59:50 PDT 2025

Total time taken to generate the page: 0.48048 seconds