calculate_instantaneous_feedback_wrapper.m 1012 Bytes
Newer Older
Claas Faber's avatar
Claas Faber committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                      %
%   CALCULATE INSTANTANEOUS FEEDBACK   %
%   WRAPPER                            %
%                                      %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

addpath('<path where the functions are stored>');

clear all;
close all;
clc;

% -------- %
% SETTINGS %
% -------- %

    all_references = {'ssh','sst','ustr'};
    all_responses  = {'sst','ustr','ssh'};

    all_basins = {'Atlantic','Pacific'};

% ----------- %
% CONSEQUENES %
% ----------- %

    n_feedbacks = length(all_references);
    n_basins    = length(all_basins);

% --------- %
% THE LOOPS %
% --------- %

    for c_basin = 1:n_basins

        basin_name = char(all_basins{c_basin});

        for c_feedback = 1:n_feedbacks

            reference_name = char(all_references{c_feedback});
            response_name  = char(all_responses{c_feedback});

            % call main script
            calculate_instantaneous_feedback;

        end

    end