Home > hfrc > matlab > utility > map_error.m

map_error

PURPOSE ^

MAP_ERROR - calculates mapping error for a given set of radial sites

SYNOPSIS ^

function [uerr,verr] = map_error( rs, tg, varargin )

DESCRIPTION ^

 MAP_ERROR - calculates mapping error for a given set of radial sites
 and a given number of radials at each site.

 Usage: [uerr,verr] = map_error( radSitePositions, totalGrid, n1, n2 ... )

 where radSitePositions is a Nx2 matrix with the longitude and latitude
 of the N radial sites.  totalGrid is a Mx2 matrix with the longitude
 and latitude of the M total vector grid points.

 n1 and n2 are the number of radials at sites 1 and 2 for each grid point
 and time step (ie. as would be contained in radial_nums in a HFRC object).
 ... represents more sites - there should be the same number of sites
 are there are radSitePositions (ie. n1, n2, ..., nN).

 NOTE: This algorithm could be quite off for grid points very close to
 radial site as it assumes original radials were located exactly at the
 grid point, which is insignificant far away from radial site, but could be
 quite large close to the radar.  This is at best an estimate of the
 original mapping error.

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

     $Id: map_error.m,v 1.2 2003-04-02 01:00:45 dmk Exp $    

 Copyright (C) 2002 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