-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathderived_parameters.m
More file actions
29 lines (26 loc) · 895 Bytes
/
Copy pathderived_parameters.m
File metadata and controls
29 lines (26 loc) · 895 Bytes
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
function [Ny, Nx, N, NoY, NoX, No] = derived_parameters(params, Frac_Obs_Y, Frac_Obs_X)
% Derives dependent parameters from independent ones for EnKF
%
% INPUTS:
% params is a struct containing parameters for the bivariate Lorenz 96 model
% Frac_Obs_Y is the fraction of Y variables that are observed
% Frac_Obs_X is the fraction of X variables that are observed
%
% OUTPUTS:
% Ny is the number of state variables in the Y process
% Nx is the number of state variables in the X process
% N is the total number of state variables
% NoY is the number of observarions of Y
% NoX is the number of observations of X
% No is the number of obs per cycle
%
% Author: Zofia Stanley
% Number of state variables
Nx = params.K ;
Ny = params.K * params.J ;
N = params.K * ( params.J + 1 ) ;
% Number of observations
NoY = floor( Frac_Obs_Y * Ny ) ;
NoX = floor( Frac_Obs_X * Nx ) ;
No = NoX + NoY ;
end