Home > hfrc > matlab > @HFRC > m_ginput.m

m_ginput

PURPOSE ^

M_GINPUT - find indices of points of interest.

SYNOPSIS ^

function [I, lon, lat, d] = m_ginput(h, n)

DESCRIPTION ^

 M_GINPUT - find indices of points of interest.

 This function is like the original m_ginput in that it looks for a certain
 number of points on a graph, with the exception that it assumes that
 the points are on a basemap and instead of returning the real
 coordinates of the point selected, it returns the indice and perhaps
 the coordinates of the nearest grid point to the point selected.

 Usage: [ indice, lon, lat, dist ] = ginput( hfrc_obj, n_pts )

 If n_pts is left off, an unlimited number of points will be read until
 return is pressed.

 This function breaks down if the hfrc_obj has two grid points and the
 number of points selected has two grid points.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

     $Id: m_ginput.m,v 1.1 2006-06-26 21:44:43 dmk Exp $    

 Copyright (C) 2001 David M. Kaplan
 Licence: GPL

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 18-Dec-2006 07:26:46 by m2html © 2003