🌊 Processing framework for FOWD, a free ocean wave dataset, ready for your ML application.
After downloading the repository, you can install FOWD and all dependencies (preferably into a virtual environment) via:
$ pip install -r requirements.txt
$ pip install .After installing the Python code, you can use the command line tool fowd to create a FOWD dataset from a raw source.
The best supported source is CDIP buoy data:
$ fowd process-cdip 433p1 -o fowd-cdip-outwill process all CDIP data located in the 433p1 folder.
Raw data from the ubiquitous Datawell Waverider MK III (.raw and .spt files) can be processed into yearly netcdf files.
$ fowd prepare-buoy-data indir -o outdirThe output is then compatible with the main FOWD processing tool using:
$ fowd process-buoy-data indir -o outdirOne source of raw wave buoy data is the UK's Channel Coastal Observatory (CCO) real time data webpage (https://coastalmonitoring.org), this data can be programmatically downloaded using:
$ fowd download-cco out_folder station_metadata_pathUse
$ fowd process-generic infile.nc -o outdirGeneric inputs must be netCDF files with the following structure:
Variables:
- time
- displacement
Attributes:
- sampling_rate
- water_depth
- longitude
- latitude
All data processing writes QC information in JSON format. You can visualize records in that QC file by using
$ fowd plot-qc qcfile.jsonRun tests and sanity checks via
$ fowd run-testsTest results are checked automatically, but sanity checks have to be inspected manually.
This project is based on the original FOWD toolkit developed by Dion Häfner: https://github.com/dionhaefner/FOWD
This fork extends the toolkit with additional processing and data acquisition tools developed by Edward Roome.