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

griddatan

PURPOSE ^

GRIDDATAN - Grid and interpolate data.

SYNOPSIS ^

function h = griddatan( h, all, mt2, tg, varargin )

DESCRIPTION ^

 GRIDDATAN - Grid and interpolate data.

 This function is basically a wrapper for the normal griddatan.

 Usage: hfrc_obj = griddatan( hfrc_obj, grid_all, matlab_time, totalGrid, method )

 where grid_all is a boolean that states whether or not to apply griddatan
 to all relevant variables - if false, griddatan is only applied to U and
 V, and variables like U_error are simply set to all zeros (sparse(m,n)
 where (m,n) are the dimensions of the new hfrc object created).

 grid_all can also be a string, in which case the function returns just the
 variable of interest and not an HFRC object.

 matlab_time and totalGrid are the new time and spatial coordinates of
 the HFRC object to be generated.  

 method is described in griddatan.

 The actual interpolation is all done in kms to avoid any problems with
 uneven dimensions.

 In the end, if the original object was sparse, all NaN's in the result
 will be replaced by 0's and the result will be sparsed.  If the
 original was full, nothing will be done.

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

     $Id: griddatan.m,v 1.3 2002-12-18 02:04:07 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