1 |
|
|
2 |
global gcmfaces_verbose; gcmfaces_verbose=1; |
gcmfaces_global; |
|
|
|
|
global mydir; mydir=[pwd '/']; |
|
|
|
|
|
fid=fopen([mydir 'gcmfaces_path.m'],'wt'); |
|
|
fprintf(fid,['global mydir; mydir=''' mydir ''';\n']); |
|
|
fprintf(fid,['addpath ' mydir ';\n']); |
|
|
fprintf(fid,['addpath ' mydir 'gcmfaces_IO/;\n']); |
|
|
fprintf(fid,['addpath ' mydir 'gcmfaces_convert/;\n']); |
|
|
fprintf(fid,['addpath ' mydir 'gcmfaces_exch/;\n']); |
|
|
fprintf(fid,['addpath ' mydir 'gcmfaces_maps/;\n']); |
|
|
fprintf(fid,['addpath ' mydir 'gcmfaces_misc/;\n']); |
|
|
fprintf(fid,['addpath ' mydir 'gcmfaces_calc/;\n']); |
|
|
fprintf(fid,['addpath ' mydir 'gcmfaces_smooth/;\n']); |
|
|
%fprintf(fid,['addpath ' mydir 'gcmfaces_specs/;\n']); |
|
|
%fprintf(fid,['addpath ' mydir 'gcmfaces_legacy/;\n']); |
|
|
%fprintf(fid,['addpath ' mydir 'gcmfaces_devel/;\n']); |
|
|
fprintf(fid,['addpath ' mydir 'sample_analysis/;\n']); |
|
|
fprintf(fid,['addpath ' mydir 'sample_processing/;\n']); |
|
|
fclose(fid); |
|
|
|
|
|
fprintf('\n\n\n***********message from gcmfaces_init.m************ \n'); |
|
|
fprintf(' gcmfaces_path.m was created that, when executed, \n'); |
|
|
fprintf(' adds the gcmfaces directories to your path \n\n\n'); |
|
|
fprintf(' ultimately you may want to copy it in your startup.m \n'); |
|
|
|
|
|
gcmfaces_path; |
|
|
|
|
|
test0=dir('sample_input'); if isempty(test0); fprintf('no sample input data found\n'); return; end; |
|
|
|
|
|
fprintf('\n\n\n***********message from gcmfaces_init.m************\n '); |
|
|
fprintf(' starting 1st example routine: plot_one_field ... \n'); |
|
|
|
|
|
plot_one_field; |
|
|
|
|
|
fprintf('\n\n\n***********message from gcmfaces_init.m************\n '); |
|
|
fprintf(' starting 2nd example routine: plot_std_field ... \n'); |
|
|
|
|
|
plot_std_field; |
|
|
|
|
|
fprintf('\n\n\n***********message from gcmfaces_init.m************\n '); |
|
|
fprintf(' >>> initialization of gcmfaces completed correctly \n'); |
|
|
fprintf(' >>> you are all set and may now use the gcmfaces package \n'); |
|
|
fprintf(' >>> eventually, to avoid running gcmfaces_init over again \n'); |
|
|
fprintf(' you may want to copy the gcmfaces_path.m code to your startup.m \n\n\n'); |
|
3 |
|
|
4 |
|
test0=dir('gcmfaces/sample_input'); |
5 |
|
if isempty(test0); |
6 |
|
fprintf('no sample input data found\n'); |
7 |
|
return; |
8 |
|
end; |
9 |
|
|
10 |
|
warning('off','MATLAB:HandleGraphics:noJVM'); |
11 |
|
|
12 |
|
if myenv.verbose; |
13 |
|
fprintf('\n\n\n***********message from gcmfaces_init.m************\n '); |
14 |
|
fprintf(' starting basic test : plot_std_field ... \n'); |
15 |
|
end; |
16 |
|
plot_std_field('v4'); |
17 |
|
|
18 |
|
if ~myenv.lessplot; |
19 |
|
if myenv.verbose; |
20 |
|
fprintf('\n\n\n***********message from gcmfaces_init.m************\n '); |
21 |
|
fprintf(' starting plot test: plot_one_field ... \n'); |
22 |
|
end; |
23 |
|
plot_one_field('v4',0); |
24 |
|
end; |
25 |
|
|
26 |
|
if myenv.verbose; |
27 |
|
fprintf('\n\n\n***********message from gcmfaces_init.m************\n'); |
28 |
|
fprintf(' --- initialization of gcmfaces completed correctly \n'); |
29 |
|
fprintf(' --- you are all set and may now use the gcmfaces package. \n\n\n'); |
30 |
|
end; |
31 |
|
|