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

Home » Public Forums » archive » IDl triangulate-reg
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
IDl triangulate-reg [message #84646] Mon, 19 December 2011 01:52
shambhu is currently offline  shambhu
Messages: 41
Registered: December 2011
Member
Hi, i am trying to findout nearest point using griddata.

tr = GRIDDATA(lon, lat, f, /KRIGING, /DEGREES, START = 0, /SPHERE, $
DELTA = delta, DIMENSION = dims)

;QHULL, lon, m, tr, /DELAUNAY, SPHERE = s
z = GRIDDATA(lon,lat, f, /DEGREES, START = 0, DELTA = delta, $
DIMENSION = dims, /SPHERE, /NATURAL_NEIGHBOR, TRIANGLES = tr)

;MAP_SET, /MOLLWEIDE, /ISOTROPIC, /HORIZON, /GRID, /ADVANCE, $
; CHARSIZE = 3, TITLE = 'Sphere: Natural Neighbor'

CONTOUR, t, lon_grid, lat_grid, /OVERPLOT, NLEVELS = 5, /FOLLOW

I got following error.

IDL> ex_grid1
1 144 4 144
1 73 4 73
1 73 4 73
% GRIDDATA: Value of Triangle has duplicate indices is out of allowed
range.
% Execution halted at: EX_GRID1 44 /home2/shambhu/
ex_grid1.pro

Why this error?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Extending or resizing array in IDL
Next Topic: Re: Extending or resizing array in IDL

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

Current Time: Wed Oct 08 13:48:36 PDT 2025

Total time taken to generate the page: 0.00511 seconds