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

Home » Public Forums » archive » Experience with TRIGRID?
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
Experience with TRIGRID? [message #1393] Fri, 08 October 1993 06:44
manizade is currently offline  manizade
Messages: 9
Registered: October 1993
Junior Member
I have tried using the TRIGRID procedure on a Sun using both IDL
3.0 and 3.1 with disappointing results. The simple example in
the IDL Basics book worked fine; when I used my own data the
"interpolation" produced odd values in the output (e.g. spikes),
particularly at the boundaries of the triangular regions. The
problem is worse when the number of points in the interpolation
grid is increased.

For example I called trigrid three ways and looked at the min
and max of the output:
triangulate,xvec,yvec,tr,boundary,repeats=reps
t=trigrid(xvec,yvec,zvec,tr,/smooth)
tt =trigrid(xvec,yvec,zvec,tr)
ttt=trigrid(xvec,yvec,zvec,tr,grid_spc,grid_win); <--{ 250x250grid

raw data yvec min & max : 0.0560000 0.598000
smth grid t min & max : -0.112013 0.760076
lin grid tt min & max : -1.00000 0.652344
large grid ttt min & max : -2.82153 1.00781

Obviously a linear interpolation should not produce values
outside of the input value range.

I have since written a program to sidestep trigrid by using
triangulate and polyshade, which produces a 2-D image I can
manipulate. But I would rather work with the interpolated 3-D
data that trigrid is supposed to produce.

Can anyone please provide some insight into what TRIGRID is
doing? Has anyone encountered bugs? Are there restrictions that
are not documented in the IDL Help?

Thanks in advance for any ideas.

--
Mr. Serdar S. Manizade <manizade@aol3.wff.nasa.gov>
Airborne Oceanographic Lidar Project
NASA/GSFC/Wallops Flight Facility, Wallops Island, VA
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL memory limits
Next Topic: Unpleasant "feature" in WRITE_PICT routine

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

Current Time: Sun Oct 12 12:13:22 PDT 2025

Total time taken to generate the page: 2.23907 seconds