  function [data, auxData, metaData, txtData, weights] = mydata_Cranoglanis_multiradiatus
metaData.phylum     = 'Chordata'; 
metaData.class      = 'Actinopterygii'; 
metaData.order      = 'Siluriformes'; 
metaData.family     = 'Cranoglanididae';
metaData.species    = 'Cranoglanis_multiradiatus'; 
metaData.species_en = 'Armorhead catfish'; 

metaData.ecoCode.climate = {'Cfa'};
metaData.ecoCode.ecozone = {'THp'};
metaData.ecoCode.habitat = {'biFr'};
metaData.ecoCode.embryo  = {'Fnfm'};
metaData.ecoCode.migrate = {};
metaData.ecoCode.food    = {'biCi','biCvf'};
metaData.ecoCode.gender  = {'D'};
metaData.ecoCode.reprod  = {'O'};

metaData.T_typical  = C2K(27.5); % K, body temp
metaData.data_0     = {'ab'; 'am'; 'Lp'; 'Li'; 'Wwb'; 'Wwp'; 'Wwi'}; 
metaData.data_1     = {'t-L'; 'L-Ww'; 'L-N'; 'Ww-N'}; 
metaData.COMPLETE = 2.5; % using criteria of LikaKear2011

metaData.author   = {'Bas Kooijman'};        
metaData.date_subm = [2023 11 09];                           
metaData.email    = {'bas.kooijman@vu.nl'};                 
metaData.address  = {'VU University, Amsterdam'}; 

metaData.curator     = {'Dina Lika'};
metaData.email_cur   = {'lika@uoc.gr'}; 
metaData.date_acc    = [2023 11 09];

%% set data
% zero-variate data
data.ab = 9; units.ab = 'd';    label.ab = 'age at birth';           bibkey.ab = 'guess';   
  temp.ab = C2K(27.5);  units.temp.ab = 'K'; label.temp.ab = 'temperature';
data.am = 7*365; units.am = 'd';    label.am = 'life span';              bibkey.am = 'fishbase';   
  temp.am = C2K(27.5);  units.temp.am = 'K'; label.temp.am = 'temperature';

data.Lp = 23.9;     units.Lp = 'cm';   label.Lp = 'total length at puberty';bibkey.Lp = 'LiuYong2022';
data.Li = 30.7;     units.Li = 'cm';   label.Li = 'ultimate total length';  bibkey.Li = 'fishbase';

data.Wwb = 1.2e-3;  units.Wwb = 'g';    label.Wwb = 'wet weight at birth';    bibkey.Wwb = 'LiuYong2022';
  comment.Wwb = 'based on egg diameter of 1.3 mm: pi/6*.13^3';
data.Wwp = 77.7;   units.Wwp = 'g';    label.Wwp = 'wet weight at puberty';    bibkey.Wwp = {'fishbase','LiuYong2022'};
  comment.Wwp = 'based on 0.00389*Lp^3.12, see F1';
data.Wwi = 150;   units.Wwi = 'g';    label.Wwi = 'ultimate wet weight';    bibkey.Wwi = 'fishbase';
  comment.Wwi = 'based on 0.00389*Li^3.12, see F1';


% uni-variate data
% time-length
data.tL_f = [ ... % time since birth (yr), total length (cm)
0.073	16.684
0.081	16.266
0.161	18.773
0.161	18.773
0.161	19.765
0.248	17.833
0.248	19.347
0.249	19.922
0.257	18.930
0.318	17.990
0.318	19.138
0.326	17.676
0.335	18.460
0.336	19.452
0.352	17.415
0.421	15.640
0.423	19.765
0.440	18.773
0.482	15.535
0.483	16.005
0.484	20.131
0.491	14.856
0.491	15.117
0.491	16.423
0.508	14.491
0.569	14.386
0.570	16.789
0.580	19.765
0.587	16.057
0.588	17.102
0.596	15.483
0.639	13.864
0.649	18.668
0.665	15.222
0.676	19.608
0.693	19.347
0.726	14.804
0.735	15.326
0.736	15.901
0.832	16.214
0.849	15.431
0.901	14.752
0.909	14.282
0.910	14.961
0.910	16.580
0.919	15.431
0.919	17.415
0.920	17.781
0.929	19.661
0.955	17.833
0.955	19.713
0.964	19.504
0.980	16.005
1.104	21.488
1.105	21.906
1.165	21.332
1.166	21.958
1.174	20.653
1.174	20.914
1.261	20.444
1.261	20.601
1.261	20.966
1.279	21.697
1.349	21.123
1.349	21.384
1.418	20.287
1.428	22.010
1.436	20.757
1.488	21.279
1.584	20.235
1.662	20.392
1.741	20.757
1.750	21.488
1.750	21.645
1.776	20.914
1.820	21.384
1.838	21.958
1.881	20.757
1.907	20.287
1.907	21.958
1.916	21.593
1.960	21.958
1.977	20.809
1.986	21.123
2.082	22.846
2.100	23.211
2.100	23.786
2.108	22.428
2.170	23.734
2.179	23.577
2.187	22.219
2.187	22.637
2.240	23.838
2.265	22.115
2.283	22.533
2.283	22.950
2.283	23.107
2.283	23.473
2.326	22.376
2.335	22.063
2.344	22.742
2.423	23.316
2.440	22.533
2.441	23.786
2.510	22.637
2.528	23.264
2.562	23.003
2.571	22.585
2.597	22.480
2.597	23.473
2.667	22.115
2.667	22.585
2.737	22.272
2.824	22.428
2.894	23.211
2.911	22.219
2.920	23.681
2.937	22.533
2.938	23.003
2.955	22.272
2.955	22.794
2.964	23.681
3.008	23.316
3.060	24.413
3.095	24.569
3.104	24.883
3.165	24.830
3.174	24.413
3.244	24.413
3.252	24.674
3.262	25.614
3.357	25.091
3.427	24.099
3.427	24.726
3.479	24.674
3.488	24.204
3.907	24.256
3.985	24.099
4.065	27.285
4.074	27.807
4.196	27.807
4.248	27.232
4.257	26.762
4.275	28.225
4.354	28.642
4.597	26.136];
data.tL_f(:,1) = 365 * (0.8+data.tL_f(:,1)); % convert yr to d
for i=2:size(data.tL_f,1); if data.tL_f(i,1)<=data.tL_f(i-1,1);data.tL_f(i,1)=data.tL_f(i-1,1)+1e-3;end;end
units.tL_f = {'d', 'cm'};  label.tL_f = {'time since birth', 'total length','females'};  
temp.tL_f = C2K(27.5);  units.temp.tL_f = 'K'; label.temp.tL_f = 'temperature';
bibkey.tL_f = 'LiuYong2022';
comment.tL_f = 'females from the Nandu River from October 2019 to September 2020';
%
data.tL_m = [ ... % time since birth (yr), total length (cm)
0.060	18.826
0.067	16.738
0.069	19.662
0.076	17.521
0.138	18.149
0.145	16.374
0.148	19.611
0.152	15.016
0.163	17.105
0.164	18.933
0.217	19.769
0.224	17.367
0.225	18.255
0.231	15.697
0.232	16.584
0.234	19.248
0.249	16.167
0.254	11.676
0.259	17.003
0.299	13.453
0.313	19.093
0.319	16.586
0.326	14.811
0.327	15.229
0.336	15.647
0.336	16.064
0.338	17.579
0.338	18.205
0.338	18.675
0.340	19.929
0.398	16.588
0.398	17.214
0.400	18.781
0.433	17.685
0.465	13.508
0.469	18.208
0.475	14.918
0.475	15.388
0.476	16.172
0.480	11.629
0.491	14.031
0.493	16.433
0.496	19.044
0.505	20.141
0.507	12.621
0.519	15.703
0.529	17.060
0.536	15.860
0.538	17.792
0.552	13.301
0.553	14.659
0.555	17.270
0.561	13.876
0.565	19.254
0.568	12.205
0.570	14.294
0.571	15.338
0.572	16.696
0.624	16.175
0.651	17.899
0.659	16.541
0.679	19.413
0.721	18.213
0.723	19.780
0.739	18.736
0.791	18.371
0.791	18.633
0.793	20.147
0.841	15.292
0.862	20.096
0.867	15.240
0.867	15.710
0.885	16.598
0.891	13.256
0.893	15.606
0.897	19.470
0.904	17.904
0.920	16.129
0.921	17.591
0.922	18.218
0.938	17.226
0.939	18.583
0.957	18.740
0.958	19.524
0.963	16.130
0.965	17.801
0.967	19.889
1.063	20.936
1.099	21.824
1.116	21.250
1.125	21.616
1.142	21.199
1.150	20.415
1.177	20.886
1.237	20.678
1.254	20.209
1.255	21.305
1.256	22.037
1.307	20.105
1.325	20.994
1.360	21.569
1.403	20.682
1.412	21.413
1.481	20.318
1.482	20.945
1.482	21.832
1.586	20.529
1.586	20.686
1.743	21.420
1.744	21.733
1.744	22.099
1.830	21.370
1.831	21.996
1.839	21.631
1.917	21.163
1.926	21.476
1.927	21.842
1.961	20.798
1.978	20.485
1.979	21.843
2.075	22.315
2.075	22.732
2.084	23.098
2.085	24.090
2.094	23.464
2.172	23.100
2.180	22.787
2.181	23.466
2.181	23.936
2.206	22.265
2.242	23.728
2.249	22.527
2.259	22.997
2.268	23.415
2.268	23.990
2.320	23.051
2.345	22.581
2.355	23.469
2.355	23.783
2.416	23.262
2.424	22.322
2.493	22.532
2.494	23.002
2.502	22.115
2.520	23.525
2.563	22.220
2.590	23.735
2.599	23.318
2.737	22.224
2.746	22.538
2.755	23.164
2.756	23.739
2.833	22.801
2.850	22.383
2.851	23.480
2.921	22.855
2.921	23.377
2.946	22.228
2.974	24.004
2.990	22.282
3.088	24.999
3.088	25.156
3.166	24.322
3.167	25.732
3.201	24.845
3.244	24.689
3.254	25.264
3.263	25.734
3.272	25.995
3.358	25.057
3.418	24.275
3.497	24.224
3.497	24.590
3.506	25.269
3.749	24.230
3.760	26.057
3.828	24.283
3.915	24.181
3.916	25.277
3.916	25.800
3.924	24.755
3.960	26.009
3.976	24.182
3.976	24.965
3.977	25.488
4.152	26.327
4.239	26.903
4.240	27.895
4.256	26.224
4.257	27.269
4.509	26.230
4.520	28.737
4.822	26.184];
data.tL_m(:,1) = 365 * (0.8+data.tL_m(:,1)); % convert yr to d
for i=2:size(data.tL_m,1); if data.tL_m(i,1)<=data.tL_m(i-1,1);data.tL_m(i,1)=data.tL_m(i-1,1)+1e-3;end;end
units.tL_m = {'d', 'cm'};  label.tL_m = {'time since birth', 'total length','males'};  
temp.tL_m = C2K(27.5);  units.temp.tL_m = 'K'; label.temp.tL_fm = 'temperature';
bibkey.tL_m = 'LiuYong2022';
comment.tL_m = 'males from the Nandu River from October 2019 to September 2020';

% length-weight
data.LW_f = [ ... % total length (cm), weight (g)
13.688	54.996
14.277	39.247
14.428	58.556
14.770	42.791
15.117	49.833
15.216	56.857
15.466	77.927
15.562	58.636
15.563	67.408
16.056	62.179
16.202	51.663
16.254	70.965
16.649	74.502
16.799	83.284
17.193	79.803
17.540	93.862
17.635	69.308
17.641	109.659
17.786	90.371
17.839	114.936
18.627	106.219
18.633	141.308
18.783	153.599
18.973	111.507
19.222	127.314
19.316	101.005
19.516	113.299
19.521	144.879
19.664	115.064
19.666	130.854
19.722	167.700
19.769	155.422
19.864	130.868
20.187	295.803
20.209	130.892
20.312	157.215
20.359	144.937
20.700	116.891
20.702	132.681
20.765	213.387
20.854	153.744
21.107	195.867
21.147	139.730
21.248	155.526
21.315	259.040
21.354	195.884
21.449	174.838
21.592	146.778
21.843	174.866
21.895	187.151
21.948	209.961
22.100	234.533
22.187	166.118
22.195	216.996
22.285	160.862
22.340	194.199
22.386	178.413
22.427	125.784
22.528	143.335
22.640	220.536
22.926	164.416
22.929	180.206
22.982	199.507
22.987	234.596
23.027	178.458
23.135	231.097
23.138	250.396
23.220	152.156
23.325	187.251
23.330	217.076
23.631	248.676
23.668	174.994
23.721	196.051
23.769	192.545
23.824	222.374
23.875	238.167
23.982	289.051
24.111	169.762
24.179	283.802
24.266	217.141
24.267	220.650
24.270	236.440
24.271	243.458
24.291	364.512
24.312	194.338
24.377	292.588
24.565	236.461
24.766	255.773
24.813	239.987
24.859	224.201
24.867	273.324
25.063	266.320
25.408	262.836
26.062	343.583
26.897	324.344
27.255	398.053
27.427	545.433
27.951	433.190
27.973	568.279
28.329	331.462
28.701	499.909];
units.LW_f = {'cm', 'g'};  label.LW_f = {'total length','weight','females'};  
bibkey.LW_f = 'LiuYong2022';
%
data.LW_m = [ ... % total length (cm), weight (g)
11.483	25.613
11.582	13.750
12.073	31.583
12.515	31.609
13.055	46.478
13.301	27.205
13.644	31.676
13.841	49.492
14.086	42.088
14.086	50.990
14.430	53.978
14.479	43.595
14.528	61.402
14.921	51.040
15.020	56.980
15.118	39.182
15.265	46.609
15.363	61.452
15.462	51.072
15.658	61.469
15.658	59.986
15.953	68.905
16.051	62.976
16.149	52.596
16.346	68.928
16.444	79.320
16.444	49.646
16.935	71.931
17.033	80.839
17.181	79.364
17.377	68.990
17.475	95.702
17.623	137.253
17.672	140.224
17.721	109.069
17.721	85.331
17.770	73.464
17.967	100.182
18.016	112.054
18.016	85.348
18.114	125.413
18.360	89.819
18.556	97.250
18.556	83.896
18.605	118.024
18.654	110.608
18.998	112.113
18.998	129.917
19.195	80.967
19.293	138.836
19.342	122.519
19.440	101.753
19.637	69.124
19.735	113.640
19.833	94.358
19.980	134.426
20.128	159.657
20.128	98.826
20.177	149.275
20.275	140.378
20.324	168.571
20.422	195.283
20.668	156.722
20.668	130.016
20.717	115.182
20.717	110.731
20.717	147.823
20.717	210.137
20.766	165.630
20.914	176.024
21.061	137.458
21.110	125.591
21.159	158.235
21.356	146.377
21.405	164.184
21.552	177.546
21.552	134.519
21.601	156.777
21.798	183.495
21.798	153.822
21.847	168.661
21.994	201.311
21.994	176.089
22.141	152.358
22.191	211.709
22.191	233.964
22.240	165.717
22.289	186.492
22.338	180.560
22.485	159.797
22.485	152.379
22.583	217.667
22.583	251.791
22.633	195.414
22.633	239.925
22.682	167.227
22.682	177.613
22.829	208.779
22.878	211.749
22.927	198.399
22.927	159.824
22.927	140.536
22.976	300.776
22.976	188.016
23.075	159.832
23.222	263.699
23.222	228.090
23.222	195.449
23.271	199.903
23.320	277.058
23.418	256.292
23.517	226.624
23.566	164.312
23.566	182.117
23.615	278.559
23.811	241.478
23.861	253.351
23.861	171.748
23.910	225.164
23.910	216.262
24.057	234.074
24.106	204.404
24.106	143.573
24.155	177.701
24.204	244.469
24.253	225.184
24.352	214.804
24.499	281.579
24.548	259.326
24.548	201.463
24.597	241.525
24.646	228.175
24.695	272.688
24.695	211.857
24.843	217.801
24.990	330.569
25.088	208.913
25.138	300.904
25.138	251.943
25.285	220.794
25.530	275.705
25.530	222.293
25.580	263.838
25.678	243.073
25.972	302.437
25.972	283.150
26.022	292.055
26.022	274.250
26.758	388.537
26.955	348.490
27.102	372.237
27.741	360.406
28.379	379.732];
units.LW_m = {'cm', 'g'};  label.LW_m = {'total length','weight','males'};  
bibkey.LW_m = 'LiuYong2022';

% length-fecundity
data.LN = [ ... % total length (cm), fecundity (#)
19.267	620.285
19.625	2583.238
19.936	573.154
20.486	2401.465
20.629	4990.217
20.629	2802.717
20.773	3114.684
20.869	2355.399
20.940	1685.489
21.036	1819.062
21.179	3336.386
21.203	1997.011
21.371	3112.461
21.562	2531.392
21.633	4807.910
21.729	5164.697
21.753	2709.252
21.920	8155.057
21.968	2842.380
22.112	966.847
22.159	4225.597
22.375	2573.011
22.422	6099.618
22.566	1590.156
22.590	2438.282
22.805	1232.125
22.996	2704.628
23.044	3909.806
23.163	5561.147
23.187	11766.415
23.235	4578.738
23.235	2480.523
23.259	9712.577
23.594	9354.190
23.594	5247.047
23.641	7970.083
23.785	8505.264
24.143	1852.144
24.215	6271.520
24.239	3771.431
24.263	4842.771
24.430	9261.791
24.502	3993.667
24.598	2520.097
27.801	11972.466];
units.LN = {'cm', '#'};  label.LN = {'total length','fecundity'};  
temp.LN = C2K(27.5);  units.temp.LN = 'K'; label.temp.LN = 'temperature';
bibkey.LN = 'LiuYong2022';

% weight-fecundity
data.WN = [ ... % weight (g), fecundity (#)
93.719	701.652
121.315	3317.546
122.419	2518.631
122.661	699.084
135.270	3449.444
144.387	2427.925
145.303	3049.145
145.504	1540.252
149.354	2604.999
151.043	4912.541
158.395	2160.409
161.360	2382.039
162.984	5177.753
167.330	2514.645
169.432	1715.642
171.009	4866.390
171.275	2869.326
172.373	2114.789
173.348	9792.218
175.084	4244.727
176.501	1093.713
177.292	2646.897
181.816	6152.413
192.015	4509.496
192.983	4731.304
197.365	9301.921
203.028	11742.246
204.516	8058.682
214.727	6327.007
216.499	8013.240
217.815	5616.674
218.247	2376.990
219.044	3885.795
223.302	1888.376
225.191	2687.025
229.006	4018.047
230.034	3796.063
232.384	8633.133
233.175	2686.317
234.817	5348.892
364.040	9242.749
430.535	12032.705];
units.WN = {'g', '#'};  label.WN = {'weight','fecundity'};  
temp.WN = C2K(27.5);  units.temp.WN = 'K'; label.temp.WN = 'temperature';
bibkey.WN = 'LiuYong2022';

%% set weights for all real data
weights = setweights(data, []);
weights.tL_f = weights.tL_f * 3;
weights.tL_m = weights.tL_m * 3;
weights.Wwp = weights.Wwp * 0;
weights.Wwi = weights.Wwi * 0;
weights.ab = weights.ab * 0;

%% 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 = {'tL_f','tL_m'}; subtitle1 = {'Data for females, males'};
set2 = {'LW_f','LW_m'}; subtitle2 = {'Data for females, males'};
metaData.grp.sets = {set1,set2};
metaData.grp.subtitle = {subtitle1,subtitle2};

%% Discussion points
D1 = 'males are assumed to differ from females by {p_Am} only';
metaData.discussion = struct('D1',D1);

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

%% Links
metaData.links.id_CoL = 'Z54P'; % Cat of Life
metaData.links.id_ITIS = '640197'; % ITIS
metaData.links.id_EoL = '221478'; % Ency of Life
metaData.links.id_Wiki = 'Cranoglanis_multiradiatus'; % Wikipedia
metaData.links.id_ADW = 'Cranoglanis_multiradiatus'; % ADW
metaData.links.id_Taxo = '333746'; % Taxonomicon
metaData.links.id_WoRMS = '1525550'; % WoRMS
metaData.links.id_fishbase = 'Cranoglanis-multiradiatus'; % fishbase

%% References
bibkey = 'Wiki'; type = 'Misc'; bib = ...
'howpublished = {\url{http://en.wikipedia.org/wiki/wiki/Cranoglanis_multiradiatus}}';  
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 = 'LiuYong2022'; type = 'Article'; bib = [ ...
'doi = {10.1111/jai.14291}, ' ...
'author = {Fei Liu and Edwine Yongo and Zhice Liang and Qiongyao Fu and Bo Huang and Xing Wei Cai and Zhiqiang Guo}, ' ...
'year = {2022}, ' ...
'title = {Age, growth, reproductive biology and mortality of \emph{Cranoglanis multiradiatus}, a threatened freshwater fish in {H}ainan {I}sland, {C}hina}, ' ... 
'journal = {J Appl Ichthyol.}, ' ...
'volume = {38}, '...
'pages = {184–193}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'fishbase'; type = 'Misc'; bib = ...
'howpublished = {\url{https://www.fishbase.se/summary/Cranoglanis-multiradiatus.html}}';  
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];

