/[MITgcm]/MITgcm_contrib/gael/matlab_class/gcmfaces_init.m
ViewVC logotype

Contents of /MITgcm_contrib/gael/matlab_class/gcmfaces_init.m

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Sun May 2 20:41:14 2010 UTC (15 years, 2 months ago) by gforget
Branch: MAIN
routine that sets up directory pathes and runs the
basic examples (plot_one_field.m plot_std_fields.m)
-> the starting point for new users

1
2 global mydir; mydir=[pwd '/'];
3
4 fid=fopen([mydir 'gcmfaces_path.m'],'wt');
5 fprintf(fid,['global mydir; mydir=''' mydir ''';\n']);
6 fprintf(fid,['addpath ' mydir ';\n']);
7 fprintf(fid,['addpath ' mydir 'gcmfaces_specs/;\n']);
8 fprintf(fid,['addpath ' mydir 'gcmfaces_IO/;\n']);
9 fprintf(fid,['addpath ' mydir 'gcmfaces_misc/;\n']);
10 fprintf(fid,['addpath ' mydir 'gcmfaces_calc/;\n']);
11 fprintf(fid,['addpath ' mydir 'gcmfaces_smooth/;\n']);
12 %fprintf(fid,['addpath ' mydir 'gcmfaces_legacy/;\n']);
13 %fprintf(fid,['addpath ' mydir 'gcmfaces_devel/;\n']);
14 fprintf(fid,['addpath ' mydir 'sample_analysis/;\n']);
15 fprintf(fid,['addpath ' mydir 'sample_processing/;\n']);
16 fclose(fid);
17
18 fprintf('\n\n\n***********message from gcmfaces_init.m************ \n');
19 fprintf(' gcmfaces_path.m was created that, when executed, \n');
20 fprintf(' adds the gcmfaces directories to your path \n\n\n');
21 fprintf(' ultimately you may want to copy it in your startup.m \n');
22
23 gcmfaces_path;
24
25 fprintf('\n\n\n***********message from gcmfaces_init.m************\n ');
26 fprintf(' starting 1st example routine: plot_one_field ... \n');
27
28 plot_one_field;
29
30 fprintf('\n\n\n***********message from gcmfaces_init.m************\n ');
31 fprintf(' starting 2nd example routine: plot_std_field ... \n');
32
33 plot_std_field;
34
35 fprintf('\n\n\n***********message from gcmfaces_init.m************\n ');
36 fprintf(' >>> initialization of gcmfaces completed correctly \n');
37 fprintf(' >>> you are all set and may now use the gcmfaces package \n');
38 fprintf(' >>> eventually, to avoid running gcmfaces_init over again \n');
39 fprintf(' you may want to copy the gcmfaces_path.m code to your startup.m \n\n\n');
40
41

  ViewVC Help
Powered by ViewVC 1.1.22