Skip to content

cBathy Algorithm

Shawn Harrison edited this page Mar 25, 2017 · 10 revisions

The heart of cBathy is the determination of accurate wavenumbers for a number of candidate frequencies supplied by the user in the settings file. The settings m-file creates a variable structure called ‘params’ that contains all the user-controllable options for any analysis. The terms settings and params will be used interchangeably in this text.

The determination of wavenumbers is carried out at an array of analysis points [xm, ym] that are also user supplied. From these results, depths can be estimated using equation (1). The algorithm works in three phases and the results are stored in a bathy MATLAB structure that also has three major components (one for each phase). Details of the three algorithm phases are contained in HPH13 and won’t be described. Instead, the design of the sampling array, the details of the bathy structure, information about the process error, details of the settings file, and details about running parallel code and debugging will be described in the following sections:

  1. Sampling Array
  2. The bathy structure
  3. The fDependent Sub-structure
  4. The fCombined Sub-structure
  5. The runningAverage Sub-structure
  6. The Process Error
  7. The Settings File
  8. Parallel code
  9. Debugging
  10. Phase 1 Debugging
  11. Phase 2 Debugging
  12. Phase 3 Debugging