Tri_Surf Help [message #66203] |
Tue, 21 April 2009 15:55 |
plim.dreaming
Messages: 22 Registered: February 2008
|
Junior Member |
|
|
Greetings Avid IDL'ers,
I'm having a very frustrating issue with Tri_Surf, the program used to
fit a smooth surface to a set of regularly or irregularly points.
I obtain the surface:
smoothN = 100
surface = tri_surf(rho,x,y,nx=smoothN,ny=smoothN,/linear)
then i set some coordinates for the output:
smoothx - findgen(smoothN)*(ABS(max(x) - min(x)) / (smoothN-1)
likewise for smoothy
then I contour plot these:
contour, surface, smoothx, smoothy
The difficulty I am having is in being able to overplot the same
points used to create the surface, because these no longer match up
with the location of the contour levels.
I actually compare the contour of the surface to a contour plot made
simply using
contour, rho, x, y, triangulation=tri
and I can see that the smoothed surface is not to the same scale and
doesn't line up, the plots don't match up. It looks like the smoothed
surface has been stretched in x and y relative to where the original
points show up.
I'm floundering here, any ideas would be sooo helpful!
P
|
|
|