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) |
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 |
SeaBird |
SBE37 MicroCAT |
|
|
SeaBird CNV format (time series) |
SeaBird |
SBE 911 |
|
|
SeaBird CNV format (CTD profiles) |
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 |
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('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
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')
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')
Format Detection Summary
Auto-detected formats (unique file extensions):
.cnv→sbe-cnv(SeaBird CNV 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)
Requires explicit format keys (ambiguous extensions):
.matfiles:rbr-matlab,rcm-matlab,adcp-matlab-uhhds,adcp-matlab-rdadcp.txt/.datfiles:rbr-ascii,sbe-ascii,nortek-asciiMulti-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.