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

democBathy error #59

Closed tgcarver closed 2 years ago

tgcarver commented 4 years ago

Hello all, I receive an error in democbathy.m from the cbathy-toolbox-master:

Index exceeds the number of array elements (19).

Error in analyzeBathyCollect (line 55) str = [bathy.sName(16:21) ', ' bathy.sName(36:39) ', ' bathy.sName([23 24 26 27])];

Error in analyzeSingleBathyRunNotCIL (line 33) bathy = analyzeBathyCollect(xyz, t, data, cam, bathy);

Error in democBathy (line 10) bathy = analyzeSingleBathyRunNotCIL(stackName, stationStr);

RobHolman commented 4 years ago

That line is simply a label that gets used if you are in debug mode to indicate what time stack you are running. It is designed to work with standard Argus filename conventions, which it appears that you aren’t using.

Modify the line to work with whatever naming convention you are using in bathy.sName. Simplest might be to say: str = bathy.sName;

YHS…Rob

Rob Holman SECNAV/CNO Chair in Oceanography

104 Ocean Admin Bldg. CEOAS-OSU Corvallis, Oregon, USA 97331-5503 ph: 1-541-737-2914 holman@coas.oregonstate.edu http://cil-www.coas.oregonstate.edu

On Jun 17, 2020, at 11:07 AM, Trevor Carver notifications@github.com wrote:

Hello all, I receive an error in democbathy.m from the cbathy-toolbox-master:

Index exceeds the number of array elements (19).

Error in analyzeBathyCollect (line 55) str = [bathy.sName(16:21) ', ' bathy.sName(36:39) ', ' bathy.sName([23 24 26 27])];

Error in analyzeSingleBathyRunNotCIL (line 33) bathy = analyzeBathyCollect(xyz, t, data, cam, bathy);

Error in democBathy (line 10) bathy = analyzeSingleBathyRunNotCIL(stackName, stationStr);

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.