GRIDDATA - Grid and interpolate spatial data. This function is basically a wrapper for the normal griddata. Usage: hfrc_obj = griddata( hfrc_obj, grid_all, XI, YI, pc, method ) [hfrc_obj, XI, YI] = griddata( hfrc_obj, grid_all, XI, YI, pc, method ) where grid_all is a boolean that states whether or not to apply griddata to all spatial variables - if false, griddata is only applied to U and V, and variables like NumRadials 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 a HFRC object. XI and YI are best explained in the griddata help - they should be longitude and latitude, respectively. They can be matrices or vectors. If one is a row and the other is a column, then the interpolation will be over a grid. If both are rows or both are columns, then interpolation will be over the points given. pc is the minimum spatial percent coverage that is required for interpolation to be performed on a given map. Defaults to 0.3. For maps that have less than this percent, the corresponding interpolated map will be all NaN's. method is described in griddata. The function returns an HFRC object that has prod(size(XI)) grid points, where XI is X component of the grid used. They are returned in the correct order so that reshape( U, [m n] ) will get back the grid if a grid was given. The actual gridding 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: griddata.m,v 1.13 2003-05-15 03:35:51 dmk Exp $ Copyright (C) 2001 David M. Kaplan Licence: GPL %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

- end END - basic end method for HFRC objects.
- gooddata GOODDATA - returns a matrix of good data in object.
- griddata GRIDDATA - Grid and interpolate spatial data.
- isnan ISNAN - returns position of any NaN data in either U or V.
- length LENGTH - returns number of times in HFRC object.
- lonlat2km LONLAT2KM - Converts dimensions of totalGrid to kms from lon,lat
- matvars MATVARS
- mean MEAN - mean of a field in an HFRC object
- size SIZE - returns [ (num times), (num gridpts) ].
- sparseHFRC SPARSEHFRC - turns full matrices to sparses.

- diff DIFF - This function tries to differentiate the variables in
- griddata GRIDDATA - Grid and interpolate spatial data.
- griddata_fill GRIDDATA_FILL - Use griddata to replace missing data with spatially
- griddatan GRIDDATAN - Grid and interpolate data.
- particle_track PARTICLE_TRACK - track the movement of one or more particles.
- particle_track_2nd PARTICLE_TRACK_2D - track the movement of one or more particles using a
- particle_track_2nd_largeGrid PARTICLE_TRACK_2D_LARGEGRID - track the movement of one or more particles

Generated on Mon 18-Dec-2006 07:26:46 by