2 |
|
|
3 |
global fileFormat; |
global fileFormat; |
4 |
if isempty(fileFormat); |
if isempty(fileFormat); |
5 |
fprintf('\nconvert2gcmfaces.m init: there are several supported file conventions. \n'); |
global gcmfaces_verbose; |
6 |
fprintf(' By default gcmfaces assumes MITgcm type binary formats as follows: \n') |
if gcmfaces_verbose; |
7 |
fprintf(' (1 face) straight global format; (4 or 5 faces) compact global format\n'); |
fprintf('\nconvert2gcmfaces.m init: there are several supported file conventions. \n'); |
8 |
fprintf(' (6 faces) cube format with one face after the other. \n'); |
fprintf(' By default gcmfaces assumes MITgcm type binary formats as follows: \n') |
9 |
fprintf(' If this is inadequate, you can change the format below.\n\n'); |
fprintf(' (1 face) straight global format; (4 or 5 faces) compact global format\n'); |
10 |
|
fprintf(' (6 faces) cube format with one face after the other. \n'); |
11 |
|
fprintf(' If this is inadequate, you can change the format below.\n\n'); |
12 |
|
end; |
13 |
if nargin==1; nFaces=5; else; nFaces=varargin{1}; end; |
if nargin==1; nFaces=5; else; nFaces=varargin{1}; end; |
14 |
if nFaces==1; fileFormat='straight'; |
if nFaces==1; fileFormat='straight'; |
15 |
elseif nFaces==6; fileFormat='cube'; |
elseif nFaces==6; fileFormat='cube'; |