-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.m
122 lines (115 loc) · 4.14 KB
/
start.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Add the paths of the different toolboxes
%
% Further Information:
% http://www.croco-ocean.org
%
% This file is part of CROCOTOOLS
%
% CROCOTOOLS 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; either version 2 of the License,
% or (at your option) any later version.
%
% CROCOTOOLS 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, write to the Free Software
% Foundation, Inc., 59 Temple Place, Suite 330, Boston,
% MA 02111-1307 USA
%
% Copyright (c) 2005-2006 by Patrick Marchesiello and Pierrick Penven
% e-mail:[email protected]
%
% Updated 10-Sep-2006 by Pierrick Penven
% Updated 22-Sep-2006 by Pierrick Penven (64 bits test)
% Updated 24-Oct-2006 by Pierrick Penven (mask added)
% Updated 16-jan-2007 by Pierrick Penven (quikscat added)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
disp(['Add the paths of the different toolboxes'])
tools_path='../croco_tools/';
croco_path='../croco/';
myutilpath=[tools_path,'UTILITIES/'];
%
% Other software directories
%
addpath([myutilpath,'m_map1.4h'])
addpath([myutilpath,'air_sea'])
addpath([myutilpath,'mask'])
%
% CROCOTOOLS directories
%
addpath([tools_path,'Aforc_CFSR'])
addpath([tools_path,'Aforc_ERA5'])
addpath([tools_path,'Aforc_ECMWF'])
addpath([tools_path,'Aforc_NCEP'])
addpath([tools_path,'Aforc_QuikSCAT'])
addpath([tools_path,'Diagnostic_tools'])
addpath([tools_path,'Forecast_tools'])
addpath([tools_path,'Nesting_tools'])
addpath([tools_path,'Preprocessing_tools'])
addpath([tools_path,'Preprocessing_tools/Bio'])
addpath([tools_path,'Oforc_OGCM'])
addpath([tools_path,'Tides'])
addpath([tools_path,'Tides/T_TIDE'])
addpath([tools_path,'Visualization_tools'])
addpath([tools_path,'Rivers'])
addpath([tools_path,'Town'])
%
%-------------------------------------------------------
%
% Get the path to the mexcdf (it depends on the architecture)
% Comment all these lines if you don't want to pass in these tests
!uname -m > .mysystem
fid=fopen('.mysystem');
mysystem=fscanf(fid,'%s');
if ( strcmp(mysystem(end-1:end),'86') )
mysystem2='32';
elseif ( strcmp(mysystem(end-1:end),'64') )
mysystem2='64';
end
fclose(fid);
matversion=version('-release');
myversion=str2num(matversion(1:2));
!rm -f .mysystem
disp(['Arch : ',mysystem,' - Matlab version : ',matversion])
if ((myversion > 13) )
disp(['Use of mexnc and loaddap in ',mysystem2,' bits.'])
addpath([myutilpath,'mexcdf/mexnc']) % 32 and 64 bits version of mexnc
%
% - If these directories are already in your matlab native path,
% you can comment these lines
addpath([myutilpath,'mexcdf/netcdf_toolbox/netcdf'])
addpath([myutilpath,'mexcdf/netcdf_toolbox/netcdf/ncsource'])
addpath([myutilpath,'mexcdf/netcdf_toolbox/netcdf/nctype'])
addpath([myutilpath,'mexcdf/netcdf_toolbox/netcdf/ncutility'])
%
% Use of built in opendap libraries (no loaddap) - S. Illig 2015
%
addpath([tools_path,'Opendap_tools_no_loaddap'])
%
%-------------------------------------------------------
elseif (myversion <= 13)
disp('Use of mex60 and loaddap in 32 bits.')
addpath([myutilpath,'mex60']) % Older/32 bits version of mexcdf
% - If these directories are already in your matlab native path,
% you can comment these lines
% - In this case, if problems with subsrefs.m ans subsasign.m,
% it is because there is a conflict with another native subs.m routines in the
% symbolic native toolbox
addpath([myutilpath,'netcdf_matlab_60'])
addpath([myutilpath,'netcdf_matlab_60/nctype'])
addpath([myutilpath,'netcdf_matlab_60/ncutility'])
%
% Use of loaddap (older versions of matlab)
%
addpath([tools_path,'Opendap_tools'])
else
disp(['Arch : ',mysystem,...
' you should provide the paths of your own loaddap and mexcdf directories'])
end