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

mindist

PURPOSE ^

MINDIST - Finds HFRC grid points closest to a series of given points

SYNOPSIS ^

function [d,I] = mindist( h, pts )

DESCRIPTION ^

 MINDIST - Finds HFRC grid points closest to a series of given points
 and the distance to those grid points.

 Usage: [dist,I] = mindist( hfrc_obj, pts )

 I are the indices of the closest grid points. hfrc_obj.totalGrid(I,:)
 will give the coordinates of the closest points.

 This function will assume the pts are in the same units as the grid of
 the HFRC object.  If the HFRC object is in lon,lat, the appropriate
 transformation will be made to kms.

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

     $Id: mindist.m,v 1.1 2004-09-08 03:31:13 dmk Exp $    

 Copyright (C) 2004 David M. Kaplan
 Licence: GPL (Gnu Public License)

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

CROSS-REFERENCE INFORMATION ^

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