CONFIGBASESTATIONS Configure basestation parameters for glider data processing. Syntax: BASESTATIONS = CONFIGBASESTATIONS() Description: BASESTATIONS = CONFIGBASESTATIONS() should return a struct array with the access parameters for the basestations containing Seaglider glider data, as needed by the function GETBASESTATIONFILES. Notes: Edit this file filling in the parameters of your basestations. Once configured, this file will contain private data, so you should not make it public. Examples: basestations = configBasestations() See also: GETBASESTATIONFILES Authors: Joan Pau Beltran <joanpau.beltran@socib.cat>
0001 function basestations = configBasestations() 0002 %CONFIGBASESTATIONS Configure basestation parameters for glider data processing. 0003 % 0004 % Syntax: 0005 % BASESTATIONS = CONFIGBASESTATIONS() 0006 % 0007 % Description: 0008 % BASESTATIONS = CONFIGBASESTATIONS() should return a struct array with the 0009 % access parameters for the basestations containing Seaglider glider data, as 0010 % needed by the function GETBASESTATIONFILES. 0011 % 0012 % Notes: 0013 % Edit this file filling in the parameters of your basestations. 0014 % Once configured, this file will contain private data, so you should not 0015 % make it public. 0016 % 0017 % Examples: 0018 % basestations = configBasestations() 0019 % 0020 % See also: 0021 % GETBASESTATIONFILES 0022 % 0023 % Authors: 0024 % Joan Pau Beltran <joanpau.beltran@socib.cat> 0025 0026 % Copyright (C) 2014-2016 0027 % ICTS SOCIB - Servei d'observacio i prediccio costaner de les Illes Balears 0028 % <http://www.socib.es> 0029 % 0030 % This program is free software: you can redistribute it and/or modify 0031 % it under the terms of the GNU General Public License as published by 0032 % the Free Software Foundation, either version 3 of the License, or 0033 % (at your option) any later version. 0034 % 0035 % This program is distributed in the hope that it will be useful, 0036 % but WITHOUT ANY WARRANTY; without even the implied warranty of 0037 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0038 % GNU General Public License for more details. 0039 % 0040 % You should have received a copy of the GNU General Public License 0041 % along with this program. If not, see <http://www.gnu.org/licenses/>. 0042 0043 error(nargchk(0, 0, nargin, 'struct')); 0044 0045 basestations(1).url = 'http://mybasestation01.myportal.mydomain'; 0046 basestations(1).user = 'myself'; 0047 basestations(1).pass = 'top_secret'; 0048 0049 basestations(2).url = 'http://mybasestation02.myportal.mydomain'; 0050 basestations(2).user = 'myself'; 0051 basestations(2).conn = @sftp; 0052 0053 end