function [data, auxData, metaData, txtData, weights] = mydata_Dissostichus_mawsoni
%% set metaData
metaData.phylum     = 'Chordata'; 
metaData.class      = 'Actinopterygii'; 
metaData.order      = 'Perciformes'; 
metaData.family     = 'Nototheniidae';
metaData.species    = 'Dissostichus_mawsoni'; 
metaData.species_en = 'Antarctic toothfish'; 

metaData.ecoCode.climate = {'ME'};
metaData.ecoCode.ecozone = {'MS'};
metaData.ecoCode.habitat = {'0jMp', 'jiMcd'};
metaData.ecoCode.embryo  = {'Mpe'};
metaData.ecoCode.migrate = {};
metaData.ecoCode.food    = {'biPz', 'jiCvf'};
metaData.ecoCode.gender  = {'D'};
metaData.ecoCode.reprod  = {'O'};

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

metaData.COMPLETE = 2.5; % using criteria of LikaKear2011

metaData.author      = {'Bas Kooijman', 'Starrlight Augustine'}; 
metaData.date_subm   = [2018 12 23]; 
metaData.email       = {'bas.kooijman@vu.nl'}; 
metaData.address     = {'VU University, Amsterdam'};

metaData.author_mod_1   = {'Bas Kooijman'};    
metaData.date_mod_1     = [2023 04 07];              
metaData.email_mod_1    = {'bas.kooijman@vu.nl'};            
metaData.address_mod_1  = {'VU University, Amsterdam'};   

metaData.curator     = {'Starrlight Augustine'};
metaData.email_cur   = {'starrlight@tecnico.ulisboa.pt'}; 
metaData.date_acc    = [2023 04 07];

%% set data
% zero-variate data

data.ab = 75;    units.ab = 'd';   label.ab = 'age at birth';  bibkey.ab = 'fishbase';   
  temp.ab = C2K(0); units.temp.ab = 'K'; label.temp.ab = 'temperature';
  comment.ab = 'based on Dissostichus_eleginoides';
data.tp = 8*365;    units.tp = 'd';   label.tp = 'time since birth at puberty';  bibkey.tp = 'fishbase';   
  temp.tp = C2K(1.3); units.temp.tp = 'K'; label.temp.tp = 'temperature'; 
  comment.tp = '8 till 10 yr';
data.am = 39*365;    units.am = 'd';   label.am = 'life span';                   bibkey.am = 'fishbase';   
  temp.am = C2K(1.3); units.temp.am = 'K'; label.temp.am = 'temperature'; 

data.Lp  = 133.2;    units.Lp  = 'cm'; label.Lp  = 'total length at puberty';   bibkey.Lp  = 'fishbase';
  comment.Lp = '38 to 60 cm';
data.Li  = 200;    units.Li  = 'cm'; label.Li  = 'ultimate total length';   bibkey.Li  = 'fishbase';

data.Wwb = 0.0477;    units.Wwb = 'g';  label.Wwb = 'wet weight at birth';        bibkey.Wwb = 'fishbase';
  comment.Wwb = 'based on egg diameter of 4.5 mm of Dissostichus_eleginoides: pi/6*0.45^3';
data.Wwi = 121e3;   units.Wwi = 'g';  label.Wwi = 'ultimate wet weight';        bibkey.Wwi = 'fishbase';
  comment.Wwi = 'based on 0.00724*Li^3.14, see F1'; 

data.Ri  = 1343380/365; units.Ri  = '#/d'; label.Ri  = 'maximum reproduction rate'; bibkey.Ri  = 'fishbase';   
  temp.Ri = C2K(1.3); units.temp.Ri = 'K'; label.temp.Ri = 'temperature';

% uni-variate data
% time-length
data.tL_f = [ ... % time since birth (yr), total length (cm)
2.709	59.256
2.764	53.648
2.765	56.765
3.783	54.290
3.784	56.783
3.843	65.509
3.954	59.279
3.955	61.772
4.070	66.759
4.804	61.163
4.805	64.280
4.863	66.774
4.917	57.426
4.920	69.268
4.920	70.514
4.921	72.384
4.921	74.253
4.922	78.616
5.830	84.864
5.939	66.793
5.939	69.909
5.940	71.155
5.940	73.648
5.941	74.272
5.941	76.764
5.942	79.257
5.995	64.301
6.735	81.764
6.788	65.561
6.845	69.302
6.846	71.795
6.850	86.752
6.850	86.752
6.851	91.115
6.851	92.361
6.852	96.724
6.903	73.665
6.903	74.912
6.904	76.782
6.905	79.275
6.905	82.391
7.752	69.318
7.816	99.234
7.867	76.176
7.867	79.292
7.868	81.785
7.869	84.278
7.869	85.524
7.869	86.770
7.870	88.640
7.870	90.510
7.871	91.756
7.871	93.003
7.871	94.872
7.873	101.728
7.875	110.453
7.928	95.497
7.987	104.223
7.989	112.325
8.781	107.353
8.836	100.499
8.836	101.745
8.836	102.992
8.892	99.876
8.893	103.616
8.893	104.239
8.895	109.225
8.897	117.327
8.948	96.761
9.001	81.805
9.001	84.298
9.003	89.284
9.003	91.776
9.805	126.068
9.851	84.313
9.852	87.429
9.853	91.168
9.853	93.661
9.854	96.777
9.854	97.401
9.854	98.024
9.855	99.270
9.856	102.387
9.857	106.749
9.857	107.996
9.857	108.619
9.857	109.242
9.858	111.735
9.858	112.982
9.912	102.388
9.915	111.736
9.915	114.229
9.916	117.345
9.970	106.128
10.878	114.246
10.878	114.869
10.879	116.739
10.879	117.986
10.879	119.232
10.880	121.725
10.881	126.711
10.882	129.204
10.882	131.697
10.884	136.683
10.929	91.188
10.930	95.550
10.931	99.290
10.931	99.290
10.931	100.536
10.932	104.275
10.932	104.899
10.933	108.015
10.934	109.885
10.934	111.754
10.937	124.219
10.938	126.089
11.729	121.117
11.779	93.072
11.837	98.682
11.838	101.799
11.844	127.974
11.845	129.221
11.845	131.091
11.845	131.714
11.846	134.830
11.847	137.946
11.848	141.686
11.849	146.048
11.895	103.669
11.895	105.539
11.895	106.162
11.896	107.409
11.896	108.032
11.896	109.902
11.897	111.148
11.897	113.641
11.898	115.511
11.898	116.757
11.898	118.004
11.901	126.729
11.956	122.367
11.957	124.860
12.075	142.313
12.755	145.441
12.860	113.035
12.861	116.151
12.861	116.774
12.861	118.021
12.862	119.267
12.862	120.514
12.862	123.007
12.863	124.253
12.863	125.500
12.863	126.123
12.863	126.746
12.864	129.239
12.864	130.485
12.870	151.052
12.922	132.979
12.923	136.719
12.923	136.719
12.923	138.589
12.923	139.835
12.924	141.705
12.924	142.328
12.970	102.442
12.971	106.181
12.972	109.921
13.039	149.185
13.770	129.255
13.826	124.270
13.826	127.386
13.827	129.256
13.828	134.242
13.878	106.821
13.880	115.546
13.880	116.793
13.881	119.285
13.882	122.402
13.884	131.750
13.884	131.750
13.885	136.736
13.886	140.475
13.887	141.722
13.888	144.838
13.888	146.708
13.888	147.954
13.891	157.926
13.891	159.796
13.892	162.912
13.893	166.651
13.946	151.695
13.947	154.187
13.947	156.680
14.854	157.943
14.908	149.219
14.908	149.842
14.909	151.712
14.909	152.335
14.909	154.205
14.910	156.074
14.911	159.190
14.911	162.307
14.957	120.551
14.958	123.667
14.959	128.030
14.960	129.900
14.960	131.769
14.961	134.262
14.961	134.885
14.961	135.509
14.962	137.378
14.962	138.625
14.962	139.248
14.963	141.741
15.011	108.711
15.020	144.235
15.020	145.481
15.021	146.728
15.803	106.232
15.804	110.594
15.805	114.334
15.812	140.510
15.813	144.872
15.863	118.074
15.864	121.190
15.864	121.814
15.864	123.683
15.865	126.800
15.868	136.771
15.868	136.771
15.869	141.134
15.869	141.757
15.870	146.120
15.922	129.917
15.923	133.033
15.924	134.903
15.928	151.107
15.928	151.730
15.929	154.223
15.929	156.716
15.929	156.716
15.931	161.702
15.933	171.673
15.935	179.152
16.826	118.091
16.826	121.208
16.827	124.324
16.828	127.440
16.829	131.803
16.829	132.426
16.830	134.295
16.830	136.788
16.831	138.035
16.831	139.905
16.832	141.151
16.832	141.774
16.832	143.644
16.832	144.267
16.840	174.182
16.841	177.298
16.891	150.501
16.891	151.747
16.892	154.240
16.893	159.849
16.947	148.009
16.947	148.632
16.952	167.952
17.008	164.837
17.849	132.444
17.906	136.184
17.907	139.300
17.908	141.793
17.908	143.040
17.909	146.156
17.910	148.649
17.910	149.272
17.910	151.142
17.910	151.765
17.911	153.012
17.911	154.881
17.912	156.751
17.912	157.997
17.912	159.244
17.915	171.085
17.916	175.448
17.971	166.724
18.866	125.607
18.867	128.099
18.925	134.333
18.927	142.435
18.928	145.551
18.929	149.290
18.930	151.783
18.932	162.378
18.933	164.248
18.933	166.118
18.934	169.234
18.936	174.220
18.987	154.277
18.987	156.147
18.988	156.770
18.988	158.017
18.988	159.263
19.716	125.622
19.775	136.841
19.782	162.393
19.783	164.886
19.784	169.249
19.785	172.365
19.785	174.235
19.785	174.858
19.834	143.074
19.834	144.944
19.835	147.437
19.835	148.683
19.836	151.176
19.836	151.799
19.844	181.715
19.893	154.293
20.008	159.281
20.741	146.830
20.741	148.699
20.793	131.250
20.797	144.338
20.851	134.990
20.852	139.353
20.855	152.441
20.856	155.557
20.857	156.803
20.857	159.296
20.857	159.296
20.858	161.789
20.858	162.413
20.859	164.282
20.859	167.398
20.860	169.268
20.861	172.384
20.861	173.007
20.861	174.877
20.864	184.849
20.915	165.530
20.916	167.399
20.916	168.023
21.756	131.890
21.880	173.649
21.883	183.621
21.931	150.590
21.933	156.823
21.933	156.823
21.933	159.316
21.934	161.808
22.894	151.854
22.950	147.492
22.953	159.334
22.954	165.566
22.956	171.175
22.957	176.161
22.958	179.900
22.963	201.090
22.964	204.206
23.856	146.262
23.856	148.132
23.858	154.364
23.915	158.104
23.916	159.974
23.916	162.467
23.917	166.830
23.918	170.569
23.923	186.773
24.881	171.209
24.882	171.833
24.882	174.326
24.937	165.601
24.989	150.021
24.990	151.891
24.990	154.384
24.991	156.254
24.994	169.965
25.839	149.413
25.896	151.284
25.896	154.400
25.897	155.023
25.897	156.270
25.898	159.386
25.898	161.256
26.860	156.910
26.918	161.897
26.918	164.390
26.964	122.011
26.968	136.346
26.971	149.434
27.987	136.987
28.053	171.266
28.107	161.918
28.839	143.235
29.862	157.587
29.862	158.210
29.862	160.703
29.863	162.573
29.863	164.443
29.981	179.402
32.922	166.990
33.713	159.525
34.790	162.037];  
data.tL_f(:,1) = data.tL_f(:,1) * 365; % convert yr to d
n=size(data.tL_f,1); for i=2:n; 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', 'female'};  
temp.tL_f   = C2K(1.3);  units.temp.tL_f = 'K'; label.temp.tL_f = 'temperature';
bibkey.tL_f = 'Horn2002';
comment.tL_f = 'data for females';
%
data.tL_m = [ ... % time since birth (yr), total length (cm)
2.662	59.592
2.832	50.193
2.832	52.700
3.002	55.210
3.851	58.986
3.851	65.254
3.908	55.227
3.908	57.734
3.908	67.762
3.964	62.122
4.814	65.898
4.871	55.871
4.871	62.765
4.927	59.632
4.927	69.661
4.984	72.169
4.984	75.303
4.984	77.810
5.833	74.691
5.947	79.081
6.060	67.801
6.060	70.308
6.060	72.188
6.739	85.990
6.853	69.069
6.853	73.456
6.909	81.605
6.909	90.380
6.909	97.902
6.966	76.592
7.023	86.621
7.136	77.849
7.872	104.813
7.929	70.341
7.929	92.906
7.929	101.054
7.929	102.934
7.985	79.744
7.985	82.251
7.985	84.758
7.985	87.266
7.985	95.414
7.985	99.174
8.042	91.027
8.042	91.654
8.099	111.085
8.722	109.216
8.778	100.442
8.835	101.070
8.892	75.373
8.892	80.387
8.892	101.698
8.892	102.951
8.892	104.205
8.892	106.085
8.948	83.522
8.948	92.924
8.948	96.058
8.948	112.981
9.005	83.523
9.005	86.657
9.005	97.939
9.061	90.419
9.118	99.195
9.854	111.743
9.854	115.504
9.911	118.639
9.911	121.146
9.911	123.026
9.911	125.534
9.968	82.914
9.968	86.047
9.968	105.478
9.968	107.358
9.968	107.985
10.024	90.436
10.024	92.316
10.024	93.570
10.024	104.225
10.081	97.958
10.081	100.465
10.307	95.455
10.874	118.656
10.874	124.297
10.874	128.058
10.930	97.347
10.930	100.481
10.930	101.734
10.930	102.988
10.930	110.509
10.930	115.523
10.930	113.016
10.930	116.777
10.930	121.164
10.987	90.453
10.987	94.841
10.987	104.242
10.987	105.496
10.987	105.496
11.893	94.857
11.893	99.244
11.893	103.005
11.893	119.928
11.893	122.435
11.893	123.062
11.893	124.942
11.893	126.196
11.893	131.837
11.893	141.239
11.950	106.140
11.950	134.972
11.950	138.106
12.006	109.275
12.006	109.902
12.006	114.289
12.063	108.649
12.063	118.051
12.799	134.360
12.856	96.128
12.856	98.635
12.856	118.065
12.856	121.826
12.856	121.826
12.856	123.079
12.856	125.586
12.856	126.213
12.856	127.467
12.856	128.720
12.856	130.601
12.856	136.868
12.856	140.002
12.856	141.883
12.856	145.643
12.856	148.150
12.913	100.516
12.969	103.024
13.026	108.040
13.026	111.800
13.706	126.855
13.762	128.110
13.819	130.618
13.875	102.414
13.875	133.753
13.875	143.154
13.932	123.098
13.932	125.606
13.932	138.768
13.932	140.022
13.932	145.663
13.989	104.296
13.989	128.114
13.989	138.142
14.045	113.699
14.045	117.460
14.045	148.799
14.045	151.932
14.102	129.996
14.102	131.250
14.159	154.442
15.008	108.075
15.008	114.970
15.008	118.730
15.008	123.118
15.008	124.998
15.008	126.878
15.008	127.505
15.008	128.759
15.008	130.012
15.008	130.639
15.008	133.146
15.008	135.027
15.008	138.787
15.008	141.921
15.008	141.921
15.008	145.682
15.065	149.444
15.065	152.577
15.121	157.593
15.574	116.233
15.744	154.470
15.801	152.591
15.858	148.831
15.858	158.859
15.914	130.655
15.971	121.255
15.971	125.642
15.971	137.551
15.971	138.805
15.971	139.431
15.971	143.192
15.971	163.249
16.084	129.405
16.197	135.048
16.820	147.595
16.877	109.362
16.877	115.630
16.877	130.046
16.877	136.940
16.877	138.194
16.877	141.955
16.877	143.835
16.877	151.356
16.877	155.744
16.877	156.997
16.934	153.238
16.934	158.879
16.934	162.639
16.990	163.267
16.990	164.521
17.896	136.959
17.896	153.255
17.896	154.509
17.896	157.642
17.953	125.678
17.953	159.524
17.953	160.777
17.953	170.806
18.010	128.813
18.010	141.975
18.010	148.243
18.010	164.539
18.066	113.144
18.180	144.485
18.180	146.365
18.236	140.725
18.916	123.188
18.916	140.738
18.916	143.872
18.916	145.752
18.916	146.379
18.916	148.259
18.916	148.259
18.972	128.203
18.972	130.083
18.972	145.753
18.972	161.422
18.972	171.451
19.029	133.218
19.029	136.352
19.029	138.233
19.822	125.084
19.879	133.233
19.879	135.741
19.879	159.558
19.879	162.692
19.935	139.502
19.992	155.173
20.049	144.519
20.049	147.652
20.049	151.413
20.841	182.766
20.898	135.759
20.955	138.267
20.955	141.401
21.011	148.923
21.011	154.564
21.861	135.776
21.861	140.790
21.917	143.298
21.917	145.179
21.917	145.806
21.917	147.059
21.917	148.313
21.917	150.820
21.917	155.834
21.974	153.955
21.974	168.998
22.937	123.260
22.994	150.839
22.994	152.719
22.994	160.868
23.900	115.756
24.013	137.695
24.070	148.351
24.070	153.992
24.806	160.900
24.919	137.084
24.919	157.768
24.976	140.846
25.882	155.905
25.882	159.039
25.995	167.189
26.845	132.105
28.940	125.874
28.940	140.917
28.997	156.588
29.960	159.112
32.961	201.787
33.867	153.541
34.830	146.664];  
data.tL_m(:,1) = data.tL_m(:,1) * 365; % convert yr to d
n=size(data.tL_m,1); for i=2:n; 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', 'male'};  
temp.tL_m   = C2K(1.3);  units.temp.tL_m = 'K'; label.temp.tL_m = 'temperature';
bibkey.tL_m = 'Horn2002';
comment.tL_m = 'data for males';

%% set weights for all real data
weights = setweights(data, []);
weights.tL_f = 50 * weights.tL_f;
weights.tL_m = 50 * weights.tL_m;
%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'};
metaData.grp.sets = {set1};
metaData.grp.subtitle = {subtitle1};

%% Discussion points
D1 = 'Males are assumed to differ from females by {p_Am} only';
D2 = 'temperature is guessed';
D3 = 'mod_1: males have equal state variables at b, compared to females';
metaData.discussion = struct('D1',D1, 'D2',D2, 'D3',D3);  

%% Facts
F1 = 'length-weight: Ww in g = 0.00724*(TL in cm)^3.14';
metaData.bibkey.F1 = 'fishbase'; 
F2 = 'Larval pelagic phase is long';
metaData.bibkey.F2 = 'fishbase'; 
metaData.facts = struct('F1',F1,'F2',F2);

%% Acknowledgment
metaData.acknowledgment = 'The creation of this entry was supported by the Norwegian Science Council (NFR 255295)';

%% Links
metaData.links.id_CoL = '36W7V'; % Cat of Life
metaData.links.id_ITIS = '642808'; % ITIS
metaData.links.id_EoL = '46573003'; % Ency of Life
metaData.links.id_Wiki = 'Dissostichus_mawsoni'; % Wikipedia
metaData.links.id_ADW = 'Dissostichus_mawsoni'; % ADW
metaData.links.id_Taxo = '173319'; % Taxonomicon
metaData.links.id_WoRMS = '234836'; % WoRMS
metaData.links.id_fishbase = 'Dissostichus-mawsoni'; % fishbase


%% References
bibkey = 'Wiki'; type = 'Misc'; bib = ...
'howpublished = {\url{https://en.wikipedia.org/wiki/Dissostichus_mawsoni}}';
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 = 'Horn2002'; type = 'Article'; bib = [ ... 
'author = {P.L. Horn}, ' ... 
'year = {2002}, ' ...
'title = {Age and growth of {P}atagonian toothfish (\emph{Dissostichus eleginoides}) and {A}ntarctic toothfish (\emph{D. mawsoni}) in waters from the {N}ew {Z}ealand subantarctic to the {R}oss {S}ea, {A}ntarctica}, ' ...
'journal = {Fisheries Research}, ' ...
'volume = {56}, ' ...
'pages = {275-287}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'fishbase'; type = 'Misc'; bib = ...
'howpublished = {\url{http://www.fishbase.se/summary/Dissostichus-mawsoni.html}}';
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
