36 |
if isdir('GRID/'); gridDir='GRID/'; end; |
if isdir('GRID/'); gridDir='GRID/'; end; |
37 |
if isdir('nctiles_grid/'); gridDir='nctiles_grid/'; end; |
if isdir('nctiles_grid/'); gridDir='nctiles_grid/'; end; |
38 |
|
|
39 |
if isempty(gridDir); error('could not find grid'); end; |
if isempty(gridDir); |
40 |
|
fprintf('\n please indicate the ECCO v4 grid directory (e.g., ''nctiles_grid/'') \n\n'); |
41 |
|
fprintf(' It can be obtained as follows: \n'); |
42 |
|
fprintf(' wget --recursive ftp://mit.ecco-group.org/ecco_for_las/version_4/release2/nctiles_grid/ .\n'); |
43 |
|
fprintf(' mv mit.ecco-group.org/ecco_for_las/version_4/release2/nctiles_grid/ . \n\n'); |
44 |
|
gridDir=input(''); |
45 |
|
end; |
46 |
|
|
47 |
addpath(gridDir); |
addpath(gridDir); |
48 |
fil=which('GRID.0001.nc'); |
fil=which('GRID.0001.nc'); |
49 |
if isempty(fil); fil=which('XC.meta'); end; |
if isempty(fil); fil=which('XC.meta'); end; |
65 |
if isempty(fil); |
if isempty(fil); |
66 |
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'); |
67 |
fprintf(' It can be obtained as follows: \n'); |
fprintf(' It can be obtained as follows: \n'); |
68 |
fprintf(' wget --recursive ftp://mit.ecco-group.org/gforget/OCCAetcONv4GRID .\n\n'); |
fprintf(' wget --recursive ftp://mit.ecco-group.org/gforget/OCCAetcONv4GRID .\n'); |
69 |
fprintf(' mv mit.ecco-group.org/gforget/OCCAetcONv4GRID gcmfaces_climatologies \n\n'); |
fprintf(' mv mit.ecco-group.org/gforget/OCCAetcONv4GRID gcmfaces_climatologies \n\n'); |
70 |
climDir=input(''); |
climDir=input(''); |
71 |
end; |
end; |