5 |
% doComp states whether to compute (1) or display (0) |
% doComp states whether to compute (1) or display (0) |
6 |
% dirTex is the directory where tex and fig files will be created |
% dirTex is the directory where tex and fig files will be created |
7 |
% nameTex is the tex file name (default : 'myPlots') |
% nameTex is the tex file name (default : 'myPlots') |
8 |
|
% |
9 |
|
%notes : MITprof files will be used from the myenv.profiles directory |
10 |
|
% or [dirMat '/profiles/output/'] is myenv.profiles is missing |
11 |
|
|
12 |
|
gcmfaces_global; |
13 |
|
|
14 |
dirMat=[dirMat '/']; |
dirMat=[dirMat '/']; |
15 |
|
|
16 |
dirData=[dirMat '/profiles/output/']; |
if isfield(myenv,'profiles'); |
17 |
|
dirData=myenv.profiles; |
18 |
|
else; |
19 |
|
dirData=[dirMat '/profiles/output/']; |
20 |
|
end; |
21 |
while ~isdir(dirData)&doComp; |
while ~isdir(dirData)&doComp; |
22 |
fprintf(['directory : ' dirData '\n']) |
fprintf(['directory : ' dirData '\n']) |
23 |
dirData=input(['does not exist. Specify directory of nc file : \n']); |
dirData=input(['does not exist. Specify directory of nc file : \n']); |