**Input
File
**

PCSpec reads initialization data
from a file named PCSpec.DAT containing one line with six constants
separated by commas. These
constants are:

1.
Maximum factor to use for compensation of water column attenuation.

2.
Nominal distance from the sea floor to the pressure and current
meter sensors (in meters). For a MacroSpec/620, this is 1 m.

3.
Frequency cut-off above which all spectral bins are set to zero.

4.
Output type as explained below.

5.
Number of direction bins. This
should be greater than zero if using a MacroSpec, and zero for all other
Macroinstruments.

6.
Constant to convert from units of psi to units of water depth.
This constant should include the specific gravity of water, e.g. to
get mks units in standard sea water, the constant is 0.72416 assuming a
specific gravity of 1.03. Note
that the PCSpec energy units will be m^{2}s.

The three output options are as
follows:

"0"
- Only summary statistics are printed, such as significant wave height,
peak period, etc.

"1"
- Summary statistics and the unidirectional discrete spectra are printed
for 32 frequency bins. If the
specified number of direction bins is greater than five, then the output
also includes the directional spreading coefficients for each frequency
bin. The coefficients can be
used to generate the discrete direction spectra, D(f,q),
using equation 1.

"2"
- Summary statistics and the entire discrete directional spectra are
printed for specified number of direction bins and 32 frequency bins.

__Equ. 1:__
D(f,q)
= p / 2 S(f) / C_{5} (1 + 2 A cos (p
/ 2 - q - y_{1
}) + 2 B cos (p - 2q
- y_{2
}))

__where:__
y_{1}
= tan-1 (C_{2} / C_{1 });
y_{2} = tan - 1 (C_{4}
/ C_{3 })

A = Ö(C_{1}^{2}
+ C_{2}^{2 });
B = Ö(C_{3}^{2}
+ C_{4}^{2 })

and the C_{i} (i =
1...5) are given in the out put file for each frequency bin, S(f) is the
discrete 1-D spectra for frequency bin f, and q
is the compass heading.