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

%% set metaData
metaData.phylum     = 'Chordata'; 
metaData.class      = 'Actinopterygii'; 
metaData.order      = 'Tetraodontiformes'; 
metaData.family     = 'Monacanthidae';
metaData.species    = 'Meuschenia_scaber'; 
metaData.species_en = 'Velvet leatherjacket'; 

metaData.ecoCode.climate = {'MC'};
metaData.ecoCode.ecozone = {'MI','MPSW'};
metaData.ecoCode.habitat = {'0jMp', 'jiMr'};
metaData.ecoCode.embryo  = {'Mp'};
metaData.ecoCode.migrate = {};
metaData.ecoCode.food    = {'jiCie'};
metaData.ecoCode.gender  = {'D'};
metaData.ecoCode.reprod  = {'O'};

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

metaData.COMPLETE = 2.3; % using criteria of LikaKear2011

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

%% set data
% zero-variate data

data.am = 17 * 365; units.am = 'd';   label.am = 'life span';                bibkey.am = 'ViscTrip2018';   
  temp.am = C2K(15.1);  units.temp.am = 'K'; label.temp.am = 'temperature';

data.Lp  = 18.99;   units.Lp  = 'cm';  label.Lp  = 'total length at puberty';  bibkey.Lp  = 'ViscTrip2018a'; 
data.Li  = 31;   units.Li  = 'cm';  label.Li  = 'ultimate total length';    bibkey.Li  = 'Wiki';

data.Wwb = 6.5e-5;  units.Wwb = 'g';   label.Wwb = 'wet weight at puberty';    bibkey.Wwb = 'guess';
  comment.Wwb = 'based on egg diameter of 0.5 mm of Stephanolepis_hispidus: pi/6*0.05^3';
data.Wwp = 173;  units.Wwp = 'g';   label.Wwp = 'wet weight at birth';    bibkey.Wwp = 'fishbase';
  comment.Wwp = 'based on 0.02754*Lp^2.97, see F1';
data.Wwi = 740;   units.Wwi = 'g';   label.Wwi = 'ultimate wet weight';    bibkey.Wwi = 'fishbase';
  comment.Wwi = 'based on 0.02754*Li^2.97, see F1';

data.Ri  = 2.6e5/365; units.Ri  = '#/d'; label.Ri  = 'max reprod rate at TL 16.3'; bibkey.Ri  = 'RimMoha2011';   
  temp.Ri = C2K(15.1); units.temp.Ri = 'K'; label.temp.Ri = 'temperature';
  comment.Ri = 'based on fecundity of Stephanolepis_hispidus: 91323*740/263';

% univariate data
% time-length
data.tL = [ ... % time since birth (yr), total length (cm)
0.037	1.055
0.059	1.303
0.162	10.295
0.163	9.489
0.163	8.931
0.164	8.125
0.251	10.978
0.254	8.684
0.275	10.048
0.276	9.118
0.322	8.002
0.324	6.327
0.342	9.800
0.342	9.738
0.389	8.188
0.390	7.506
0.710	22.825
0.754	24.252
0.755	23.445
0.773	27.352
0.776	24.376
0.799	24.066
0.820	24.872
1.210	18.115
1.275	20.410
1.299	18.984
1.321	19.418
1.347	15.945
1.389	18.550
1.410	20.411
1.411	19.729
1.434	18.923
1.435	17.930
1.481	17.310
1.627	27.295
1.629	25.683
1.717	26.986
1.761	27.854
1.786	25.684
1.787	25.312
1.787	24.816
1.789	23.576
1.789	22.955
1.808	26.304
1.828	28.351
1.855	24.134
1.905	19.855
1.967	25.251
2.007	29.034
2.032	27.174
2.053	28.600
2.055	26.244
2.058	24.135
2.077	26.864
2.101	25.190
2.167	26.926
2.303	26.369
2.303	25.811
2.324	27.361
2.354	19.982
2.371	25.191
2.372	24.943
2.390	28.168
2.393	25.626
2.394	24.633
2.440	24.324
2.504	26.742
2.526	27.673
2.548	28.107
2.683	27.674
2.727	28.356
2.729	27.364
2.751	27.798
2.751	27.178
2.756	23.209
2.794	29.597
2.796	26.930
2.799	24.946
2.819	26.682
2.862	28.853
2.864	26.434
2.865	25.814
3.043	28.048
3.043	27.986
3.046	25.133
3.066	27.242
3.085	30.219
3.086	29.288
3.089	26.560
3.089	26.312
3.132	28.792
3.178	27.739
3.180	25.816
3.222	28.669
3.269	26.189
3.270	25.445
3.290	27.491
3.335	28.050
3.336	26.685
3.380	27.430
3.469	28.298
3.494	26.252
3.559	29.043
3.561	27.121
3.584	26.315
3.606	26.873
3.672	28.424
3.673	26.749
3.695	27.494
3.738	29.602
3.739	28.858
3.742	25.447
3.743	24.765
3.743	24.703
3.744	24.021
3.764	26.130
3.765	25.199
3.781	31.525
3.807	28.176
3.807	27.556
3.808	27.060
3.808	26.750
3.832	25.200
3.850	29.851
3.873	29.231
4.009	28.240
4.010	27.557
4.029	30.472
4.030	29.604
4.053	28.736
4.056	26.441
4.056	26.069
4.076	28.798
4.097	30.286
4.123	26.752
4.165	29.605
4.167	27.868
4.210	29.047
4.213	27.000
4.259	26.071
4.279	28.303
4.300	29.171
4.303	26.815
4.368	28.924
4.394	26.071
4.438	26.816
4.459	27.560
4.481	28.428
4.501	30.227
4.571	27.933
4.573	26.692
4.660	29.049
4.661	28.181
4.707	27.065
4.708	25.949
4.727	29.608
4.730	26.321
4.733	23.717
4.748	31.282
4.753	25.949
4.754	25.453
4.754	25.081
4.777	24.523
4.819	27.748
4.820	26.942
4.839	29.919
4.885	28.989
4.886	28.245
4.975	29.237
4.996	29.796
5.020	28.369
5.039	31.966
5.044	27.501
5.087	29.238
5.112	26.572
5.133	28.432
5.133	27.812
5.159	25.022
5.177	29.115
5.198	30.107
5.201	27.564
5.202	26.696
5.290	28.309
5.291	27.689
5.293	25.891
5.309	31.906
5.334	29.550
5.427	26.946
5.447	28.496
5.539	26.822
5.562	26.512
5.584	27.381
5.651	27.319
5.652	26.513
5.673	27.877
5.675	25.955
5.739	29.428
5.739	29.428
5.762	28.746
5.763	28.002
5.765	26.079
5.804	31.227
5.809	26.824
5.831	27.010
5.833	25.460
5.852	28.436
5.942	28.437
5.984	31.476
5.987	28.933
6.007	30.484
6.010	27.755
6.031	29.182
6.032	28.685
6.057	26.453
6.077	28.128
6.079	26.329
6.143	29.430
6.146	27.136
6.169	26.640
6.212	28.687
6.258	27.447
6.326	27.137
6.327	26.331
6.343	31.602
6.347	28.439
6.415	27.695
6.526	29.060
6.549	28.316
6.616	29.185
6.616	28.627
6.618	27.387
6.618	26.891
6.665	25.589
6.707	27.449
6.711	24.535
6.751	29.186
6.793	31.170
6.797	28.008
6.800	25.527
6.819	28.442
6.820	27.202
6.820	27.078
6.821	26.520
6.841	28.938
6.842	27.822
6.975	29.683
6.976	28.195
7.000	27.079
7.023	26.521
7.024	25.529
7.133	28.630
7.135	27.080
7.157	27.700
7.201	28.258
7.226	26.522
7.245	29.251
7.246	28.817
7.247	27.080
7.289	30.553
7.380	29.375
7.382	27.577
7.472	27.578
7.561	27.888
7.651	27.827
7.673	28.757
7.673	28.075
7.719	27.455
7.741	28.447
7.807	29.068
7.854	27.332
7.899	27.146
7.965	28.573
7.966	27.643
8.010	29.069
8.145	28.450
8.169	27.334
8.215	26.218
8.303	27.955
8.304	26.714
8.370	28.637
8.417	26.839
8.437	28.638
8.483	28.142
8.529	27.088
8.550	28.576
8.596	27.584
8.686	27.027
8.729	29.011
8.731	27.337
8.750	30.128
8.751	29.384
8.775	27.833
8.866	27.338
8.933	27.214
8.976	29.137
9.000	28.331
9.024	26.595
9.047	25.664
9.090	27.649
9.135	28.021
9.248	27.464
9.382	28.271
9.653	26.846
9.720	27.467
9.877	27.654
9.986	31.065
10.191	28.152
11.136	27.475
11.202	28.716
11.246	29.460
11.313	30.329
12.100	29.589
12.778	27.051
13.205	26.743
15.113	29.049
17.048	28.316];
data.tL(:,1) = 365 * (0.9 + data.tL(:,1)); % convert yr to d
units.tL   = {'d', 'cm'};  label.tL = {'time since birth', 'total length'};  
temp.tL    = C2K(15.1);  units.temp.tL = 'K'; label.temp.tL = 'temperature';
bibkey.tL = 'ViscTrip2018';

% length-weight
data.LW = [ ... length (cm), weight (g)
6.405	6.020
7.190	12.040
7.479	8.007
7.562	6.020
8.306	12.040
8.926	13.043
9.050	19.064
9.421	17.057
9.876	20.067
10.124	27.090
10.124	19.064
10.331	19.064
10.826	25.084
14.628	49.164
15.909	60.201
16.901	81.271
16.942	74.248
17.190	79.264
17.438	87.291
17.975	91.304
17.975	80.268
18.058	92.308
18.058	104.348
18.595	98.328
18.595	94.314
18.760	108.361
18.967	115.385
19.050	106.355
19.132	95.318
19.174	113.378
19.339	97.324
19.463	101.338
19.504	111.371
19.545	122.408
19.711	110.368
19.917	128.428
20.083	137.458
20.124	123.411
20.372	113.378
20.413	128.428
22.769	175.585
22.975	184.615
23.017	236.789
23.017	195.652
23.306	190.635
23.388	199.666
23.430	190.635
23.471	210.702
23.636	243.813
23.636	197.659
23.678	237.793
23.719	221.739
23.760	225.752
23.843	221.739
23.843	214.716
23.884	238.796
23.926	192.642
24.215	248.829
24.256	210.702
24.298	224.749
24.339	229.766
24.504	203.679
24.545	244.816
24.587	230.769
24.587	257.860
24.669	252.843
24.752	228.763
24.793	210.702
24.835	216.722
24.917	278.930
25.041	250.836
25.083	297.993
25.124	255.853
25.165	314.047
25.207	239.799
25.248	229.766
25.289	221.739
25.331	205.686
25.372	266.890
25.413	235.786
25.455	259.866
25.496	280.936
25.537	290.970
25.579	214.716
25.620	309.030
25.661	252.843
25.661	275.920
25.702	350.167
25.744	242.809
25.785	300.000
25.785	241.806
25.826	268.896
25.909	254.849
25.950	313.043
25.950	245.819
25.992	330.100
26.033	281.940
26.157	313.043
26.198	300.000
26.240	351.171
26.240	291.973
26.281	269.900
26.322	319.064
26.364	292.977
26.364	340.134
26.364	277.926
26.364	249.833
26.364	245.819
26.405	256.856
26.488	288.963
26.529	349.164
26.529	307.023
26.570	379.264
26.570	318.060
26.570	265.886
26.612	274.916
26.694	337.124
26.777	370.234
26.777	356.187
26.777	324.080
26.818	364.214
26.818	296.990
26.860	304.013
26.901	350.167
26.983	332.107
26.983	317.057
27.025	384.281
27.025	300.000
27.025	255.853
27.066	285.953
27.066	230.769
27.066	259.866
27.107	278.930
27.149	368.227
27.149	300.000
27.149	276.923
27.190	350.167
27.190	310.033
27.190	291.973
27.231	248.829
27.273	272.910
27.314	326.087
27.355	412.375
27.355	317.057
27.397	358.194
27.397	273.913
27.438	391.304
27.438	304.013
27.479	334.114
27.521	434.448
27.521	380.268
27.521	278.930
27.562	294.983
27.603	370.234
27.603	353.177
27.686	334.114
27.686	303.010
27.727	342.140
27.727	263.880
27.769	366.221
27.769	329.097
27.851	377.258
27.893	404.348
27.893	278.930
27.934	266.890
27.975	352.174
27.975	336.120
28.017	368.227
28.058	365.217
28.058	324.080
28.058	290.970
28.099	314.047
28.306	442.475
28.306	420.401
28.306	362.207
28.347	351.171
28.347	344.147
28.347	327.090
28.347	383.278
28.388	360.201
28.388	360.201
28.388	339.130
28.388	286.957
28.430	375.251
28.471	460.535
28.471	373.244
28.471	410.368
28.471	359.197
28.471	310.033
28.554	370.234
28.595	405.351
28.595	301.003
28.636	434.448
28.636	448.495
28.636	318.060
28.678	425.418
28.678	395.318
28.760	356.187
28.802	380.268
28.802	335.117
28.843	416.388
28.843	362.207
28.884	408.361
28.884	347.157
28.967	388.294
28.967	282.943
29.008	427.425
29.008	402.341
29.008	338.127
29.008	302.007
29.091	429.431
29.091	323.077
29.215	419.398
29.256	402.341
29.339	496.655
29.339	362.207
29.339	372.241
29.421	413.378
29.421	346.154
29.421	352.174
29.463	448.495
29.463	327.090
29.545	456.522
29.587	338.127
29.628	443.478
29.628	437.458
29.628	401.338
29.711	417.391
29.793	459.532
29.793	383.278
29.835	483.612
29.876	390.301
30.000	439.465
30.000	402.341
30.000	409.365
30.041	447.492
30.083	380.268
30.165	485.619
30.165	430.435
30.165	411.371
30.248	336.120
30.289	444.482
30.331	500.669
30.331	427.425
30.372	382.274
30.455	377.258
30.537	422.408
30.537	458.528
30.537	383.278
30.661	500.669
30.826	561.873
31.074	406.354
31.198	519.732
31.281	584.950
31.364	401.338
31.488	441.472
31.488	423.411
31.570	474.582
31.653	489.632
31.653	352.174
31.736	451.505
32.107	589.967];
units.LW   = {'cm', 'g'};  label.LW = {'total length','weight'};  
bibkey.LW = 'ViscTrip2018';

%% set weights for all real data
weights = setweights(data, []);
weights.tL = 15 * weights.tL;
weights.Wwi = 3 * weights.Wwi;
weights.Wwb = 3 * weights.Wwb;
weights.Ri = 5 * weights.Ri;
weights.Wwp = 0 * weights.Wwp;
weights.Lp = 10 * weights.Lp;

%% 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;

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

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

%% Links
metaData.links.id_CoL = '52CCT'; % Cat of Life
metaData.links.id_ITIS = ''; % ITIS
metaData.links.id_EoL = '46570754'; % Ency of Life
metaData.links.id_Wiki = 'Meuschenia_scaber'; % Wikipedia
metaData.links.id_ADW = 'Meuschenia_scaber'; % ADW
metaData.links.id_Taxo = '188196'; % Taxonomicon
metaData.links.id_WoRMS = '127408'; % WoRMS
metaData.links.id_fishbase = 'Meuschenia-scaber'; % fishbase

%% References
bibkey = 'Wiki'; type = 'Misc'; bib = ...
'howpublished = {\url{http://en.wikipedia.org/wiki/Meuschenia_scaber}}';
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 = 'ViscTrip2018'; type = 'Article'; bib = [ ... 
'author = {Visconti, V. and E.D.L. Trip and M.H. Griffiths and K.D Clements}, ' ... 
'year = {2018}, ' ...
'title = {Life-history traits of the leatherjacket \emph{Meuschenia scaber}, a long-lived monacanthid}, ' ...
'journal = {J. Fish Biol.}, ' ...
'volume = {92(2)}, ' ...
'pages = {470-486}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'ViscTrip2018a'; type = 'Article'; bib = [ ... 
'doi = {10.1080/00288330.2017.1331919}, ' ...
'author = {Valerio Visconti and Elizabeth D. L. Trip and Marc H. Griffiths and Kendall D. Clements}, ' ... 
'year = {2018}, ' ...
'title = {Reproductive biology of the leatherjacket, \emph{Meuschenia scaber} ({M}onacanthidae) ({F}orster 1801) in the {H}auraki {G}ulf, {N}ew {Z}ealand}, ' ...
'journal = {New Zealand Journal of Marine and Freshwater Research}, ' ...
'volume = {52(1)}, ' ...
'pages = {82-99}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'fishbase'; type = 'Misc'; bib = ...
'howpublished = {\url{hhttp://www.fishbase.se/summary/Meuschenia-scaber.html}}';
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
