These scripts and packages are used to fetch wave and track data. They contain signal processing routines for integrating to displacement and calculating spectral statistics like significant wave height. You need to set up a environment with the dependencies and then install this package. Below is the recommended way to do this.
Set up and install the environment using e.g. conda (conda-forge) or mamba
(conda
replacement).
Install the processing scripts using e.g.:
$ cd sfy-processing/
$ mamba env create -f ../environment.yml # or use `conda`.
$ conda activate sfy
$ pip install -e .
Specify the server and read-token in environment variables, e.g. in .bashrc
:
export SFY_SERVER='https://wavebug.met.no'
export SFY_READ_TOKEN='secret' # replace with the actual token
export SFY_DATA_CACHE='/tmp/sfy-cache'
with the conda environment activate try it out with:
sfydata list
Use sfydata --help
or --help
on subcommands to discover which arguments and
options exists.
sfydata track csv bug52
sfydata axl ts bug52 --file bug52.nc
For more options see:
sfydata axl ts bug52 --help