The data/ folder contains various datasets used for analysis:
.ncfiles downloaded from the CDIP website.csvfiles from THREDDS.npzfiles storing x, y, z values retrieved from THREDDS
The scripts/ folder includes the main, completed scripts for wave spectral analysis.
- Loads x, y, z data from a
.npzfile and generates 1D plots. - Requires output from
fetch_cdip_directional_example.py.
- Compares custom spectral calculations against CDIP’s precomputed data.
- Evaluates the accuracy of custom methods.
- Uses functions from
utils.pyto compute Fourier coefficients and energy densities. - Generates a polar plot of energy density for comparison with CDIP’s visual output.
The example_scripts/ folder contains work-in-progress or secondary scripts.
- Retrieves x, y, z variables from THREDDS and saves them in
.npzor optionally.csvformat. - Intended to be used with
xyz_spectrum.py.
- A simple script for testing access to the CDIP real-time dataset.
