decadal_feedback_variations_wrapper.m 1.12 KB
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 49 50
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                           %
%    DIAGNOSE DECADAL FEEDBACK VARIATIONS   %
%    WRAPPER                                %
%                                           %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

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

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

    all_refs = {'ssh','sst','ustr'};
    all_lags = {'sst','ustr','ssh'};

    all_data = struct('ssh', 'oras4',...
                      'sst', 'oras4',...
                      'ustr','era_oras4_forcing');

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

% ------------ %
% CONSEQEUNCES %
% ------------ %

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

% ------- %
% LOOPING %
% ------- %

    for c_basin = 1:n_basins

        basin_name = char(all_basins{c_basin});

        for c_feedback = 1:n_feedbacks

            ref_name = char(all_refs{c_feedback});
            lag_name = char(all_lags{c_feedback});

            % call main script
            decadal_feedback_variations;

        % for: all feedbacks
        end

    % for: all basins
    end