> 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?
TRIANGLES takes the output of TRIANGULATE, not the output of GRIDDATA.