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 #85034 is a reply to message #85024] Tue, 25 June 2013 00:12 Go to previous messageGo to previous message
Karlo Janos is currently offline  Karlo Janos
Messages: 31
Registered: July 2008
Member
> Let's just say you are not the first to be thrown upon the shoals of
> disappointment. ;-)
>
> Cheers,
>
> David
>
> P.S. What's wrong with gridding the data yourself? God knows, if you do,
> it is one less thing to go wrong.
>

Thanks for your encouraging reply. ;-)
Well, what I _really_ want is a cell filled CONTOUR plot of the coloured
Voronoi cells which result from the (manual or automatic) gridding.
Apparently I have failed to use QHULL properly.

The following code avoids the gap between -180° and +180°:

rresult = SPH_SCAT( lons, lats, data, BOUNDS=[-180., -90., 180., 90.],
GS=[360./N_lons, 180./N_lats] )

cc = CONTOUR( rresult $
, DINDGEN(N_lons+1)/N_lons*360-180 $
, DINDGEN(N_lats+1)/N_lats*180-90 $
, /FILL $
, GRID_UNITS=2 $
)


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?

Thanks and regards

Karlo
[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: Wed Oct 08 19:35:32 PDT 2025

Total time taken to generate the page: 0.00494 seconds