CODAS+UHDAS Documentation


Previous topic

CODAS processing stages

Next topic

Python compatibility note

This Page OverviewΒΆ is a Python script that runs the usual CODAS processing steps in a predictable and configurable manner. For a clean dataset, it provides a relatively quick and painless way of looking at the data, addressing configuration issues, and editing. If your dataset has problems, you can always run the appropriate steps manually.

Setup of a processing directory should use can deal with many combinations of data acquisition, averaging (or not) and instrument, as long as the processing directory was set up with See this table for information about which kind of ADCP data are supported.

At its operational level, CODAS processing consists of a series of C programs or matlab programs that interact with the CODAS database or with files on the disk. C programs usually deal with the database directly, by loading data (eg. ldcodas), extracting data (eg. adcpsect) or by manipulating the database (eg. rotate, putnav, dbupdate). Python programs are used to maniplate files on the disk so C programs can use them. In the past, Matlab was used to perform these manipulations. is designed to work through the standard processing steps with a standard protocol. For each processing step,

  1. Change directories to the appropriate subdirectory (for that task)
  2. Write a file with information for the program that is about to run
  3. Run a program that reads the file, and performs the processing task.

Two kinds of programs might run for processing. Their files are:

  • for C programs (executables), a control file ending in .tmp
  • for Python, a file ending in

In order to process data, a set of supporting programs must be installed. This includes Python, various supporting packages, and the actual C, Python, and Matlab programs that make up the CODAS suite. The shell (eg. bash, or Command Prompt) must know how to find the appropriate programs, requiring various environment variables to be set. Once the computer is set up, the general procedure is:

  1. pick a working area for your processing (not in the CODAS installation directory–that is reserved for UH code)
  2. run with the appropriate options
  3. locate your data files, determine the appropriate switches for
  4. write a control file for with the information to process your dataset. (eg. control file is q_py.cnt)
  5. run Arguments can be typed on the command line or stored in a control file (accessed with --cntfile q_py.cnt). Commandline options override control file options.
  6. more steps follow to complete the processing


Always run from the root processing directory (the directory created by “”)

Command-line help for is shown here