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

%% set metaData
metaData.phylum     = 'Chordata'; 
metaData.class      = 'Actinopterygii'; 
metaData.order      = 'Tetraodontiformes'; 
metaData.family     = 'Monacanthidae';
metaData.species    = 'Thamnaconus_modestus'; 
metaData.species_en = 'Black scraper'; 

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

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

metaData.COMPLETE = 2.5; % using criteria of LikaKear2011

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

%% set data
% zero-variate data

data.am = 10 * 365; units.am = 'd';   label.am = 'life span';                bibkey.am = 'KimBae2016';   
  temp.am = C2K(25);  units.temp.am = 'K'; label.temp.am = 'temperature';

data.Lp  = 25.9;   units.Lp  = 'cm';  label.Lp  = 'total length at puberty';  bibkey.Lp  = 'fishbase'; 
  comment.Lp = 'estimate, derived from other species';
data.Li  = 37.4;   units.Li  = 'cm';  label.Li  = 'ultimate total length';    bibkey.Li  = 'fishbase';

data.Wwb = 9.7e-5;  units.Wwb = 'g';   label.Wwb = 'wet weight at puberty';    bibkey.Wwb = 'guess';
  comment.Wwb = 'based on egg diameter of 0.57 mm of Stephanolepis_hispidus: pi/6*0.057^3';
data.Wwp = 205.8;  units.Wwp = 'g';   label.Wwp = 'wet weight at birth';    bibkey.Wwp = 'fishbase';
  comment.Wwp = 'based on 0.01349*Lp^2.96, see F1';
data.Wwi = 610.5;   units.Wwi = 'g';   label.Wwi = 'ultimate wet weight';    bibkey.Wwi = 'fishbase';
  comment.Wwi = 'based on 0.01349*Li^2.96, see F1';

data.GSI = 0.15; units.GSI = 'g/g';  label.GSI = 'gonado somatic index';   bibkey.GSI = 'KimBae2016';
  temp.GSI = C2K(25);  units.temp.GSI = 'K'; label.temp.GSI = 'temperature';
  
% univariate data
% time-length-weight
data.tLW = [ ... % time since birth (yr), total length (cm), weight (g)
    0 19.77 98.96
    1 20.28 102.41
    2 25.33 248.75
    3 27.58 303.79
    4 30.28 435.39
    5 33.54 552.07
    6 35.93 638.77
    7 37.75 683.62
    8 38.60 772.49
    9 38.60 772.49];
data.tLW(:,1) = 365 * (0.9 + data.tLW(:,1)); % convert yr to d
units.tLW   = {'d', 'cm', 'g'};  label.tLW = {'time since birth', 'total length', 'weight'};  
temp.tLW    = C2K(25);  units.temp.tLW = 'K'; label.temp.tLW = 'temperature';
bibkey.tLW = 'KimBae2016'; treat.tLW = {1 {'length','weight'}};

% length-weight
data.LW_f = [ ... length (cm), weight (g)
18.209	77.658
18.977	74.644
19.116	83.937
19.326	74.680
19.326	99.422
19.395	133.450
19.605	111.822
19.744	87.094
20.372	105.716
20.651	108.837
20.721	192.350
20.860	158.343
20.860	127.416
21.349	136.744
21.419	99.638
21.628	149.144
21.907	133.709
22.047	158.466
22.116	139.916
22.256	130.652
22.256	146.116
22.256	192.508
22.326	186.330
22.326	161.587
22.326	143.031
22.395	121.388
22.605	173.987
22.674	535.850
22.884	195.665
22.953	217.322
23.023	164.752
23.023	149.288
23.233	201.887
23.233	183.330
23.302	177.152
23.302	167.874
23.302	223.544
23.372	195.716
23.721	208.123
23.791	223.594
23.791	174.109
23.791	229.780
23.860	226.694
23.860	177.209
24.140	201.980
24.349	180.353
24.488	198.924
24.488	223.666
24.488	232.944
24.488	205.109
24.488	248.408
24.698	604.100
24.767	242.251
24.977	226.809
25.047	260.837
25.047	217.538
25.186	254.666
25.326	239.216
25.395	427.883
25.465	202.117
25.465	195.932
25.535	276.351
25.674	226.881
25.744	220.703
25.744	291.837
25.814	282.565
25.884	257.830
26.023	226.917
26.093	251.666
26.163	294.973
26.302	236.224
26.372	257.881
26.442	270.259
26.442	205.311
26.512	304.287
26.581	285.737
26.581	230.067
26.721	341.422
26.721	316.680
26.721	233.174
26.791	267.202
26.791	325.965
26.791	239.367
26.860	273.395
26.860	353.807
26.860	264.117
26.930	291.959
26.930	350.722
27.000	304.337
27.000	499.183
27.140	288.888
27.140	322.908
27.209	322.915
27.349	335.301
27.419	267.267
27.419	390.978
27.558	415.735
27.628	292.031
27.698	344.615
27.767	326.066
27.767	313.695
27.837	310.609
27.837	378.650
27.907	270.410
27.977	369.386
28.047	341.559
28.047	307.538
28.186	295.181
28.256	350.858
28.256	387.972
28.395	375.615
28.465	323.045
28.674	357.087
28.674	295.232
28.744	143.692
28.744	391.115
28.814	338.545
28.884	177.727
28.953	462.271
28.953	344.745
29.023	289.082
29.093	434.450
29.163	261.261
29.163	316.931
29.163	400.436
29.163	406.622
29.233	360.238
29.302	375.709
29.372	480.870
29.442	310.775
29.442	388.094
29.442	369.537
29.581	357.181
29.651	431.415
29.721	419.051
29.791	344.831
29.791	369.573
29.791	394.316
29.860	326.282
29.860	378.859
29.860	480.921
29.860	378.859
29.860	338.653
29.930	419.072
29.930	450.000
30.000	530.420
30.140	403.630
30.209	363.431
30.279	514.985
30.279	428.387
30.279	351.067
30.349	459.322
30.419	459.329
30.419	425.308
30.488	443.872
30.488	385.109
30.698	481.007
30.698	391.316
30.698	416.059
30.767	586.169
30.767	511.942
30.767	431.530
30.837	592.362
30.837	487.207
30.837	419.166
30.977	453.201
30.977	428.459
31.047	425.373
31.116	471.772
31.186	450.130
31.186	546.006
31.256	453.230
31.256	440.858
31.395	512.007
31.395	474.893
31.395	140.873
31.465	576.962
31.535	493.465
31.605	542.956
31.605	456.358
31.605	419.245
31.605	317.183
31.605	505.843
31.674	521.314
31.674	546.056
31.674	425.438
31.744	592.455
31.884	474.944
31.953	595.570
31.953	502.786
32.023	453.309
32.093	555.378
32.093	391.460
32.163	527.550
32.163	481.158
32.233	583.227
32.233	601.784
32.302	478.080
32.302	431.688
32.372	440.974
32.442	570.878
32.512	493.565
32.512	533.771
32.512	555.421
32.512	394.596
32.791	505.965
32.791	539.986
32.860	580.199
32.930	422.474
33.000	496.708
33.000	475.059
33.140	583.321
33.140	434.867
33.209	567.864
33.209	521.472
33.279	623.541
33.349	481.280
33.419	515.308
33.628	691.618
33.628	620.484
33.698	410.182
33.767	654.519
33.767	530.808
33.837	595.764
33.907	549.379
33.907	400.926
33.977	496.809
34.047	657.641
34.047	620.528
34.047	574.136
34.116	626.720
34.116	564.865
34.186	747.346
34.256	700.962
34.326	574.165
34.326	611.278
34.326	608.185
34.326	530.866
34.465	629.849
34.465	567.993
34.535	719.547
34.814	682.462
34.814	623.700
34.884	735.047
34.884	639.171
34.884	595.872
34.884	438.140
35.023	611.350
35.093	530.945
35.233	663.949
35.372	595.922
35.442	657.785
35.512	834.081
35.512	428.926
35.581	756.768
35.651	654.714
35.651	543.373
35.721	707.298
35.860	605.251
35.930	531.031
36.000	824.853
36.140	636.207
36.279	583.644
36.698	716.677
36.698	602.244
36.837	772.362
36.977	695.057
37.047	661.043
37.256	806.425
37.744	1010.600
38.512	769.442
38.512	348.823
38.930	868.454
39.837	806.692
42.070	1054.344];
units.LW_f   = {'cm', 'g'};  label.LW_f = {'total length','weight','females'};  
bibkey.LW_f = 'KimBae2016';
%
data.LW_m = [ ... length (cm), weight (g)
17.579	64.782
17.869	262.211
18.276	80.206
19.391	104.884
19.530	89.460
19.669	95.630
19.808	86.375
19.810	123.393
19.878	101.799
20.020	144.987
20.366	114.139
20.574	98.715
20.645	120.308
20.713	95.630
20.716	132.648
21.007	360.925
21.063	117.224
21.201	107.969
21.273	141.902
21.414	175.835
21.550	126.478
21.829	123.393
21.969	148.072
21.970	151.157
22.318	163.496
22.455	129.563
22.458	169.666
22.459	191.260
22.524	114.139
22.595	135.733
22.595	138.817
22.666	154.242
22.686	505.913
22.806	166.581
23.013	148.072
23.155	182.005
23.215	18.509
23.362	151.157
23.435	209.769
23.501	160.411
23.572	185.090
23.644	215.938
23.711	182.005
23.784	231.362
23.921	194.344
24.058	163.496
24.339	197.429
24.410	225.193
24.546	169.666
24.548	206.684
24.550	246.787
24.616	182.005
24.894	169.666
24.965	197.429
24.966	209.769
24.967	225.193
24.968	243.702
25.243	191.260
25.455	234.447
25.523	209.769
25.523	209.769
25.524	225.193
25.803	246.787
25.866	126.478
25.943	256.041
26.013	268.380
26.081	228.278
26.293	283.805
26.360	246.787
26.428	212.853
26.571	277.635
26.634	160.411
26.639	249.871
26.639	256.041
26.708	240.617
26.780	286.889
26.847	243.702
26.920	305.398
27.055	222.108
27.127	262.211
27.197	280.720
27.333	215.938
27.335	246.787
27.336	277.635
27.403	219.023
27.405	252.956
27.407	289.974
27.408	314.653
27.547	305.398
27.685	286.889
27.753	256.041
27.897	336.247
27.966	336.247
28.032	265.296
28.034	308.483
28.105	320.823
28.169	228.278
28.176	357.841
28.312	289.974
28.312	302.314
28.448	240.617
28.592	330.077
28.731	317.738
28.799	299.229
28.802	339.332
28.802	348.586
28.868	283.805
28.943	376.350
29.074	234.447
29.287	308.483
29.289	339.332
29.359	348.586
29.430	376.350
29.432	397.943
29.566	314.653
29.706	326.992
29.708	364.010
29.774	302.314
29.985	345.501
29.989	404.113
30.051	277.635
30.054	336.247
30.125	357.841
30.199	425.707
30.331	311.568
30.404	367.095
30.476	404.113
30.547	434.961
30.549	465.810
30.614	388.689
30.680	320.823
30.681	330.077
30.682	360.925
30.756	425.707
30.892	373.265
31.030	354.756
31.035	438.046
31.107	484.319
31.172	404.113
31.450	391.774
31.451	413.368
31.452	428.792
31.453	447.301
31.525	493.573
31.662	456.555
31.869	416.452
31.872	478.149
31.938	407.198
32.008	419.537
32.012	487.404
32.149	450.386
32.357	438.046
32.359	471.979
32.364	546.015
32.364	558.355
32.428	450.386
32.499	478.149
32.565	425.707
32.633	385.604
32.706	456.555
32.782	564.524
32.847	481.234
32.848	499.743
32.851	549.100
32.992	579.949
33.125	475.064
33.127	502.828
33.260	391.774
33.264	475.064
33.267	521.337
33.338	536.761
33.400	416.452
33.475	499.743
33.475	499.743
33.481	610.797
33.542	456.555
33.686	549.100
33.818	419.537
33.820	453.470
33.895	549.100
33.968	601.542
34.032	512.082
34.037	589.203
34.106	583.033
34.380	499.743
34.515	434.961
34.521	539.846
34.524	592.288
34.528	657.069
34.582	394.859
34.587	484.319
34.590	521.337
34.658	505.913
34.796	471.979
34.869	546.015
34.875	641.645
34.939	542.931
35.081	589.203
35.083	632.391
35.154	660.154
35.215	508.997
35.217	533.676
35.289	583.033
35.351	441.131
35.357	558.355
35.358	573.779
35.361	620.051
35.362	641.645
35.506	718.766
35.640	632.391
35.713	687.918
35.841	499.743
35.847	592.288
35.850	647.815
36.193	558.355
36.195	592.288
36.334	589.203
36.411	721.851
36.470	533.676
36.481	734.190
36.821	592.288
36.829	721.851
37.031	604.627
37.102	632.391
37.110	765.039
37.309	601.542
37.312	660.154
37.389	786.632
37.455	715.681
37.586	579.949
37.947	805.141
38.008	663.239
38.285	638.560
38.357	663.239
38.781	774.293
38.986	721.851
39.054	681.748
40.451	771.208];
units.LW_m   = {'cm', 'g'};  label.LW_m = {'total length','weight','males'};  
bibkey.LW_m = 'KimBae2016';

%% set weights for all real data
weights = setweights(data, []);
weights.tLW = 10 * weights.tLW;

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

%% pack auxData and txtData for output
auxData.temp = temp;
auxData.treat = treat;
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 supposed not to differ from females';
metaData.discussion = struct('D1', D1);

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

%% Links
metaData.links.id_CoL = '5635N'; % Cat of Life
metaData.links.id_ITIS = '646253'; % ITIS
metaData.links.id_EoL = '46570788'; % Ency of Life
metaData.links.id_Wiki = 'Thamnaconus_modestus'; % Wikipedia
metaData.links.id_ADW = 'Thamnaconus_modestus'; % ADW
metaData.links.id_Taxo = '188970'; % Taxonomicon
metaData.links.id_WoRMS = '277210'; % WoRMS
metaData.links.id_fishbase = 'Thamnaconus-modestus'; % fishbase

%% References
bibkey = 'Wiki'; type = 'Misc'; bib = ...
'howpublished = {\url{http://en.wikipedia.org/wiki/Thamnaconus_modestus}}';
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 = 'KimBae2016'; type = 'Article'; bib = [ ... 
'doi = {10.1007/s12601-016-0031-y}, ' ...
'author = {AhReum Kim and HoJin Bae and Hyeong-Gi Kim and Chul-Woong Oh}, ' ... 
'year = {2016}, ' ...
'title = {Age and growth of filefish, \emph{Thamnaconus modestus} ({G}\"{u}nther, 1877) off the {J}eju {I}sland of {K}orea}, ' ...
'journal = {Ocean Sci. J.}, ' ...
'volume = {51}, ' ...
'pages = {355–362}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'fishbase'; type = 'Misc'; bib = ...
'howpublished = {\url{hhttp://www.fishbase.se/summary/Thamnaconus-modestus.html}}';
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
