From c6837555527d23a95de6f5de8e24bdbb97e3de93 Mon Sep 17 00:00:00 2001 From: John Stanley Date: Thu, 7 Dec 2017 18:12:26 -0800 Subject: [PATCH] Add version number function and version to bathy struct --- analyzeBathyCollect.m | 2 ++ cBathyVersion.m | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 cBathyVersion.m diff --git a/analyzeBathyCollect.m b/analyzeBathyCollect.m index 9118d72..27da8e8 100644 --- a/analyzeBathyCollect.m +++ b/analyzeBathyCollect.m @@ -110,6 +110,8 @@ bathy = fixBathyTide(bathy); +bathy.version = cBathyVersion(); + %if ((exist(bathy.params.tideFunction) == 2)) % existing function % try % foo = parseFilename(bathy.sName); diff --git a/cBathyVersion.m b/cBathyVersion.m new file mode 100644 index 0000000..a4a22e3 --- /dev/null +++ b/cBathyVersion.m @@ -0,0 +1,33 @@ +function version = cBathyVersion() + +% version = cBathyVersion(); +% +% return the version number of cBathy, to be saved with the cBathy +% struct. + +version = 1.1; + +% +% Copyright (C) 2017 Coastal Imaging Research Network +% and Oregon State University + +% This program is free software: you can redistribute it and/or +% modify it under the terms of the GNU General Public License as +% published by the Free Software Foundation, version 3 of the +% License. + +% This program is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. + +% You should have received a copy of the GNU General Public License +% along with this program. If not, see +% . + +% CIRN: https://coastal-imaging-research-network.github.io/ +% CIL: http://cil-www.coas.oregonstate.edu +% +%key cBathy +% +