3.1.5. Tools to access ADCP data¶
Note
A scientist with an existing UHDAS dataset who wants to use Matlab to access the ADCP data should look here
The following mechanisms exist for directly accessing data (into a program)
The CODAS database can only be accessed with Python (direct read) or executables (read and write to disk). Matlab access to the data means reading
*.mat
files or netCDF files.Binary raw ADCP data can be accessed by both Matlab and Python.
Useful data products are scattered througout the UHDAS cruise directory, in the individual sonar processing directories, eg. vg0810/proc/os75nb in these locations:
data |
files to use |
every bin and every profile (matlab) |
|
coarse resolution averaged ocean velocity |
|
moderate resolution averaged ocean velocity |
|
every bin and every profile (netCDF) |
|
every bin and every profile (CODAS database) |
|
figures from the cruise |
|
data source
what you get
python program
matlab program
C-code executable or Python script (extract to disk)
UHDAS
*.raw
beam coords singleping, no navigation
NA
UHDAS
*.raw
earth coords singleping with navigation, with heading
NA
NA
VmDAS
*.ENR
beam coords singleping no navigation, no heading
NA
VmDAS
*.ENS
beam coords singleping with navigation, no heading
NA
VmDAS
*.ENX
earth coords singleping with navigation, with heading
NA
- VmDAS
*.STA
,
*.LTA
earth coords averaged
NA
CODAS database
matlab files
earth coordinates: (further averaged) time, lon, lat ocean velocities
NA
NA
(extract files to disk)
contour_xy.mat
,contour_uv.mat
CODAS database
matlab files
earth coordinates: time, lon, lat ocean velocities (CODAS avg, eg 5min)
download
load_getmat.m
here (load the files created by getmat)(extract to disk)
allbins*.m
read with load_getmat.mCODAS database
netCDF file
earth coordinates: time, lon, lat ocean velocities (CODAS avg, eg 5min)
(extract netCDF file to disk)
Although we are not actively using or devloping Matlab programs, we will ensure that the programs for reading CODAS Matlab output and raw RDI data files continue to work.
Most popular:
- Matlab access to data CODAS database:
matlab files (use load_getmat.m to load
allbins_*.mat
) from the CODAS processing directory. (see file description)netCDF file (load the netCDF file into matlab)
Other useful tools:
Python:
CODAS database: (every bin, every profile - eg. 5min averages) – read data with get_profiles)
read raw ADCP data (
ENR
,*.raw
) with Multireadextract netCDF file with adcp_nc.py
Matlab:
read raw data (
*.raw
, or VmDAS output*.LTA
,*.STA
,*.ENR
)extract matlab files from CODAS database:
getmat (all bins and all profiles from a CODAS database, eg 5-min averages)
adcpsect (getting time, velocities, and positions from a codas database, typically with further averaging, eg. 15min or 1hour). See adcpsect file description.
HOWTO extract netCDF file:
extract using command-line tool adcp_nc.py (see netCDF file contents).