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

Home » Public Forums » archive » Re: IDl triangulate-reg
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: IDl triangulate-reg [message #78794] Mon, 19 December 2011 10:16
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On 12/19/11 4:52 AM, shambhu wrote:
> 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.

-Jeremy.
[Message index]
 
Read Message
Previous Topic: Re: Extending or resizing array in IDL
Next Topic: Finding nearest grid point-reg

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

Current Time: Wed Oct 08 17:25:41 PDT 2025

Total time taken to generate the page: 0.00455 seconds