7 |
%get/define global variables: |
%get/define global variables: |
8 |
gcmfaces_global; |
gcmfaces_global; |
9 |
|
|
10 |
|
warning(sprintf(['This version of MITprof, from an old CVS server, is now \n' ... |
11 |
|
' considered deprecated. Future devopment will proceed, instead, \n' ... |
12 |
|
' via GitHub. For up to date documentation, please refer to \n' ... |
13 |
|
' http://gcmfaces.readthedocs.io/en/latest/'])); |
14 |
|
|
15 |
%take care of path: |
%take care of path: |
16 |
test0=which('MITprof_load.m'); |
test0=which('MITprof_load.m'); |
17 |
if isempty(test0); |
if isempty(test0); |
41 |
if isdir('GRID/'); gridDir='GRID/'; end; |
if isdir('GRID/'); gridDir='GRID/'; end; |
42 |
if isdir('nctiles_grid/'); gridDir='nctiles_grid/'; end; |
if isdir('nctiles_grid/'); gridDir='nctiles_grid/'; end; |
43 |
|
|
44 |
if isempty(gridDir); error('could not find grid'); end; |
if isempty(gridDir); |
45 |
|
fprintf('\n please indicate the ECCO v4 grid directory (e.g., ''nctiles_grid/'') \n\n'); |
46 |
|
fprintf(' It can be obtained as follows: \n'); |
47 |
|
fprintf(' wget --recursive ftp://mit.ecco-group.org/ecco_for_las/version_4/release2/nctiles_grid/ .\n'); |
48 |
|
fprintf(' mv mit.ecco-group.org/ecco_for_las/version_4/release2/nctiles_grid/ . \n\n'); |
49 |
|
gridDir=input(''); |
50 |
|
end; |
51 |
|
|
52 |
addpath(gridDir); |
addpath(gridDir); |
53 |
fil=which('GRID.0001.nc'); |
fil=which('GRID.0001.nc'); |
54 |
if isempty(fil); fil=which('XC.meta'); end; |
if isempty(fil); fil=which('XC.meta'); end; |
70 |
if isempty(fil); |
if isempty(fil); |
71 |
fprintf('\n please indicate the climatologies directory (e.g., ''gcmfaces_climatologies/'') \n\n'); |
fprintf('\n please indicate the climatologies directory (e.g., ''gcmfaces_climatologies/'') \n\n'); |
72 |
fprintf(' It can be obtained as follows: \n'); |
fprintf(' It can be obtained as follows: \n'); |
73 |
fprintf(' wget --recursive ftp://mit.ecco-group.org/gforget/OCCAetcONv4GRID .\n\n'); |
fprintf(' wget --recursive ftp://mit.ecco-group.org/gforget/OCCAetcONv4GRID .\n'); |
74 |
fprintf(' mv mit.ecco-group.org/gforget/OCCAetcONv4GRID gcmfaces_climatologies \n\n'); |
fprintf(' mv mit.ecco-group.org/gforget/OCCAetcONv4GRID gcmfaces_climatologies \n\n'); |
75 |
climDir=input(''); |
climDir=input(''); |
76 |
end; |
end; |