Supported File Formats
SeaSenseLib supports reading data from various oceanographic instruments and file formats. This page provides a complete reference of all supported format keys.
Format Keys Reference
Format keys can be used with ssl.read(filename, file_format='key') when automatic detection fails or you need to override the default reader choice.
Manufacturer |
Instrument |
File Extensions |
Format Key |
Description |
|---|---|---|---|---|
Anderaa |
RCM |
|
|
RCM MATLAB export format |
Generic |
CSV |
|
|
Comma-separated values format |
Generic |
NetCDF |
|
|
Network Common Data Form (CF-compliant) |
Nortek |
Aquadopp |
|
|
Nortek ASCII format (requires header file) |
Nortek |
Aquadopp |
|
|
Nortek AquaPro CSV export format |
Nortek |
Aquadopp, Aquadopp Gen2, Vector, AWAC |
|
|
Nortek raw binary files; Gen2 |
RBR |
Solo T |
|
|
RBR RSK native format (auto reader) |
RBR |
Solo T |
|
|
RBR RSK default reader |
RBR |
Solo T |
|
|
RBR RSK legacy format |
RBR |
TR1050 |
|
|
RBR MATLAB export format |
RBR |
TR1050 |
|
|
RBR MATLAB legacy format |
RBR |
TR1050 |
|
|
RBR MATLAB RSKtools export |
RBR |
Various |
|
|
RBR ASCII format |
RBR |
TR1050 |
|
|
RBR binary HEX format (explicit format key required) |
SeaBird |
SBE37 MicroCAT |
|
|
SeaBird CNV format (time series) |
SeaBird |
SBE37 MicroCAT |
|
|
SeaBird HEX format (time series) |
SeaBird |
SBE 911 |
|
|
SeaBird CNV format (CTD profiles) |
SeaBird |
SBE 911plus / 917plus |
|
|
SeaBird raw HEX (CTD profiles); the SBE 9 family is auto-detected from the |
SeaBird |
SBE16 Seacat |
|
|
SeaBird CNV format (CTD data) |
SeaBird |
SBE56 |
|
|
SeaBird CNV format (thermistor data) |
SeaBird |
Various |
|
|
SeaBird ASCII format |
Sea & Sun |
TOB |
|
|
Seasun TOB format |
Teledyne RDI |
ADCP |
|
|
ADCP MATLAB UHHDS format |
Teledyne RDI |
ADCP |
|
|
ADCP MATLAB RDADCP format |
Teledyne RDI |
ADCP |
|
|
RDI raw binary ADCP files |
Output Formats (Writers)
SeaSenseLib can write an xarray Dataset back out to several formats with ssl.write(dataset, filename, file_format='key').
Format |
Format Key |
File Extension |
|---|---|---|
NetCDF |
|
|
CSV |
|
|
Excel |
|
|
Plot Types (Plotters)
SeaSenseLib provides several plot types via ssl.plot(plotter_key, dataset, ...).
Plot Type |
Plotter Key |
|---|---|
Depth profile |
|
Time series |
|
T-S diagram |
|
Usage Examples
Automatic Detection (Recommended):
SeaSenseLib can automatically detect format for files with unique extensions:
import seasenselib as ssl
# Automatic detection for unique extensions
dataset = ssl.read('your_file.cnv') # SeaBird CNV files
dataset = ssl.read('your_file.hex') # SeaBird SBE37 HEX files
dataset = ssl.read('logger_data.rsk') # RBR RSK files (auto-selects modern/legacy)
dataset = ssl.read('grid_data.nc') # NetCDF files
dataset = ssl.read('sensor_data.csv') # CSV files
dataset = ssl.read('tob_data.tob') # Seasun TOB files
dataset = ssl.read('aquadopp.aqd') # Nortek raw files
Explicit Format Specification:
# When automatic detection fails
dataset = ssl.read('data.txt', file_format='sbe-ascii')
# For ambiguous extensions like .mat
rbr_data = ssl.read('logger_export.mat', file_format='rbr-matlab')
adcp_data = ssl.read('current_data.mat', file_format='adcp-matlab-uhhds')
# RBR HEX files also require an explicit key because .hex auto-detects
# as SeaBird SBE37 HEX
rbr_hex_data = ssl.read('logger.hex', file_format='rbr-hex')
Multi-file Formats:
# Nortek instruments require both data and header files
nortek_data = ssl.read('current_meter.dat',
file_format='nortek-ascii',
header_file='current_meter.hdr')
# Nortek AquaPro CSV exports use an explicit format key because .csv is
# also used by the generic CSV reader
nortek_csv_data = ssl.read('Average Velocity DF3.csv',
file_format='nortek-csv')
# Nortek raw Aquadopp, Vector and AWAC data is decoded by MHKiT DOLfYN
# (experimental)
nortek_raw_data = ssl.read('DS-FDA01.aqd',
file_format='nortek-raw')
# RDI raw ADCP data is decoded by MHKiT DOLfYN
rdi_data = ssl.read('DS2_2025_recovery.000',
file_format='rdi-raw',
nens=100)
# Automatic detection also works for supported RDI raw suffixes:
rdi_data = ssl.read('DS2_2025_recovery.000', nens=100)
For reader-specific interpretation notes, including conservative RDI raw ADCP mapping choices, see Reader Notes.
Format Detection Summary
Auto-detected formats (unique file extensions):
.cnv→sbe-cnv(SeaBird CNV files).hex→sbe-hex(SeaBird SBE37 and SBE 911plus/917plus HEX files).rsk→rbr-rsk(RBR RSK files - automatically selects modern/legacy reader).nc→netcdf(NetCDF files).csv→csv(CSV files).tob→seasun-tob(Sea & Sun TOB files).aqd/.VEC/.wpr→nortek-raw(Nortek raw binary files via MHKiT DOLfYN, experimental).000/.PD0/.ENR/.ENS/.ENX→rdi-raw(RDI raw ADCP files via MHKiT DOLfYN)
Requires explicit format keys (ambiguous extensions):
RBR
.hexfiles:rbr-hex(.hexotherwise auto-detects assbe-hex).matfiles:rbr-matlab,rcm-matlab,adcp-matlab-uhhds,adcp-matlab-rdadcp.txt/.datfiles:rbr-ascii,sbe-ascii,nortek-asciiNortek AquaPro
.csvexports:nortek-csv(.csvotherwise auto-detects as genericcsv)Multi-file formats:
nortek-ascii(requires both.datand.hdrfiles)
When to Use Format Keys
Use explicit format specification when:
Files have ambiguous extensions (e.g.,
.txt,.dat,.mat)You need to override the default reader choice
Working with multi-file formats like Nortek instruments
Auto-detection fails for any reason
Checking Available Formats
Use the command line to see all available readers:
seasenselib list readers
This will show you the current list of supported formats in your SeaSenseLib installation.