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

interpT

PURPOSE ^

INTERPT - Temporal interpolation of radar data.

SYNOPSIS ^

function hc = interpT( hc, interp_all, tt, gd, varargin )

DESCRIPTION ^

 INTERPT - Temporal interpolation of radar data.

 This function interpolates the data in an HFRC object at arbitrary
 times.

 Usage: res = interpT( hfrc_obj, interp_all, times, good_data, ... )

 res depends on interp_all.  If interp_all is 0, then only U and V will
 be interpolated at the given times and the resulting HFRC object will
 be returned.  If interp_all is 1, then all relevant variables will be
 interpolated and the resulting HFRC object will be returned.

 If interp_all is a string, it is assumed to be the name of an HFRC
 variable and that element is interpolated and just that variable is
 returned.

 good_data is the minimum decimal percent good data needed for
 interpretation to be worthwhile - default is 0.3.  If percent good data
 at a grid point is less than this value, a column of NaN's (or 0 if the
 variables are sparse) will be returned. 

 ... represents arguments to be passed directly to interp1, such as the
 method, extrapolation value, etc.  See interp1 for more details.

 This function leaves sparse things sparse and full things full.  It is
 probable that you will want to apply fullHFRC after this function to
 reduce storage space.

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

     $Id: interpT.m,v 1.17 2005-05-25 19:25:09 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