Coastal-Imaging-Research-Network / cBathy-Toolbox

Routines needed to run cBathy + demos
https://github.com/Coastal-Imaging-Research-Network/cBathy-toolbox/wiki/cBathy-User-Manual
GNU General Public License v3.0
25 stars 23 forks source link

cbathyUpdates #21

Closed kvos closed 7 years ago

kvos commented 7 years ago

Pull request submitted on behalf of Prof. Rob Holman. Changes to Routines (Alphabetical):

  1. analyzeBathyCollect: Changes to calls to other subroutines. Mostly removing kappa0 and consolidating inputs into bathy structure

  2. analyzeSingleBathyRunFrommBW: my development wrapper for doing a single analysis from the cx mBW data file. Mostly adds the structure h0 to bathy. This is a reasonable guess at the climatological bathy. NOTE THAT analyzeSingleBathyRun.m should be similarly altered.

  3. argus02b: Settings file removes reference to kapp0 and removes decimation fields as obsolete. May be other things??

  4. csmInvertKAlpha: Lots of changes. Input arguments changed (I think). Passes in ALL pixels. Uses findsDominantfBs to find frequencies (line 55). Removes a lot of sub-sampling to tile and moves that to be frequency dependent in lines 73 to 79. Lines 125 – 128, has new methods to find seeds for nlinfit, particularly routine findAlpha0 to find seed angle of incidence. Note that the debug plotting of phase map tiles should now be changed to clear the figure if no results were returned for a frequency (versus leaving the previous plot on display).

  5. findAlpha0: new method to find seed angle of incidence. Takes are phase angles in phase map, interps to a regular grid then finds median to gradients in x and y and finds alpha0 from this.

  6. Extracts old code segment to find best fs using total coherence in tile of size Lx by Ly.

  7. Findh0Duck: Approx bathy routine for the example of Duck, so very site specific. Used bilinear approx., following Plant work. Set min depth (usually at 1.0 m). THIS SHOULD LIKELY BE HANDLED IN A MORE GENERAL WAY, PROBABLY IN THE SETTINGS FILE NEAR WHERE THE TIDE CALL IS SPECIFIED.

  8. spatialLimitBathy: Old code for extracting a frequency-dependent tile of pixels. Also takes care of seam problem (I think) by limiting seam pixels to coming only from one camera, the camera with the most pixels.

  9. subBathyProcess: Probably a wasted routine now since all spatialLimitBathy is now within csmInvertKAlpha. Only thing it really does now is plots the analysis location in debug mode. Should likely be combined back into analyzeBathyCollect.