function [data, auxData, metaData, txtData, weights] = mydata_Merluccius_senegalensis
%% set metadata
metaData.phylum     = 'Chordata'; 
metaData.class      = 'Actinopterygii'; 
metaData.order      = 'Gadiformes'; 
metaData.family     = 'Merlucciidae';
metaData.species    = 'Merluccius_senegalensis'; 
metaData.species_en = 'Senegalese hake'; 

metaData.ecoCode.climate = {'MA'};
metaData.ecoCode.ecozone = {'MAW'};
metaData.ecoCode.habitat = {'0jMp', 'jiMd'};
metaData.ecoCode.embryo  = {'Mp'};
metaData.ecoCode.migrate = {};
metaData.ecoCode.food    = {'bjPz', 'jpCi', 'piCvf'};
metaData.ecoCode.gender  = {'D'};
metaData.ecoCode.reprod  = {'O'};

metaData.T_typical  = C2K(16); % in K, body temp
metaData.data_0     = {'am'; 'Lp'; 'Li'; 'Wwb'; 'Wwp'; 'Wwi'; 'GSI'};  
metaData.data_1     = {'t-L'}; 

metaData.COMPLETE = 2.4; % using criteria of LikaKear2011

metaData.author   = {'Bas Kooijman'}; 
metaData.date_subm = [2019 01 20]; 
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    = [2019 01 20]; 

%% set data
% zero-variate data
data.am = 20*365;     units.am = 'd';    label.am = 'life span';               bibkey.am = 'guess';  
  temp.am = C2K(16); units.temp.am = 'K'; label.temp.am = 'temperature';

data.Lp = 37;     units.Lp = 'cm';   label.Lp = 'total length at puberty for females';  bibkey.Lp = 'ReyFern2016';
  comment.Lp = '33 to 39 cm';
data.Li = 81;    units.Li = 'cm';   label.Li = 'ultimate total length';       bibkey.Li = 'fishbase';

data.Wwb = 3.8e-4;  units.Wwb = 'g';   label.Wwb = 'wet weight at birth';      bibkey.Wwb = 'guess';
  comment.Wwb = 'based on egg diameter of 900 mum: pi/6*0.09^3';
data.Wwp = 363;  units.Wwp = 'g';   label.Wwp = 'wet weight at puberty';        bibkey.Wwp = {'ReyFern2016','fishbase'};
  comment.Wwp = 'based on Wwp = 0.00537*Lp^3.08, see F1';
data.Wwi = 4e3;  units.Wwi = 'g';   label.Wwi = 'ultimate wet weight';        bibkey.Wwi = 'fishbase';
  comment.Wwi = 'based on Wwi = 0.00537*Li^3.08, see F1';
  
data.GSI = 25; units.GSI = 'g/g';  label.GSI = 'gonado somatic index'; bibkey.GSI = 'guess';
  temp.GSI = C2K(16); units.temp.GSI = 'K'; label.temp.GSI = 'temperature'; 

% uni-variate data
% time-length   
data.tL = [ ... % time since birth (d), total length (cm) 
208.655	31.506
233.694	33.822
242.968	26.757
258.733	28.263
267.079	34.517
273.570	32.896
273.570	32.548
282.844	26.988
283.771	27.683
312.519	36.834
318.083	36.139
352.396	37.992
353.323	46.216
391.345	36.486
416.383	35.792
506.337	47.606
555.487	48.185
651.932	48.996];
units.tL = {'d', 'cm'}; label.tL = {'time since birth', 'total length'};  
temp.tL = C2K(16);  units.temp.tL = 'K'; label.temp.tL = 'temperature';
bibkey.tL = 'ReyFern2016';

%% set weights for all real data
weights = setweights(data, []);
weights.tL = 5 * weights.tL;
weights.Li = 5 * weights.Li;

%% set pseudodata and respective weights
[data, units, label, weights] = addpseudodata(data, units, label, weights);
weights.psd.v = 5 * weights.psd.v;

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

%% Facts
F1 = 'length-weight: Ww in g = 0.00537*(TL in cm)^3.08';
metaData.bibkey.F1 = 'fishbase'; 
metaData.facts = struct('F1',F1);

%% Links
metaData.links.id_CoL = '73B5K'; % Cat of Life
metaData.links.id_ITIS = '550665'; % ITIS
metaData.links.id_EoL = '46564940'; % Ency of Life
metaData.links.id_Wiki = 'Merluccius_senegalensis'; % Wikipedia
metaData.links.id_ADW = 'Merluccius_senegalensis'; % ADW
metaData.links.id_Taxo = '179871'; % Taxonomicon
metaData.links.id_WoRMS = '126485'; % WoRMS
metaData.links.id_fishbase = 'Merluccius-senegalensis'; % fishbase


%% References
bibkey = 'Wiki'; type = 'Misc'; bib = ...
'howpublished = {\url{https://en.wikipedia.org/wiki/Merluccius_senegalensis}}';
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 = 'ReyFern2016'; type = 'article'; bib = [ ...
'author = {Javier Rey and Lourdes Fern\''{a}ndez-Peralta and Alberto Garc\''{i}a and Enrique Nava and Mar\''{i}a Carmen Clemente and Pablo Otero and Elisa Isabel Villar and Carmen Gloria Pineiro}, ' ... 
'year   = {2016}, ' ...
'title  = {Otolith microstructure analysis reveals differentiated growth historiesin sympatric black hakes (\emph{Merluccius polli} and \emph{Merluccius senegalensis})}, ' ...
'journal = {Fisheries Research}, ' ...
'page = {280-290}, ' ...
'volume = {179}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'fishbase'; type = 'Misc'; bib = ...
'howpublished = {\url{http://www.fishbase.org/summary/Merluccius-senegalensis.html}}';
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];

