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

Home » Public Forums » archive » CONTOUR and automatic gridding of irregularly spaced data
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 automatic gridding of irregularly spaced data [message #85036 is a reply to message #85034] Tue, 25 June 2013 05:03 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Karlo Janos writes:

> But the grid is spaced equally in longitudes and latitudes. It is not a
> real plot of the Voronoi cells based on the data coordinates.
>
> Can you suggest an approach?

I am not at all familiar with how the Contour function works, but how I
typically solve the "gap" problem is to just replicate the first
latitude column as the last column in both the latitude and data arrays.
This gives the direct graphics contour fill algorithm the information it
needs to close the contours over the gap. It also allows you to maintain
the irregular cell spacing of the original data.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: idl k-d tree implementation
Next Topic: Update stdout instead of writing new line

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

Current Time: Fri Oct 10 02:07:19 PDT 2025

Total time taken to generate the page: 1.12134 seconds