Aquadopp (waves)
Data will generally be processed using a series of run scripts that use command line arguments. For AQD waves it’s a 3 step process.
Instrument data to raw .cdf
First, export data to text format using the AquaPro software and default options.
Convert from text to a raw netCDF file with .cdf
extension using runwvswad2cdf.py. This script
depends on two arguments, the global attribute file and extra configuration information configuration files.
runwvswad2cdf.py
Convert Aquadopp .wad wave files to raw .cdf format. Run this script from the directory containing Aquadopp files.
usage: runwvswad2cdf.py [-h] gatts config
Positional Arguments
- gatts
path to global attributes file (gatts formatted)
- config
path to instrument configuration file (YAML formatted)
Raw .cdf to CF-compliant .nc
Convert the raw .cdf data into an CF-compliant netCDF file with .nc extension, optionally including atmospheric correction of the pressure data.
runwvscdf2nc.py
Convert raw Aquadopp .cdf wave files to processed .nc files
usage: runwvscdf2nc.py [-h] [--atmpres ATMPRES] cdfname
Positional Arguments
- cdfname
raw .cdf filename
Named Arguments
- --atmpres
path to cdf file containing atmopsheric pressure data
Compute wave statistics
Using DIWASP: This is run separately in Matlab using the DIWASP toolbox (docs TODO).
Use stglib’s built-in wave-statistics toolbox to compute a wave-statistics file.
runwvsnc2waves.py
Generate waves statistics file
usage: runwvsnc2waves.py [-h] ncname
Positional Arguments
- ncname
processed .nc filename