-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstartup.m
More file actions
67 lines (56 loc) · 2.85 KB
/
startup.m
File metadata and controls
67 lines (56 loc) · 2.85 KB
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
%% MatLAB startup script
%
% This script defines paths and default settings for MINDI. Edit as
% required.
%
% This script will be run automatically if, under windows, the MatLAB icon
% properties 'Start in' field is set to the scripts directory where this
% file is located. Under UNIX using ~/matlab as your scripts directory will
% achieve the same purpose. Alternatively you may change to your scripts
% directory from the MatLAB prompt and type startup.
%% EDIT THIS PATH FOR YOUR SETUP
% Path to MINDI root directory (with trailing slash).
global ROOT;
ROOT = '~/midas-3/';
%% Define model directories for MEX functions (locations of model data files)
global IRI95; IRI95 = [ROOT,'source/iri95'];
global IGRF; IGRF = [ROOT,'source/igrf'];
global WEIMER; WEIMER = [ROOT,'source/weimer'];
%% Set plotting defaults (edit as required)
S = get(0,'ScreenSize');
set(0,'DefaultFigurePosition',[8,82,S(3:4)/2]); % Figure position and size
set(0,'DefaultFigureColor',[1,1,1]); % Figure background color
set(0,'DefaultTextColor',[0,0,0]); % Color for text and titles
set(0,'DefaultAxesColor',[1,1,1]); % Color fill for plot
set(0,'DefaultAxesYColor',[0,0,0]); % Color of y axis text and ticks
set(0,'DefaultAxesXColor',[0,0,0]); % Color of x axis text and ticks
set(0,'DefaultAxesZColor',[0,0,0]); % Color of z axis text and ticks
set(0,'DefaultTextFontSize',14) % Font size of titles
set(0,'DefaultAxesFontSize',14) % Font size of axes
set(0,'DefaultAxesFontName','arial'); % Axis Font
set(0,'DefaultTextFontName','arial'); % Axis Font
%% Paths to MAGIC sub-directories (please leave)
path([ROOT,'matlab/export_fig'],path);
path([ROOT,'matlab/gps'],path);
path([ROOT,'matlab/maths'],path);
path([ROOT,'matlab/medical'],path);
path([ROOT,'source/mex'],path);
path([ROOT,'matlab/mindi'],path);
path([ROOT,'matlab/m_map'],path);
path([ROOT,'matlab/utils'],path);
%% pharlap stuff
path('~/pharlap_4.2.0/',path);
path('~/pharlap_4.2.0/src/matlab/',path);
path('~/pharlap_4.2.0/mex/',path);
setenv('DIR_MODELS_REF_DAT', '~/pharlap_4.2.0/dat/')
%% Startup output (please leave)
V = ver('mindi');
fprintf('_______________________________________________________________________\n\n');
fprintf(' %s, version %s\n',V.Name, V.Version);
fprintf(' %s %s\n',V.Release, V.Date);
fprintf('_______________________________________________________________________\n\n');
fprintf(' Running startup from : %s\n',which('startup.m'));
fprintf(' Working directory : %s\n',pwd);
fprintf(' Mindi directory : %s\n',ROOT);
fprintf(' Computer type and host : %s %s\n\n',computer,getenv('HOSTNAME'));
fprintf('_______________________________________________________________________\n');