Oregon Inlet Wave Spectra - Columnar Format

The Sea-Bird Wave spectra files (columnar ASCII) have names based on deployment number and gage location - inlet (S=Shallow) and outside (D+Deep). For example, the spectra file for the inlet gauge on deployment 3 is OI_Spec_3S.txt. These files have been reformatted into columnar files for easy importation into spreadsheet programs or other analysis programs (e.g., Matlab or IDL).

The first line:

Column #

Description

1-5

have "1" as a place holder

6-7

Chi-Squared 90% lower and upper limit multipliers

8-43

frequency of each band



Subsequent lines:

Column #

Description

1-5

year, month, day, time (EST), epoch time (seconds since 1 Jan 1970)

6

Hmo (m)

7

Peak period (s), period of frequency bans with most energy

8-43

Auto-spectral density for each frequency (m2/Hz)



Note: spectral density is set to 'nan' for frequencies where the spectral amplification due to linear theory surface correction exceeds 100.





Example Matlab read of deployment #3 outer (Deep) gauge.

x = load('waveSpec_3D.txt');

time_t = x(:,5); % epoch time

chiLowD = x(1,6); % Chi-squared lower limit multiplier

chiUpD = x(1,7); % Chi-squared upper limit multiplier

freqs = x(1,8:end); % Frequencies

specD=x(2:end,8:end); % Spectra

hmoD=x(2:end,6); % Hmo

tpD=x(2:end,7); % peak period