Home > hfrc > matlab > utility > format2read.m

format2read

PURPOSE ^

FORMAT4READ - read format 2 CODAR total vector files

SYNOPSIS ^

function [data, date, orig, h] = format2read( fn, s )

DESCRIPTION ^

 FORMAT4READ - read format 2 CODAR total vector files

 Usage: [data, date, origin, header] = format2read( filename, structure )

 filename should be a string filename.  structure is a boolean: if true,
 returns a structure with data instead of a matrix.  Default is a structure.

 This function will attempt to add longitude and latitude (in that order)
 to data using km2lonlat.m

 NOTE: If you read the function in as a matrix, it tends to have extra
 columns.  These columns are full of zeros and seem to be the result of
 a problem with textread.

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

     $Id: format2read.m,v 1.3 2003-04-02 01:00:45 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