function [data, auxData, metaData, txtData, weights] = mydata_Sardinella_brasiliensis
%% set metadata
metaData.phylum     = 'Chordata'; 
metaData.class      = 'Actinopterygii'; 
metaData.order      = 'Clupeiformes'; 
metaData.family     = 'Dorosomatidae';
metaData.species    = 'Sardinella_brasiliensis'; 
metaData.species_en = 'Orangespot sardine'; 

metaData.ecoCode.climate = {'MA'};
metaData.ecoCode.ecozone = {'MAW'};
metaData.ecoCode.habitat = {'0iMpe', '0iMr'};
metaData.ecoCode.embryo  = {'Mpe'};
metaData.ecoCode.migrate = {'Mo'};
metaData.ecoCode.food    = {'biPz'};
metaData.ecoCode.gender  = {'D'};
metaData.ecoCode.reprod  = {'O'};

metaData.T_typical  = C2K(22); % K, body temp
metaData.data_0     = {'ab'; 'ap'; 'am'; 'Lp'; 'Li'; 'Wwb'; 'Wwi'; 'Ri'}; 
metaData.data_1     = {'t-L'}; 

metaData.COMPLETE = 2.5; % using criteria of LikaKear2011

metaData.author      = {'Bas Kooijman'};    
metaData.date_subm   = [2022 07 14];              
metaData.email       = {'bas.kooijman@vu.nl'};            
metaData.address     = {'VU University Amsterdam'};   

metaData.curator     = {'Starrlight Augustine'};
metaData.email_cur   = {'starrlight.augustine@akvaplan.niva.no'}; 
metaData.date_acc    = [2022 07 14]; 


%% set data
% zero-variate data;

data.ab = 2;     units.ab = 'd';    label.ab = 'age at birth';              bibkey.ab = 'fishbase';    
  temp.ab = C2K(22);  units.temp.ab = 'K'; label.temp.ab = 'temperature';
data.ap = 2.5*365;   units.ap = 'd';    label.ap = 'age at puberty';            bibkey.ap = 'guess';
  temp.ap = C2K(22);  units.temp.ap = 'K'; label.temp.ap = 'temperature';
data.am = 7.7*365;  units.am = 'd';    label.am = 'life span';                 bibkey.am = 'FontXime2005';   
  temp.am = C2K(22);  units.temp.am = 'K'; label.temp.am = 'temperature';

data.Lp  = 19.2;   units.Lp  = 'cm';   label.Lp  = 'total length at puberty'; bibkey.Lp  = 'fishbase';
data.Li  = 28.6; units.Li  = 'cm';  label.Li  = 'ultimate total length';   bibkey.Li  = 'FontXime2005';

data.Wwb = 3.2e-4; units.Wwb = 'g'; label.Wwb = 'wet weight at birth';   bibkey.Wwb = 'guess';
  comment.Wwb = 'based on egg diameter of 0.85 mm for Sardinella_gibbosa: pi/6*0.085^3';
data.Wwi = 178;   units.Wwi = 'g';    label.Wwi = 'ultimate wet weight';    bibkey.Wwi = 'FontXime2005';
  comment.Wwi = 'based on 0.00891*(10*Li)^3.03, see F1';

data.Ri  = 23.3e3/365;   units.Ri  = '#/d';  label.Ri  = 'maximum reprod rate';    bibkey.Ri  = 'fishbase';  
  temp.Ri = C2K(22);  units.temp.Ri = 'K'; label.temp.Ri = 'temperature';
  
% uni-variate data

% time-length data
data.tdL = [ % time since birth (yr), mean relative marginal increments (2/yr)
    1 0.392
    2 0.164
    3 0.105
    4 0.109
    5 0.061
    6 0.036];  
units.tdL = {'yr', '2/yr'};  label.tdL = {'time since birth', 'rel. marg. increments'};  
temp.tdL = C2K(22);  units.temp.tdL = 'K'; label.temp.tdL = 'temperature';
bibkey.tdL = 'FontXime2005';
comment.tdL = 'Data for August; the units of rmi are not really clear. per 0.5 yr assumed';

%% set weights for all real data
weights = setweights(data, []);
weights.tdL = 5 * weights.tdL;
%weights.ap = 0 * weights.ap;

%% set pseudodata and respective weights
[data, units, label, weights] = addpseudodata(data, units, label, weights);
weights.psd.k_J = 0; data.psd.k = 0.3; weights.psd.k = 0.1; units.psd.k = '-'; label.psd.k = 'maintenance ratio';

%% pack auxData and txtData for output
auxData.temp = temp;
txtData.units = units;
txtData.label = label;
txtData.bibkey = bibkey;
txtData.comment = comment;

%% Discussion points
D1 = 'Temperatures are guessed';
metaData.discussion = struct('D1',D1);

%% Facts
F1 = 'length-weight: W in g =  0.0000867*(TL in mm)^2.570';
metaData.bibkey.F1 = 'FontXime2005'; 
metaData.facts = struct('F1',F1);

%% Links
metaData.links.id_CoL = '6XMLL'; % Cat of Life
metaData.links.id_ITIS = '161764'; % ITIS
metaData.links.id_EoL = '46562432'; % Ency of Life
metaData.links.id_Wiki = 'Sardinella_brasiliensis'; % Wikipedia
metaData.links.id_ADW = 'Sardinella_brasiliensis'; % ADW
metaData.links.id_Taxo = '186540'; % Taxonomicon
metaData.links.id_WoRMS = '300551'; % WoRMS
metaData.links.id_fishbase = 'Sardinella-brasiliensis'; % fishbase


%% References
bibkey = 'Wiki'; type = 'Misc'; bib = ...
'howpublished = {\url{http://en.wikipedia.org/wiki/Sardinella_brasiliensis}}';
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'Kooy2010'; type = 'Book'; bib = [ ...  % used in setting of chemical parameters and pseudodata
'author = {Kooijman, S.A.L.M.}, ' ...
'year = {2010}, ' ...
'title  = {Dynamic Energy Budget theory for metabolic organisation}, ' ...
'publisher = {Cambridge Univ. Press, Cambridge}, ' ...
'pages = {Table 4.2 (page 150), 8.1 (page 300)}, ' ...
'howpublished = {\url{../../../bib/Kooy2010.html}}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'FontXime2005'; type = 'Article'; bib = [ ... 
'author = {Antonio Adauto Fonteles-Filho and Maria Odete Ximenes-Carvalho and Melqu\''{i}ades Pinto Paiva and Miguel Petrere J\''{u}nior}, ' ... 
'year = {2005}, ' ...
'title = {AGE AND GROWTH OF {B}RAZILIAN SARDINELLA, \emph{Sardinella brasiliensis} ({S}TEINDACHNER) ({O}STEICHTHYES: {C}LUPEIDAE), IN SOUTHEASTERN {B}RAZIL}, ' ...
'journal = {Arq. Ci\hat{e}n. Mar, Fortaleza}, ' ...
'volume = {38}, ' ...
'pages = {39-47}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'fishbase'; type = 'Misc'; bib = ...
'howpublished = {\url{https://www.fishbase.de/summary/Sardinella-brasiliensis.html}}';
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
 
