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

%% set metaData
metaData.phylum     = 'Chordata'; 
metaData.class      = 'Actinopterygii'; 
metaData.order      = 'Zeiformes'; 
metaData.family     = 'Oreosomatidae';
metaData.species    = 'Allocyttus_niger'; 
metaData.species_en = 'Black oreo'; 

metaData.ecoCode.climate = {'MC'};
metaData.ecoCode.ecozone = {'MPSW'};
metaData.ecoCode.habitat = {'0iMpb'};
metaData.ecoCode.embryo  = {'Mp'};
metaData.ecoCode.migrate = {'Mo'};
metaData.ecoCode.food    = {'bpPz', 'bpCi'};
metaData.ecoCode.gender  = {'D'};
metaData.ecoCode.reprod  = {'O'};

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

metaData.COMPLETE = 2.5; % using criteria of LikaKear2011

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

%% set data
% zero-variate data

data.ab = 36;        units.ab = 'd';    label.ab = 'age at hatch';              bibkey.ab = 'guess';   
  temp.ab = C2K(5.1); units.temp.ab = 'K'; label.temp.ab = 'temperature';
data.am = 100*365;    units.am = 'd';    label.am = 'life span';                 bibkey.am = 'HornMcMi2019';   
  temp.am = C2K(5.1); units.temp.am = 'K'; label.temp.am = 'temperature'; 

data.Lp  = 36;     units.Lp  = 'cm';  label.Lp  = 'total length at puberty';  bibkey.Lp  = 'fishbase'; 
data.Li  = 47;       units.Li  = 'cm';  label.Li  = 'ultimate total length';    bibkey.Li  = 'fishbase';

data.Wwb = 1/350;     units.Wwb = 'g';   label.Wwb = 'wet weight at birth';      bibkey.Wwb = 'ConrPank1989';
  comment.Wwb = 'based on 350 eggs/g';
data.Wwi = 1.65e3;     units.Wwi = 'g';   label.Wwi = 'ultimate wet weight';      bibkey.Wwi = 'Wiki';
  comment.Wwi = 'based on 0.01413*Li^3.03, see F1';

data.Ri  = 62000/365; units.Ri  = '#/d'; label.Ri  = 'maximum reprod rate';   bibkey.Ri  = 'fishbase';   
  temp.Ri = C2K(5.1);  units.temp.Ri = 'K'; label.temp.Ri = 'temperature';

% uni-variate data

% time-length
data.tL = [ ... % time since birth (yr), total length (cm)
3.564	25.348
3.904	24.286
3.904	26.259
4.074	23.906
4.243	25.121
4.413	24.590
4.583	23.224
4.583	23.224
4.583	25.273
4.752	21.934
4.752	24.969
4.752	25.728
4.922	25.956
5.092	26.335
5.092	27.246
5.092	24.135
5.262	24.818
5.262	24.438
5.431	29.371
5.601	24.818
5.601	25.653
5.771	26.260
5.941	28.461
5.941	28.461
5.941	22.769
5.941	22.693
5.941	25.653
6.110	25.198
6.110	24.135
6.280	29.675
6.450	31.421
6.620	27.247
6.789	28.082
6.789	25.654
6.959	26.337
7.129	32.180
7.129	29.600
7.129	27.475
7.298	26.640
7.298	27.703
7.468	28.689
7.468	25.199
7.468	23.984
7.468	26.033
7.638	23.605
7.977	27.551
8.147	25.427
8.317	25.882
8.656	28.083
8.656	24.516
8.826	29.525
8.826	25.124
8.826	27.780
8.996	28.842
8.996	26.490
9.165	29.981
9.165	30.815
9.165	30.815
9.165	31.498
9.165	25.351
9.165	26.945
9.165	27.856
9.335	24.972
9.844	26.111
9.844	26.111
10.014	27.022
10.014	24.745
10.184	29.298
10.184	24.821
10.523	34.231
10.523	26.946
10.523	25.959
10.693	31.196
10.693	24.442
10.693	28.388
10.863	31.044
10.863	30.740
10.863	30.209
10.863	28.009
10.863	26.643
11.033	33.397
11.033	27.098
11.033	23.987
11.202	29.299
11.372	26.415
11.372	28.009
11.542	33.321
11.542	32.714
11.542	28.844
11.542	28.844
11.542	27.705
11.542	25.884
11.542	25.732
11.542	29.906
11.542	30.134
11.711	34.459
11.711	31.576
11.881	35.294
11.881	32.031
11.881	26.643
12.051	33.928
12.051	30.893
12.051	26.871
12.051	29.527
12.390	32.411
12.390	31.500
12.560	32.411
12.560	28.161
12.560	27.251
12.730	31.880
12.730	30.590
12.730	29.224
12.900	33.246
12.900	32.411
12.900	35.902
12.900	31.425
12.900	30.969
12.900	28.010
12.900	25.050
13.069	30.362
13.069	29.983
13.069	23.684
13.409	28.390
13.409	25.885
13.409	26.037
13.579	26.872
13.748	27.252
13.748	23.609
13.918	29.301
14.088	29.984
14.088	31.805
14.257	31.805
14.257	31.198
14.427	33.930
14.427	25.582
14.597	36.207
14.597	28.163
14.767	31.122
14.936	30.439
14.936	35.676
14.936	34.082
14.936	27.783
14.936	27.176
14.936	24.824
15.106	29.453
15.106	33.096
15.106	34.537
15.106	26.797
15.276	30.743
15.276	30.667
15.276	28.543
15.276	33.096
15.446	29.681
15.446	33.779
15.446	31.654
15.615	28.770
15.615	34.614
15.955	31.275
15.955	33.172
15.955	27.784
16.124	35.069
16.294	30.213
16.294	29.454
16.294	32.641
16.294	27.633
16.464	28.999
16.464	28.392
16.464	31.503
16.464	26.343
16.634	34.235
16.634	35.070
16.634	31.503
16.803	29.985
16.803	28.088
16.803	37.270
16.803	33.931
16.973	30.820
16.973	35.525
16.973	36.208
17.143	32.034
17.143	26.191
17.313	32.945
17.482	30.441
17.482	33.704
17.482	26.571
17.482	26.571
17.652	25.736
17.652	29.227
17.992	32.566
18.161	30.593
18.161	30.138
18.161	26.723
18.331	34.084
18.501	30.973
18.501	29.228
18.501	27.938
18.501	36.816
18.670	33.477
18.670	32.187
18.840	28.393
18.840	29.911
19.010	32.870
19.180	31.125
19.180	34.768
19.349	27.331
19.349	27.255
19.689	30.139
19.689	29.380
19.689	28.014
19.689	32.415
19.859	31.505
19.859	32.416
19.859	31.884
19.859	30.594
19.859	34.389
19.859	32.416
20.198	33.251
20.198	29.153
20.198	28.773
20.368	31.581
20.368	29.456
20.368	28.166
20.537	32.037
20.707	37.804
20.707	29.988
20.877	30.519
20.877	33.023
20.877	26.649
21.047	34.921
21.047	35.224
21.047	27.711
21.216	31.506
21.216	28.395
21.386	30.747
21.556	36.666
21.556	31.278
21.726	33.707
21.726	30.520
21.726	32.265
21.895	31.810
21.895	31.506
21.895	28.471
22.065	37.881
22.065	34.694
22.065	34.997
22.065	28.167
22.065	27.409
22.235	33.935
22.405	32.873
22.574	33.859
22.574	30.293
22.574	30.065
22.744	33.480
22.744	32.114
22.744	27.788
22.914	36.895
23.083	34.239
23.083	34.239
23.083	29.534
23.253	35.833
23.253	32.494
23.253	30.900
23.423	31.735
23.593	38.944
23.593	35.833
23.762	32.797
23.932	33.329
23.932	30.217
24.102	35.530
24.102	29.762
24.272	34.847
24.272	32.039
24.441	30.521
24.441	30.521
24.611	33.481
24.781	32.950
24.950	35.834
24.950	35.302
24.950	31.356
24.950	30.749
24.950	29.080
25.120	36.669
25.120	33.937
25.120	34.392
25.120	32.495
25.460	35.606
25.460	34.392
25.460	32.723
25.460	32.874
25.460	30.901
25.460	27.638
25.629	29.839
25.799	35.986
25.799	34.165
25.799	33.937
25.799	31.660
25.799	30.750
25.799	30.219
25.799	29.915
25.799	29.308
25.969	34.317
25.969	28.322
26.139	32.495
26.308	35.152
26.308	29.308
26.308	27.487
26.478	33.482
26.648	33.255
26.648	31.585
26.818	32.572
26.818	31.206
26.818	27.639
26.987	38.567
27.157	34.621
27.157	32.041
27.157	30.523
27.157	29.461
27.327	33.938
27.496	28.323
27.666	31.055
27.666	34.090
27.666	28.019
27.836	30.068
27.836	30.372
27.836	31.814
27.836	35.835
27.836	34.470
27.836	32.952
28.006	30.448
28.006	31.055
28.006	31.738
28.006	38.795
28.006	35.532
28.006	29.385
28.175	32.421
28.345	37.354
28.345	36.898
28.345	33.559
28.345	32.952
28.515	32.876
28.854	27.109
28.854	27.413
28.854	27.716
28.854	31.283
28.854	32.421
28.854	32.421
29.024	28.475
29.024	35.001
29.194	28.931
29.194	30.145
29.194	34.015
29.194	35.077
29.364	33.029
29.364	36.595
29.703	37.051
29.873	34.319
29.873	37.962
30.042	29.766
30.042	31.967
30.212	28.097
30.212	30.146
30.212	31.284
30.552	29.615
30.552	28.704
30.552	29.387
30.552	33.940
30.721	33.030
30.721	35.610
30.721	37.355
31.061	34.927
31.231	30.450
31.231	32.954
31.231	29.615
31.231	28.325
31.400	33.713
31.400	35.990
31.570	29.767
31.740	30.905
31.740	31.892
31.740	29.008
31.740	33.865
31.740	35.307
31.909	31.437
31.909	32.651
32.079	32.803
32.079	28.629
32.419	35.080
32.419	30.754
32.419	33.789
32.588	30.071
32.588	35.838
32.758	30.451
32.758	32.120
32.758	32.120
32.928	31.741
33.098	36.218
33.098	34.776
33.098	33.866
33.267	34.625
33.267	34.321
33.267	33.562
33.437	29.389
33.777	34.473
33.946	33.942
33.946	35.156
33.946	35.384
34.116	36.750
34.116	35.688
34.116	32.880
34.116	29.996
34.286	31.135
34.625	31.970
34.795	36.371
34.795	33.032
34.795	31.135
34.965	34.019
34.965	32.122
34.965	29.010
34.965	29.769
35.134	36.751
35.304	35.081
35.304	33.336
35.304	30.756
35.304	28.783
35.474	29.921
35.644	33.033
35.813	34.019
35.813	31.894
35.983	35.992
36.153	35.841
36.153	32.426
36.153	29.239
36.322	34.323
36.322	31.060
36.492	36.144
36.662	27.721
36.662	30.909
36.662	30.529
36.832	36.979
36.832	35.234
36.832	34.931
36.832	33.944
36.832	30.302
37.001	34.399
37.001	32.047
37.001	29.619
37.511	33.489
37.511	30.378
37.680	33.489
37.680	31.744
37.680	31.592
37.680	31.213
37.850	32.731
37.850	32.048
38.020	34.855
38.190	34.021
38.190	34.248
38.359	33.034
38.359	30.985
38.529	36.070
38.529	29.999
38.699	28.785
38.699	34.628
38.868	35.691
38.868	31.138
39.208	35.008
39.208	37.588
39.378	33.111
39.547	36.298
39.717	29.089
39.717	30.910
39.887	35.084
39.887	30.607
40.057	35.995
40.057	32.808
40.396	34.933
40.396	32.049
40.566	34.022
40.566	37.209
40.566	31.594
40.736	29.621
40.736	32.960
40.736	35.540
40.905	29.849
41.075	33.643
41.075	31.898
41.414	35.085
41.414	36.527
41.584	30.684
41.754	35.541
41.924	34.251
42.093	30.988
42.093	31.291
42.093	32.126
42.093	32.506
42.093	33.037
42.093	33.644
42.093	37.059
42.263	34.630
42.263	35.010
42.772	31.216
42.772	32.961
43.112	38.198
43.112	30.002
43.112	31.899
43.281	35.162
43.960	40.247
43.960	35.770
43.960	35.163
43.960	33.114
43.960	30.989
44.130	36.984
44.130	33.797
44.130	30.837
44.300	32.886
44.300	32.052
44.300	30.230
44.639	28.409
44.639	35.391
44.639	34.101
44.639	32.279
44.979	31.445
44.979	31.141
45.149	32.887
45.149	31.749
45.149	31.597
45.318	30.155
45.318	32.432
45.318	31.976
45.658	29.017
45.658	31.977
45.658	35.088
45.827	38.048
45.997	30.611
45.997	37.365
46.167	34.178
46.337	30.839
46.506	32.432
46.846	36.986
47.016	29.853
47.185	34.709
47.525	30.081
47.525	33.647
47.694	32.813
47.864	33.875
47.864	35.924
48.204	30.916
48.204	30.688
48.204	34.407
48.373	32.661
49.052	31.372
49.052	30.992
49.901	34.939
49.901	33.193
49.901	29.703
50.071	35.394
50.071	31.676
50.071	31.221
50.410	33.801
50.410	33.573
50.750	36.988
50.750	32.511
50.919	36.381
50.919	35.850
50.919	33.042
51.089	32.056
51.259	33.877
51.259	30.918
51.429	31.525
51.768	34.181
51.938	32.967
52.107	37.520
52.277	37.976
52.956	33.878
53.296	30.919
53.805	31.147
53.975	31.678
53.975	32.892
54.144	34.183
54.993	31.831
54.993	33.045
54.993	36.763
55.163	34.866
55.163	36.384
55.332	32.210
55.502	30.465
56.011	34.411
56.181	36.916
56.181	32.590
56.351	35.019
56.860	36.081
56.860	35.171
56.860	34.184
56.860	31.225
56.860	29.479
57.030	34.867
57.030	33.122
57.030	32.591
57.030	32.439
57.030	30.618
57.878	33.350
58.048	36.765
58.048	34.944
58.048	34.716
60.085	32.820
60.085	33.579
60.085	35.552
60.255	38.057
60.934	32.745
62.291	33.808
62.461	32.215
62.801	30.394
63.140	36.161
63.310	32.064
63.989	35.327
64.328	32.064
64.668	31.533
65.177	35.100
65.177	31.837
66.365	33.356
66.704	33.659
67.214	33.963
67.723	35.026
68.571	33.205
68.911	33.813
68.911	34.647
69.590	33.661
70.099	41.326
70.099	33.965
70.099	33.282
70.778	36.925
70.778	34.117
71.117	32.903
71.966	34.346
73.833	33.057
75.191	35.334
76.379	34.197
76.549	32.527
77.228	37.233
77.228	33.135
77.228	31.465
79.774	33.744
79.943	33.212
80.113	34.123
80.113	35.869
80.792	36.400
81.471	35.186
84.187	32.912
84.187	31.697
84.866	36.023
85.884	35.872
86.902	37.087
87.242	34.735
87.581	33.369
87.921	37.012
89.109	34.660
90.806	34.433
91.146	32.309
93.182	39.140
96.068	36.637
97.256	32.692
97.935	33.148
99.972	35.046
100.141	35.502
103.876	33.835
104.215	36.946
108.119	34.900
112.023	36.875
119.321	36.197];
data.tL(:,1) = (0+ data.tL(:,1)) * 365; % convert yr to d
for i=2:size(data.tL,1); if data.tL(i,1)<=data.tL(i-1,1); data.tL(i,1)=data.tL(i-1,1)+1e-3; end; end
units.tL = {'d', 'cm'};  label.tL = {'time since birth', 'total length'};  
temp.tL = C2K(5.1); units.temp.tL = 'K'; label.temp.tL = 'temperature';
bibkey.tL = 'HornMcMi2019';

% weight-fecundity
data.WN = [ ... % wiehgt (g), fecundity (#)
760.116	4809.709
790.462	17737.363
817.919	10135.933
833.815	4748.778
865.607	11612.259
869.942	25388.191
871.387	7611.411
880.058	9808.958
903.179	12821.347
904.624	7721.724
921.965	12805.816
921.965	11152.271
929.191	9354.959
971.098	6288.823
981.214	14134.791
984.104	6278.071
1008.671	14525.469
1020.231	27330.878
1028.902	28701.653
1040.462	14361.392
1047.688	27170.369
1062.139	22611.181
1062.139	25229.291
1070.809	9513.461
1089.595	25482.193
1102.601	15687.962
1119.942	33449.227
1121.387	20633.066
1127.168	30136.163
1130.058	17732.202
1135.838	25306.152
1138.728	26957.308
1148.844	25571.001
1157.514	14126.826
1166.185	35202.333
1169.075	18940.095
1180.636	22237.627
1187.861	30223.777
1199.422	22222.095
1199.422	15745.724
1210.983	20558.993
1212.428	22073.550
1213.873	28686.520
1242.775	41339.798
1260.116	17211.281
1261.561	41875.438
1261.561	26580.170
1287.572	49294.878
1296.243	25724.724
1309.249	36461.998
1317.919	23639.880
1322.254	18951.246
1325.145	38102.401
1359.827	26912.306
1382.948	25377.454
1479.769	31911.571
1492.775	39617.357
1492.775	27077.992
1531.792	50470.927
1592.486	29613.666
1660.405	60699.236
1673.410	32027.078
1729.769	42866.303];
units.WN = {'g', 'N'};  label.WN = {'weight', 'fecundity'};  
temp.WN = C2K(5.1); units.temp.WN = 'K'; label.temp.WN = 'temperature';
bibkey.WN = 'ConrPank1989';

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

%% 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 not to differ from females';
metaData.discussion = struct('D1',D1);

%% Facts
F1 = 'length-weight: weight (in g) = 0.01413*(TL in cm)^3.03';
metaData.bibkey.F1 = 'fishbase'; 
F2 = 'feeds mainly on salps and crustaceans';
metaData.bibkey.F2 = 'fishbase'; 
metaData.facts = struct('F1',F1, 'F2',F2);

%% Links
metaData.links.id_CoL = 'BW26'; % Cat of Life
metaData.links.id_ITIS = '625296'; % ITIS
metaData.links.id_EoL = '46571198'; % Ency of LifeAllocyttus_niger
metaData.links.id_Wiki = 'Allocyttus_niger'; % Wikipedia
metaData.links.id_ADW = 'Allocyttus_niger'; % ADW
metaData.links.id_Taxo = '160423'; % Taxonomicon
metaData.links.id_WoRMS = '234810'; % WoRMS
metaData.links.id_fishbase = 'Allocyttus-niger'; % fishbase

%% References
bibkey = 'Wiki'; type = 'Misc'; bib = ...
'howpublished = {\url{http://en.wikipedia.org/wiki/Allocyttus_niger}}';
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 = 'HornMcMi2019'; type = 'Article'; bib = [ ... 
'doi = {10.1080/00288330.2018.1481436}, ' ...
'author = {Peter L. Horn and Peter J. McMillan and Helen L. Neil}, ' ... 
'year = {2019}, ' ...
'title = {Age and life histories of black and smooth oreos inferred using bomb radiocarbon dating and stable isotope analysis}, ' ...
'journal = {New Zealand Journal of Marine and Freshwater Research}, ' ...
'volume = {53(1)}, ' ...
'pages = {77–96}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'ConrPank1989'; type = 'Article'; bib = [ ... 
'author = {Anne M. Conroy and Neville W. Pankhurst}, ' ... 
'year = {1989}, ' ...
'title = {Size-fecundity relationships in the smooth oreo, \emph{Pseudocyttus maculatus}, and the black oreo, \emph{Allocyttus niger} ({P}isces: {O}reosomatidae)}, ' ...
'journal = {New Zealand Journal of Marine and Freshwater Research}, ' ...
'volume = {23}, ' ...
'pages = {525-527}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'fishbase'; type = 'Misc'; bib = ...
'howpublished = {\url{http://www.fishbase.org/summary/Allocyttus-niger.html}}';
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];

