function [prdData, info] = predict_Cyanopsitta_spixii(par, data, auxData)
  
  % unpack par, data, auxData
  cPar = parscomp_st(par); vars_pull(par); 
  vars_pull(cPar);  vars_pull(data);  vars_pull(auxData);
  
  % compute temperature correction factors
  TC_ab = tempcorr(temp.ab, T_ref, T_A);
  TC = tempcorr(temp.am, T_ref, T_A); kT_M = TC * k_M;

  % zero-variate data

  % life cycle
  pars_tx = [g; k; l_T; v_Hb; v_Hx];  % compose parameter vector
  tau_x = get_tp(pars_tx, f); 
  pars_tp = [g; k; l_T; v_Hb; v_Hp];  % compose parameter vector
  [tau_p, tau_b, l_p, l_b, info] = get_tp(pars_tp, f);  % -, scaled times & lengths
  if ~info; prdData = []; return; end
  
  % birth
  L_b = L_m * l_b;                  % cm, structural length at birth at f
  Ww_b = L_b^3 * (1 + f * ome);     % g, wet weight at birth at f 
  aT_b = t_0 + tau_b/ k_M/ TC_ab;   % d, age at birth at f and T

  % fledging
  tT_x = (tau_x - tau_b)/ kT_M;         % d, time since birth at fledging

  % puberty
  tT_p = (tau_p - tau_b)/ kT_M;         % d, time since birth at puberty

  % ultimate
  l_i = f - l_T;                    % -, scaled ultimate length
  L_i = L_m * l_i;                  % cm, ultimate structural length at f
  Ww_i = L_i^3 * (1 + f * ome);       % g, ultimate wet weight
 
  % reproduction
  pars_R = [kap; kap_R; g; k_J; k_M; L_T; v; U_Hb; U_Hp]; % compose parameter vector at T
  RT_i = TC * reprod_rate(L_i, f, pars_R);                % #/d, ultimate reproduction rate at T

  % life span
  pars_tm = [g; l_T; h_a/ k_M^2; s_G];  % compose parameter vector at T_ref
  tau_m = get_tm_s(pars_tm, f, l_b);      % -, scaled mean life span at T_ref
  aT_m = tau_m/ kT_M;                     % d, mean life span at T

  % pack to output
  prdData.ab = aT_b;
  prdData.tx = tT_x;
  prdData.tp = tT_p;
  prdData.tR = t_R;
  prdData.am = aT_m;
  prdData.Wwb = Ww_b;
  prdData.Wwi = Ww_i;
  prdData.Ri = RT_i;
  
  % uni-variate data
  
  % time-weight: varying food
  tp_X1 = [feed.tW1(:,1), feed.tW1(:,2) * d_X/ w_X * mu_X]; % [d, J/d], feeding energy flux
  [t, EL] = ode45(@get_EL, tW1(:,1), [E_m, L_b], [], tp_X1, TC * v, g, E_m, L_m, kap_X, TC * p_Am, del_X); % EL: {J/cm^3, cm}, with {[E], L}
  EWw_1 = EL(:,2).^3 .* (1 + EL(:,1) * w_E/ mu_E/ d_E); % g, wet weight
  %
  tp_X4 = [feed.tW4(:,1), feed.tW4(:,2) * d_X/ w_X * mu_X]; % [d, J/d], feeding energy flux
  [t, EL] = ode45(@get_EL, tW4(:,1), [E_m, L_b], [], tp_X4, TC * v, g, E_m, L_m, kap_X, TC * p_Am, del_X); % EL: {J/cm^3, cm}, with {[E], L}
  EWw_4 = EL(:,2).^3 .* (1 + EL(:,1) * w_E/ mu_E/ d_E); % g, wet weight

  % pack to output
  prdData.tW1 = EWw_1;
  prdData.tW4 = EWw_4;
end

function dEL = get_EL(t, EL, tp_X, v, g, E_m, L_m, kap_X, p_Am, del_X)
  E = EL(1); % J/cm^3, reserve density [E}
  L = EL(2); % cm, structural length
  
  p_X = spline1(t, tp_X); kap_X = kap_X *  min(1, p_Am/ (kap_X * p_X/ L^2))^del_X;
  dE = kap_X * p_X/ L^3 - E * v/ L; % J/d.cm^3, change in reserve density d/dt [E]
  e = E/ E_m;                            % -, scaled reserve density
  r = v * (e/ L - 1/ L_m)/ (e + g);      % 1/d, specific growth rate
  dL = L * r/ 3;                         % cm/d, change in structural length d/dt L
  
  dEL = [dE; dL]; % catenate for output
end

