-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathstartup.m
68 lines (59 loc) · 2.75 KB
/
startup.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
function startup
% startup -- User script configuration for Matlab. It can set default
% paths, define Handle Graphics defaults, or predefine
% variables in your workspace.
%
% NOTES:
%
% * The 'seagrid' GUI is deprecated. It only works for Matlab version
% R2017a or lower.
%
% * The OpenDAP support for NetCDF files residing in remote web servers
% is available for Matlab version R2012a or higher in the native NetCDF
% interface.
%
% * The IODA conversion script from ROMS native 4D-Var to JEDI's IODA
% format only works for Matlab version R2022b or higher because it
% uses variable type NC_STRING (NetCDF4 files only).
%
% * We highly recommend that Users define the ROMS_ROOT_DIR variable in
% their computer shell logging environment, specifying where the User
% cloned/downloaded the ROMS source code, Test Cases, and Matlab
% processing software:
%
% setenv ROMS_ROOT_DIR MyDownlodLocationDirectory
% svn $Id$
%=========================================================================%
% Copyright (c) 2002-2025 The ROMS Group %
% Licensed under a MIT/X style license %
% See License_ROMS.md Hernan G. Arango %
%=========================================================================%
% Set miscelaneous parameters.
global IPRINT
IPRINT=0;
format long g
v = version('-release');
vyear = str2num(v(1:4));
% Change "my_root" to the appropriate path were these matlab scripts are
% installed in your computer.
my_root = getenv('ROMS_ROOT_DIR');
path(path, fullfile(my_root, 'roms_matlab', '4dvar', ''))
path(path, fullfile(my_root, 'roms_matlab', 'bathymetry', ''))
path(path, fullfile(my_root, 'roms_matlab', 'boundary', ''))
path(path, fullfile(my_root, 'roms_matlab', 'coastlines', ''))
path(path, fullfile(my_root, 'roms_matlab', 'colormaps', ''))
path(path, fullfile(my_root, 'roms_matlab', 'coupling', ''))
path(path, fullfile(my_root, 'roms_matlab', 'forcing', ''))
path(path, fullfile(my_root, 'roms_matlab', 'grid', ''))
path(path, fullfile(my_root, 'roms_matlab', 'initial', ''))
path(path, fullfile(my_root, 'roms_matlab', 'ioda', ''))
path(path, fullfile(my_root, 'roms_matlab', 'landmask', ''))
path(path, fullfile(my_root, 'roms_matlab', 'm_map', ''))
path(path, fullfile(my_root, 'roms_matlab', 'mex', ''))
path(path, fullfile(my_root, 'roms_matlab', 'netcdf', ''))
path(path, fullfile(my_root, 'roms_matlab', 'seagrid', ''))
path(path, fullfile(my_root, 'roms_matlab', 'seagrid', 'presto', ''))
path(path, fullfile(my_root, 'roms_matlab', 'seawater', ''))
path(path, fullfile(my_root, 'roms_matlab', 't_tide', ''))
path(path, fullfile(my_root, 'roms_matlab', 'tidal_ellipse', ''))
path(path, fullfile(my_root, 'roms_matlab', 'utility', ''))