function [data, auxData, metaData, txtData, weights] = mydata_Plagiogeneion_rubiginosum

%% set metadata
metaData.phylum     = 'Chordata'; 
metaData.class      = 'Actinopterygii'; 
metaData.order      = 'Acanthuriformes'; 
metaData.family     = 'Emmelichthyidae';
metaData.species    = 'Plagiogeneion_rubiginosum'; 
metaData.species_en = 'Rubyfish'; 

metaData.ecoCode.climate = {'MB'};
metaData.ecoCode.ecozone = {'MPS','MIS','MAS'};
metaData.ecoCode.habitat = {'bpMp','piMdb'};
metaData.ecoCode.embryo  = {'Mp'};
metaData.ecoCode.migrate = {};
metaData.ecoCode.food    = {'biCi'};
metaData.ecoCode.gender  = {'D'};
metaData.ecoCode.reprod  = {'O'};

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

metaData.COMPLETE = 2.5; % using criteria of LikaKear2011

metaData.author    = {'Bas Kooijman'};    
metaData.date_subm = [2024 05 29];              
metaData.email     = {'bas.kooijman@vu.nl'};            
metaData.address   = {'VU University Amsterdam'};  

metaData.curator     = {'Dina Lika'};
metaData.email_cur   = {'lika@uoc.gr'}; 
metaData.date_acc    = [2024 05 29];

%% set data
% zero-variate data
data.ab = 8; units.ab = 'd';    label.ab = 'age at birth';           bibkey.ab = 'guess';   
  temp.ab = C2K(18);  units.temp.ab = 'K'; label.temp.ab = 'temperature';
data.am = 100*365; units.am = 'd';    label.am = 'life span';              bibkey.am = 'HornNeil2012';   
  temp.am = C2K(18.8);  units.temp.am = 'K'; label.temp.am = 'temperature';
  comment.am = 'based on tL data';

data.Lp = 29;     units.Lp = 'cm';   label.Lp = 'std length at puberty'; bibkey.Lp = 'HornNeil2012';
  comment.Lp = 'based on tL data for t = 6 yr';
data.Li = 60;  units.Li = 'cm';   label.Li = 'ultimate std length';  bibkey.Li = 'fishbase';

data.Wwb = 2.7e-4;  units.Wwb = 'g';    label.Wwb = 'wet weight at birth';    bibkey.Wwb = 'guess';
  comment.Wwb = 'based on egg diameter of 0.8 mm: pi/6*0.08^3';
data.Wwp = 354;   units.Wwp = 'g';    label.Wwp = 'wet weight at puberty';    bibkey.Wwp = 'fishbase';
  comment.Wwp = 'based on 0.01072*Lp^3.09, see F1';
data.Wwi = 3.35e3;   units.Wwi = 'g';    label.Wwi = 'ultimate wet weight';    bibkey.Wwi = 'fishbase';
  comment.Wwi = 'based on 0.01072*Li^3.09, see F1';
 
data.GSI = 0.04; units.GSI = 'g/g';  label.GSI = 'gonado somatic index';    bibkey.GSI = 'guess';
  temp.GSI = C2K(6.5); units.temp.GSI = 'K'; label.temp.GSI = 'temperature';

% uni-variate data

% time-length
data.tL = [ ... % time since hatch (yr), total length (cm)
3.876	30.225
3.886	34.084
4.008	29.019
4.024	34.968
4.297	35.932
4.838	35.209
4.961	30.949
4.975	35.932
4.980	37.781
4.983	38.826
5.092	29.180
5.095	30.225
5.100	32.074
5.106	34.244
5.113	36.977
5.239	33.199
5.368	30.949
5.648	34.244
5.788	35.932
5.922	35.370
6.043	30.064
6.198	37.058
6.314	30.064
6.454	31.752
6.466	35.932
6.588	31.029
6.596	34.164
6.610	39.068
6.740	37.058
6.742	38.023
6.750	41.077
6.864	32.958
6.871	35.450
7.153	39.791
7.279	35.932
7.537	31.270
7.674	31.913
7.680	34.244
7.691	38.103
7.812	32.958
7.829	38.907
7.832	40.032
8.075	29.904
8.079	31.190
8.090	35.370
8.094	36.977
8.363	35.932
8.506	38.826
8.639	38.023
8.645	40.113
8.764	34.084
8.892	31.190
8.894	31.994
8.921	42.122
9.043	37.058
9.168	33.039
9.175	35.772
9.433	31.109
9.445	35.370
9.572	32.074
9.590	38.987
9.593	40.113
9.610	46.141
9.991	36.977
10.007	42.926
10.119	34.084
10.252	33.119
10.265	37.781
10.385	32.074
10.406	40.113
10.409	40.916
10.529	35.370
10.530	35.772
10.653	31.270
10.810	38.907
10.948	40.032
11.063	32.235
11.065	33.039
11.068	34.084
11.211	36.977
11.349	38.103
11.363	43.167
11.486	38.666
11.612	35.129
11.742	32.958
11.745	34.084
11.750	35.852
11.761	40.032
11.889	37.058
12.011	32.315
12.174	42.363
12.301	39.068
12.303	39.952
12.306	40.916
12.447	43.006
12.558	34.003
12.569	37.942
12.696	34.968
12.824	32.154
12.826	33.039
12.834	35.932
13.107	36.817
13.116	39.871
13.122	42.042
13.238	35.048
13.395	43.087
13.655	38.826
13.780	35.129
13.793	39.871
13.796	40.836
13.913	34.084
13.919	36.093
13.920	36.736
13.935	42.283
14.195	38.103
14.317	33.119
14.739	38.907
14.748	42.203
14.861	33.923
14.865	35.209
14.886	43.167
15.005	36.977
15.013	40.113
15.125	31.270
15.130	33.039
15.151	40.836
15.279	38.103
15.544	35.932
15.552	38.987
15.561	42.283
15.813	35.048
15.969	42.846
16.088	36.736
16.222	36.013
16.370	40.836
16.377	43.328
16.509	42.042
16.629	36.254
16.769	37.942
16.772	39.148
16.897	35.048
16.911	40.193
16.913	40.916
17.029	34.003
17.057	44.293
17.322	42.042
17.579	36.977
17.582	37.942
17.596	43.087
17.842	34.003
17.856	39.148
17.859	40.113
17.874	45.820
17.996	40.756
18.008	44.936
18.122	37.058
18.135	42.042
18.141	44.132
18.396	38.103
18.544	42.926
18.653	33.039
18.669	38.987
18.802	37.942
18.935	37.138
18.948	41.881
18.956	44.936
19.062	34.164
19.082	41.318
19.203	36.093
19.215	40.354
19.349	40.032
19.352	40.916
19.360	44.051
19.477	37.138
19.604	34.084
19.618	39.148
19.764	42.926
19.886	38.264
19.899	43.006
20.013	34.968
20.152	36.254
20.303	42.042
20.308	43.891
20.583	45.177
20.842	40.997
20.975	39.952
20.992	46.141
21.254	42.926
21.257	43.891
21.387	41.961
21.515	39.148
21.517	39.871
22.054	38.183
22.203	42.926
22.333	40.997
22.335	41.881
22.346	45.900
22.732	38.103
22.748	44.051
22.869	38.987
22.885	44.855
22.891	47.106
22.997	36.093
23.007	39.711
23.024	45.981
23.419	41.881
23.558	43.006
23.688	40.916
23.828	42.846
24.081	36.174
24.362	39.871
24.374	44.132
24.500	40.836
24.503	41.801
24.922	46.222
25.042	40.836
25.176	39.952
25.319	43.006
25.325	45.096
25.455	43.006
25.580	39.148
25.587	41.801
25.989	39.952
25.991	40.836
26.000	44.132
26.141	46.061
26.393	39.068
26.685	47.026
26.804	40.997
26.937	40.032
26.942	41.881
26.945	42.926
27.211	40.997
27.214	42.042
27.355	44.132
27.357	44.936
27.623	43.087
27.886	40.032
28.026	41.881
28.296	41.238
28.314	48.151
28.574	44.132
28.712	44.855
28.832	39.148
28.842	42.926
29.108	41.158
29.382	41.961
29.390	45.096
29.523	44.132
29.916	39.068
29.927	43.087
30.054	39.952
30.059	41.881
30.192	41.158
30.338	44.855
30.344	47.026
30.718	35.129
30.874	42.765
31.006	41.238
31.008	42.042
31.014	44.212
31.016	45.016
31.163	49.196
31.292	46.945
31.962	44.212
32.081	38.103
32.227	42.042
32.230	43.006
32.777	44.936
32.911	44.212
33.037	40.997
33.446	41.881
33.458	46.141
33.463	48.071
33.585	43.006
33.859	44.212
33.861	44.855
33.986	40.836
34.119	40.032
34.259	41.881
34.538	44.855
34.813	46.141
34.821	48.955
34.940	43.006
34.951	47.026
35.079	44.132
35.344	41.961
35.476	40.836
35.758	44.936
35.897	45.981
36.015	39.871
36.021	41.881
36.035	46.945
36.290	40.997
36.298	44.293
36.566	43.006
36.831	40.916
36.841	44.614
36.845	45.900
36.984	47.186
37.105	41.801
37.110	43.891
37.121	47.830
37.523	46.141
37.650	43.087
38.054	42.042
38.068	47.106
38.197	44.936
38.331	44.132
38.468	44.775
38.471	45.900
38.866	41.801
39.135	40.916
39.154	48.071
39.273	42.042
39.287	47.106
39.412	43.006
39.553	45.096
39.674	39.952
39.956	43.971
40.097	46.061
40.222	42.042
40.379	49.920
40.498	43.971
40.626	41.238
40.764	41.961
40.916	48.312
41.173	43.087
41.311	43.971
41.314	44.936
41.316	45.900
41.455	47.106
41.983	41.961
41.997	47.026
42.000	48.151
42.127	45.016
42.257	43.167
42.395	44.051
42.520	40.193
42.536	45.900
43.081	47.106
43.203	41.961
43.212	45.257
43.337	41.399
43.344	44.132
43.612	43.167
43.620	45.981
43.745	42.122
44.149	41.318
44.168	48.312
44.296	45.257
44.300	47.026
44.428	44.132
44.433	45.900
44.550	39.148
44.555	41.077
44.696	43.167
44.708	47.267
45.100	41.961
45.116	48.071
45.376	44.051
45.515	45.257
45.516	45.740
45.655	47.026
45.783	44.051
46.045	40.756
46.194	45.820
46.201	48.151
46.319	41.961
46.322	43.006
46.328	45.338
46.740	47.106
46.878	48.071
47.002	44.051
47.006	45.257
47.007	45.820
47.406	43.006
47.417	47.026
48.081	41.961
48.087	44.212
48.089	45.177
48.355	43.006
48.634	46.061
48.894	42.042
48.913	48.955
49.035	44.132
49.038	45.096
49.178	46.785
49.304	43.167
49.707	42.122
49.715	44.936
49.848	44.132
49.851	45.257
50.116	43.006
50.124	45.981
50.251	42.926
50.398	47.026
50.536	47.910
50.796	43.891
51.075	46.945
51.078	47.910
51.206	45.257
51.344	46.061
51.880	44.051
52.019	45.016
52.026	47.830
52.160	47.026
52.293	46.141
52.840	47.990
52.962	43.248
53.100	44.132
53.376	45.981
53.653	47.990
54.049	44.212
54.054	46.061
54.322	45.096
54.327	46.945
54.330	47.910
54.590	44.051
54.736	47.910
54.865	45.177
54.994	42.846
55.003	46.141
55.140	46.704
55.539	44.212
55.816	46.141
55.826	49.920
55.945	43.810
55.948	45.016
56.092	47.990
56.094	48.794
56.208	40.997
56.488	44.132
56.761	45.096
57.027	43.167
57.035	46.222
57.293	41.158
57.842	43.891
57.848	46.141
57.850	46.865
57.864	52.090
57.970	41.238
57.981	45.257
58.108	41.881
58.127	49.116
58.247	43.167
58.669	49.196
58.796	45.900
58.799	47.026
59.065	45.177
59.197	43.891
59.208	47.830
59.609	45.900
59.740	44.051
59.743	45.177
60.024	48.955
60.144	43.167
60.162	50.080
60.290	47.026
60.563	47.830
60.701	48.955
61.095	44.212
61.097	45.016
61.102	46.945
61.235	46.061
61.512	47.990
61.515	49.035
61.913	46.141
62.051	47.026
62.181	45.016
62.325	47.910
62.450	44.212
62.463	49.116
63.002	47.990
63.127	44.132
63.402	45.338
63.403	45.981
63.407	47.186
63.412	49.116
63.534	44.051
63.945	45.981
64.073	43.167
64.078	44.775
64.357	47.910
64.496	49.035
64.759	46.141
64.897	47.186
65.027	45.016
65.170	48.071
65.292	42.926
65.707	45.981
66.111	45.177
66.122	49.035
66.523	47.026
66.794	47.106
66.796	47.910
67.059	45.096
68.141	44.132
68.284	46.945
68.954	44.051
69.236	48.232
69.363	45.096
69.504	47.026
69.900	43.248
69.908	46.141
70.046	47.026
70.049	48.071
70.460	49.920
70.587	46.945
71.265	47.106
71.270	48.875
71.395	45.096
71.805	46.061
71.937	45.016
72.217	48.071
72.344	45.016
72.620	47.106
72.747	43.891
73.021	44.936
73.024	45.981
73.032	49.116
73.298	47.106
73.425	43.971
73.970	45.016
74.373	43.971
74.379	46.141
74.919	45.096
75.059	46.865
75.593	44.051
75.736	46.865
76.132	42.846
76.271	44.132
76.276	45.981
76.279	46.945
77.086	44.936
77.366	48.151
77.370	49.759
78.179	48.232
78.445	46.383
78.448	47.428
78.723	49.116
79.276	52.974
80.200	44.051
81.558	45.096
82.507	45.096
82.913	45.177
83.192	48.151
83.197	49.678
83.867	46.945
84.263	43.087
85.222	47.106
85.636	50.000
89.287	46.945
93.490	47.990
95.125	51.125
96.748	50.080
100.547	52.170];
data.tL(:,1) = (0 + data.tL(:,1)) * 365; % convert yr to d
units.tL = {'d', 'cm'};  label.tL = {'time since birth', 'total length'};  
temp.tL = [1 18; 2 13.6; 5 12.5; 6 9.1; 12 7.2; 15 7.9; 32 6.7; 45 6.7];  units.temp.tL = {'yr','C'}; label.temp.tL = {'age','temperature'};
bibkey.tL = 'HornNeil2012';

%% set weights for all real data
weights = setweights(data, []);
weights.tL = weights.tL * 5;
weights.ab = weights.ab * 0;
weights.Wwb = weights.Wwb * 3;

%% set pseudodata and respective weights
[data, units, label, weights] = addpseudodata(data, units, label, weights);

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

% %% Group plots
% set1 = {'LW_f','LW_m'}; subtitle1 = {'Data for females, males'};
% metaData.grp.sets = {set1};
% metaData.grp.subtitle = {subtitle1};

%% Discussion points
D1 = 'males are assumed not to differ from females';
metaData.discussion = struct('D1',D1);

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

%% Links
metaData.links.id_CoL = '4JFWS'; % Cat of Life
metaData.links.id_ITIS = '645487'; % ITIS
metaData.links.id_EoL = '46578370'; % Ency of Life
metaData.links.id_Wiki = 'Plagiogeneion_rubiginosum'; % Wikipedia
metaData.links.id_ADW = 'Plagiogeneion_rubiginosum'; % ADW
metaData.links.id_Taxo = '183941'; % Taxonomicon
metaData.links.id_WoRMS = '218467'; % WoRMS
metaData.links.id_fishbase = 'Plagiogeneion-rubiginosum'; % fishbase

%% References
bibkey = 'Wiki'; type = 'Misc'; bib = ...
'howpublished = {\url{http://en.wikipedia.org/wiki/wiki/Plagiogeneion_rubiginosum}}';  
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 = 'HornNeil2012'; type = 'Article'; bib = [ ...
'doi = {10.1080/00288330.2012.676052}, ' ...
'author = {P.L. Horn and H.L. Neil and L.J. Paul and PJ McMillan}, ' ...
'year = {2012}, ' ...
'title = {Age verification, growth and life history of rubyfish \emph{Plagiogeneion rubiginosum}}, ' ... 
'journal = {New Zealand Journal of Marine and Freshwater Research}, ' ...
'volume = {46(3)}, '...
'pages = {353-368}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'fishbase'; type = 'Misc'; bib = ...
'howpublished = {\url{https://www.fishbase.se/summary/Plagiogeneion-rubiginosum.html}}';  
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];

