configDockservers

PURPOSE ^

CONFIGDOCKSERVERS Configure dockserver parameters for glider data processing.

SYNOPSIS ^

function dockservers = configDockservers()

DESCRIPTION ^

CONFIGDOCKSERVERS  Configure dockserver parameters for glider data processing.

  Syntax:
    DOCKSERVERS = CONFIGDOCKSERVERS()

  Description:
    DOCKSERVERS = CONFIGDOCKSERVERS() should return a struct array with the
    access parameters for the dockservers containing Slocum glider data, as
    needed by the function GETDOCKSERVERFILES.

  Notes:
    Edit this file filling in the parameters of your dockservers.
    Once configured, this file will contain private data, so you should not
    make it public.

  Examples:
    dockservers = configDockservers()

  See also:
    GETDOCKSERVERFILES

  Authors:
    Joan Pau Beltran  <joanpau.beltran@socib.cat>

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

configDockservers.m

SOURCE CODE ^

0001 function dockservers = configDockservers()
0002 %CONFIGDOCKSERVERS  Configure dockserver parameters for glider data processing.
0003 %
0004 %  Syntax:
0005 %    DOCKSERVERS = CONFIGDOCKSERVERS()
0006 %
0007 %  Description:
0008 %    DOCKSERVERS = CONFIGDOCKSERVERS() should return a struct array with the
0009 %    access parameters for the dockservers containing Slocum glider data, as
0010 %    needed by the function GETDOCKSERVERFILES.
0011 %
0012 %  Notes:
0013 %    Edit this file filling in the parameters of your dockservers.
0014 %    Once configured, this file will contain private data, so you should not
0015 %    make it public.
0016 %
0017 %  Examples:
0018 %    dockservers = configDockservers()
0019 %
0020 %  See also:
0021 %    GETDOCKSERVERFILES
0022 %
0023 %  Authors:
0024 %    Joan Pau Beltran  <joanpau.beltran@socib.cat>
0025 
0026 %  Copyright (C) 2013-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   dockservers(1).url  = 'http://mydockserver01.myportal.mydomain';
0046   dockservers(1).user = 'myself';
0047   dockservers(1).pass = 'top_secret';
0048 
0049   dockservers(2).url  = 'http://mydockserver02.myportal.mydomain';
0050   dockservers(2).user = 'myself';
0051   dockservers(2).conn = @sftp;
0052 
0053 end

Generated on Fri 06-Oct-2017 10:47:42 by m2html © 2005