Vector

Instrument orientation

Orientation in stglib refers to the probe head, whether pointing UP (sample volume above probe) or DOWN (sample volume below probe).

The orientation status code bit in the Vector data file refers to the direction of the z-axis, whether positive UP or down. For more information, see “The Comprehensive Manual - Velocimeters” available from Nortek.

The orientation variable (indicating the probe head orientation) in the config file is required and the user will be warned if it does not match what the instrument reports.

Instrument data to raw .cdf

First, export data from the Vector software to text format.

Convert from text to a raw netCDF file with .cdf extension using runvechdr2cdf.py. This script depends on two arguments, the global attribute file and extra configuration information configuration files.

runvecdat2cdf.py

Convert Vector text files to raw .cdf format. Run this script from the directory containing Vector files.

usage: runvecdat2cdf.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.

runveccdf2nc.py

Convert raw Vector .cdf format to processed .nc files, optionally compensating for atmospheric pressure

usage: runveccdf2nc.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

Use stglib’s built-in wave-statistics toolbox to compute a wave-statistics file.

Experimental PUV support is also present. Testing welcome!

runvecnc2waves.py

Generate Vector waves statistics file

usage: runvecnc2waves.py [-h] ncname

Positional Arguments

ncname

processed .nc filename