SonTek IQ

For data exploration purposes, stglib supports reading the .mat file exported from the SonTek IQ software into an xarray Dataset using read_iq().

Data will generally be processed using a series of run scripts. The first script for each instrument type depends on two configuration files.

IQ-exported Matlab file to raw .cdf

First, export .mat files from the instrument software.

Convert from exported .mat to a raw netCDF file with .cdf extension using runiqmat2cdf.py.

runiqmat2cdf.py

Convert SonTek IQ .mat file to raw .cdf format. Run this script from the directory containing IQ file.

usage: runiqmat2cdf.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 using runiqcdf2nc.py.

runiqcdf2nc.py

Convert raw SonTek IQ .cdf format to processed .nc files

usage: runiqcdf2nc.py [-h] cdfname

Positional Arguments

cdfname

raw .cdf filename