Documentation for /Users/balarsen/Documents/idl/larsen/

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

./

interp2d_click.pro

topinterp2d_click

result = interp2d_click(data [, NOLINE=NOLINE] [, NPOINTS=NPOINTS] [, SILENT=SILENT])

Contour plot must be plotted with both /xstyle, /ystyle keywords set and don't try with a log scale, this could be added in the future as well

Return value

structure containing the position of the x-clicks, y-clicks, x values along the line, y values along the line, interpolated values along the cut

Parameters

data in required

data that is plotted on the contour plot in a manual step

Keywords

NOLINE in optional

do not oplot a line on the contoiur plot

NPOINTS in optional

number of points to plot along the cut

SILENT in optional

do not print out instructions

Examples

data = dist(100) loadct, 39, /sil x = (findgen(100))/5. + 20 y = (findgen(100))/10. + 125 window, 1 contour, data, x,y, /fill, nlevels=40, /xstyle, /ystyle ans = interp2d_click(data) window, 2 plot, ans.x, ans.INTERPOLATION

Author information

History:

Thu Oct 12 13:17:26 2006, Brian Larsen Fixed, this was really broken before Fri Sep 29 11:37:46 2006, Brian Larsen written and tested

Statistics

Lines: 65
McCabe complexity:

File attributes

Modifcation date: Tue Sep 9 14:13:49 2008
Lines: 126