%to load the ECCO v4 / LLC90 grid: % nF=5; % fileFormat='compact'; % dirGrid=fullfile([myenv.gcmfaces_dir '../']); % dirGrid=fullfile(dirGrid,'GRID/'); % %to instead load e.g. your MITgcm lat-lon grid, %you would edit the example routines to look like: % nF=1; % fileFormat='straight'; % dirGrid='./'; %choose verbise level fprintf('\n Please set the amount of explanatory text display :\n'); fprintf(' 0: none.\n'); fprintf(' 1: comments.\n'); fprintf(' 2: comments preceeded with calling sequence.\n'); fprintf(' 3: same as 2, but preceeded with pause.\n'); verbose=input(' and/or type return. 0 is the default. \n'); if isempty(verbose); verbose=0; end; %initialize environment variables and mygrid addpath gcmfaces; gcmfaces_global; myenv.issueWarnings=0; myenv.verbose=verbose; if myenv.verbose>0; gcmfaces_msg('* set path and environment variables (myenv) by calling gcmfaces_global'); end; addpath MITprof; if ~isempty(which('MITprof_global')); MITprof_global; if myenv.verbose>0; gcmfaces_msg('* set MITprof path by calling MITprof_global'); end; end; fprintf('\n\n'); gcmfaces_msg('/////////////////////////////////////'); gcmfaces_msg('demo of plotting routines','// PART 1 :'); gcmfaces_msg('please hit return','// >> '); gcmfaces_msg('/////////////////////////////////////'); fprintf('\n\n'); pause; plot_one_field; fprintf('\n\n'); gcmfaces_msg('///////////////////////////////////////////'); gcmfaces_msg('demo of gridding v interpolating','// PART 2 :'); gcmfaces_msg('please hit return','// >> '); gcmfaces_msg('///////////////////////////////////////////'); fprintf('\n\n'); pause; example_bin_average(1);%incl. call to example_smooth.m; example_griddata; example_interp; example_faces2latlon2faces; fprintf('\n\n'); gcmfaces_msg('/////////////////////////////////////////'); gcmfaces_msg('demo of transport computations','// PART 3 :'); gcmfaces_msg('please hit return','// >> '); gcmfaces_msg('/////////////////////////////////////////'); fprintf('\n\n'); pause; diags=example_transports; if ~isempty(diags); example_transports_disp(diags); end; fprintf('\n\n'); gcmfaces_msg('/////////////////////////////////////////'); gcmfaces_msg('demo of budget computations','// PART 4 :'); gcmfaces_msg('please hit return','// >> '); gcmfaces_msg('/////////////////////////////////////////'); fprintf('\n\n'); pause; example_budget;