function [data, auxData, metaData, txtData, weights] = mydata_Daphnia_similoides
%% set metaData
metaData.phylum     = 'Arthropoda'; 
metaData.class      = 'Branchiopoda'; 
metaData.order      = 'Anomopoda'; 
metaData.family     = 'Daphniidae';
metaData.species    = 'Daphnia_similoides'; 
metaData.species_en = 'Waterflea'; 

metaData.ecoCode.climate = {'A','B','C'};
metaData.ecoCode.ecozone = {'TPi','TA','TH'};
metaData.ecoCode.habitat = {'0iFp', '0iFl', '0iFm'};
metaData.ecoCode.embryo  = {'Fbf'};
metaData.ecoCode.migrate = {};
metaData.ecoCode.food    = {'biPp', 'biD'};
metaData.ecoCode.gender  = {'D'};
metaData.ecoCode.reprod  = {'Apf'};

metaData.T_typical  = C2K(23); % K, body temp
metaData.data_0     = {'ab'; 'am'; 'Lb'; 'Lp'; 'Li'; 'Wdi'}; 
metaData.data_1     = {'t-L_fT','t-N_fT'}; 

metaData.COMPLETE = 2.8; % using criteria of LikaKear2011

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

%% set data
% zero-variate data

data.ab = 1.62;    units.ab = 'd';    label.ab = 'age at birth';                bibkey.ab = 'guess';   
  temp.ab = C2K(25);  units.temp.ab = 'K'; label.temp.ab = 'temperature'; 
data.am = 36;     units.am = 'd';    label.am = 'life span';                bibkey.am = 'RichZhan2023';   
  temp.am = C2K(25);  units.temp.am = 'K'; label.temp.am = 'temperature'; 

data.Lb  = 0.06; units.Lb  = 'cm';  label.Lb  = 'total length at birth';   bibkey.Lb  = 'RichZhan2023';
data.Lp  = 0.20; units.Lp  = 'cm';  label.Lp  = 'total length at puberty'; bibkey.Lp  = 'RichZhan2023';
data.Li  = 0.5; units.Li  = 'cm';  label.Li  = 'ultimate total length';   bibkey.Li  = 'RichZhan2023';
  
data.Wdi  = 4.2;  units.Wdi  = 'mg';  label.Wdi  = 'ultimate dry weight';   bibkey.Wdi  = 'guess';
  comment.Wdi = 'based in Daphnia magna: 600*(710/370)^3';

% time-length
data.tL10 = [ ... % time since birth (d), length (mm)
1.434	0.672
2.194	0.797
2.550	0.984
2.966	0.859
3.677	1.233
4.114	1.008
5.675	1.045
5.702	0.908
7.607	1.194
7.619	1.132
8.023	1.070
8.318	1.568
8.349	1.406
9.153	1.306
10.298	1.468
10.712	1.355
11.489	1.393
11.764	1.991
11.798	1.816
12.296	1.280
12.561	1.928
12.634	1.554
13.365	1.828
14.188	1.629
14.958	1.703
15.676	2.040
16.495	1.865
16.502	1.828
16.804	2.289
17.228	2.126
17.961	2.388
18.049	1.939
19.524	2.412
19.568	2.188
20.713	2.350
21.176	1.988
21.904	2.275
22.328	2.113
22.662	2.412
24.282	2.150
24.991	2.536
25.765	2.585
26.549	2.585
27.368	2.411
27.388	2.311
29.285	2.634
30.140	2.273
30.503	2.422
31.609	2.783
32.045	2.559
33.636	2.446
34.739	2.820
34.778	2.621
35.971	2.533
35.989	2.446
36.307	2.820
36.332	2.695
38.261	2.856
38.307	2.620
39.869	2.657
39.898	2.507
42.180	2.868
42.948	2.955
42.984	2.768
43.028	2.544
43.766	2.780
44.175	2.693
45.369	2.605
46.083	2.967
46.114	2.805
47.315	2.680
48.068	2.842
48.484	2.717
50.046	2.754
50.774	3.040
51.970	2.940
52.379	2.853
53.188	2.728
54.296	3.077
54.321	2.952
55.924	2.777
56.642	3.114
56.671	2.964
56.691	2.864
56.708	2.777
58.591	3.175
58.625	3.001
59.395	3.075
60.218	2.876
62.542	3.025
62.556	2.950
62.914	3.124
63.363	2.838
65.718	2.825
66.064	3.061
66.091	2.924
66.434	3.173
67.567	3.397
68.760	3.310
69.199	3.073
69.616	2.948
69.954	3.222
71.143	3.160
71.506	3.309
71.545	3.110
71.586	2.898
72.341	3.047
74.241	3.358
74.650	3.271
75.074	3.109
75.403	3.433
75.851	3.146
75.893	2.934
77.800	3.208
78.226	3.033
78.560	3.332
80.099	3.481
80.952	3.132
81.332	3.195
82.070	3.431
82.143	3.057
82.925	3.070
83.631	3.468
84.077	3.194
85.563	3.617
85.997	3.405
86.021	3.281
86.442	3.131
87.134	3.604
87.538	3.542
88.786	3.180
89.865	3.678
89.901	3.492
90.729	3.267
91.153	3.105
91.842	3.591
92.301	3.254
93.494	3.167
93.818	3.515
94.188	3.628
94.558	3.740
95.392	3.490
96.610	3.278
96.926	3.664
96.941	3.589
98.870	3.751
100.424	3.825
100.463	3.626
102.804	3.688
103.971	3.737
104.743	3.799
106.316	3.774
106.745	3.587
107.868	3.861
110.258	3.673
111.000	3.885];	
data.tL10(:,2) = data.tL10(:,2)/ 10; % convert mm to cm
units.tL10   = {'d', 'cm'};  label.tL10 = {'time since birth', 'length','10 C'};  
temp.tL10 = C2K(10); units.temp.tL10 = 'K'; label.temp.tL10 = 'temperature'; 
bibkey.tL10 = 'RichZhan2023'; 
%
data.tL17 = [ ... % time since birth (d), length (mm)
0.000	0.713
0.177	0.800
0.887	0.913
1.596	1.125
1.773	1.225
2.660	1.125
2.837	1.413
2.837	1.513
3.014	1.238
3.546	1.425
3.723	1.600
4.078	1.488
4.433	1.913
4.610	1.800
4.787	1.988
5.674	1.875
6.028	2.075
6.206	1.775
6.560	2.450
7.092	2.350
7.270	2.275
7.270	2.213
7.979	2.388
8.511	2.463
8.688	2.213
9.220	2.400
9.397	2.263
9.929	2.838
9.929	2.600
10.106	2.500
10.284	2.713
10.461	2.350
10.816	2.613
11.348	2.775
11.348	2.450
11.702	2.300
12.057	2.513
12.411	2.713
12.589	2.875
12.766	2.413
12.943	2.775
12.943	2.938
12.943	3.038
13.298	2.663
14.362	2.900
14.539	2.388
14.716	3.013
14.716	2.475
15.248	2.800
15.248	2.675
16.844	2.525
16.844	2.825
16.844	3.163
17.021	2.488
17.199	2.950
18.794	2.925
18.794	2.750
18.972	3.263
18.972	3.088
18.972	3.013
19.681	3.313
19.858	2.713
20.035	2.988
20.035	2.913
20.567	3.150
21.986	2.900
21.986	3.013
21.986	3.088
22.163	3.313
22.340	3.363
23.759	3.050
23.936	3.438
23.936	3.338
23.936	3.225
24.113	3.113
24.291	2.975
25.709	3.288
25.887	3.050
25.887	3.450
26.241	3.163
27.128	3.438
27.128	3.313
27.128	3.175
27.128	3.088
27.305	3.225
28.723	3.225
29.255	3.113
29.255	3.325
29.255	3.413
29.610	3.488
30.496	3.525
30.496	3.425
30.851	3.338
31.028	3.113
32.979	3.463
33.156	3.325
33.156	3.513
33.333	3.163
34.043	3.175
34.397	3.450
34.397	3.525
34.574	3.350
35.638	3.538
35.816	3.475
35.993	3.188
36.348	3.338
36.348	3.275
37.766	3.163
38.121	3.363
38.475	3.525
40.248	3.200
40.426	3.463
40.603	3.538
40.957	3.225
43.085	3.450
43.085	3.575
45.035	3.450
45.390	3.525
46.809	3.575
46.986	3.438
47.872	3.488
48.227	3.575];	
data.tL17(:,2) = data.tL17(:,2)/ 10; % convert mm to cm
temp.tL17 = C2K(17); units.temp.tL17 = 'K'; label.temp.tL17 = 'temperature'; 
units.tL17   = {'d', 'cm'};  label.tL17 = {'time since birth', 'length','17 C'};  
bibkey.tL17 = 'RichZhan2023'; 
%
data.tL20 = [ ... % time since birth (d), length (mm)
0.134	0.693
0.293	0.768
0.930	1.052
0.933	0.978
1.097	0.916
2.215	1.312
2.217	1.250
2.220	1.188
3.016	1.522
3.174	1.621
3.493	1.733
4.127	2.079
4.467	1.683
4.618	1.955
4.758	2.500
4.787	1.782
4.945	1.868
5.085	2.413
5.110	1.806
5.262	2.042
5.572	2.376
6.214	2.524
6.230	2.128
6.695	2.636
6.703	2.450
7.192	2.375
7.833	2.549
7.988	2.697
8.468	2.858
8.796	2.759
9.125	2.635
9.278	2.858
9.290	2.561
9.767	2.759
10.084	2.944
10.419	2.672
10.572	2.882
10.739	2.771
10.890	3.018
11.706	2.882
11.864	2.968
11.871	2.807
13.806	2.993
13.971	2.918
14.127	3.079
15.903	3.203
16.063	3.264
16.073	3.004
16.221	3.351
16.555	3.103
18.165	3.338
18.171	3.177
18.330	3.251
18.339	3.041
18.814	3.313
18.820	3.164
18.823	3.090
19.134	3.412
19.147	3.090
19.303	3.239
20.768	3.052
20.914	3.436
20.927	3.127
21.081	3.312
21.084	3.238
21.085	3.213
22.703	3.250
23.024	3.324
23.030	3.176
23.344	3.411
25.125	3.435
25.282	3.546
25.297	3.187
25.452	3.348
25.616	3.299
25.618	3.237
25.768	3.546
25.770	3.484
25.935	3.410
25.939	3.323
26.106	3.187
27.882	3.335
28.035	3.545
28.037	3.496
28.041	3.397
28.047	3.261
30.148	3.359
30.303	3.532
30.468	3.458
30.475	3.272
31.759	3.569
32.086	3.495
32.253	3.358
32.890	3.618
33.055	3.544
33.057	3.494
33.224	3.383
34.836	3.568
34.995	3.642
35.163	3.494
36.938	3.654
36.946	3.456
37.110	3.406
37.264	3.592
38.882	3.629
38.884	3.567
39.049	3.505
40.179	3.591
40.180	3.567
40.508	3.467
41.635	3.616
41.803	3.479
42.124	3.541
43.741	3.603
44.069	3.516
44.072	3.441
45.847	3.590
45.849	3.552
46.169	3.639];	
data.tL20(:,2) = data.tL20(:,2)/ 10; % convert mm to cm
temp.tL20 = C2K(20); units.temp.tL20 = 'K'; label.temp.tL20 = 'temperature'; 
units.tL20   = {'d', 'cm'};  label.tL20 = {'time since birth', 'length','20 C'};  
bibkey.tL20 = 'RichZhan2023'; 
%
data.tL23 = [ ... % time since birth (d), length (mm)
0.000	0.636
0.000	0.810
0.096	0.710
1.053	0.811
1.053	0.923
1.244	1.011
1.722	1.061
1.914	1.423
2.010	1.136
2.201	1.286
2.201	1.211
2.967	2.022
3.158	1.811
3.158	1.599
3.158	1.549
3.254	1.898
3.828	1.936
3.923	1.887
3.923	2.049
4.019	2.136
4.019	2.198
4.019	2.298
4.115	2.423
4.785	2.324
4.880	2.262
4.976	2.461
5.167	2.050
5.359	2.362
5.837	2.425
5.837	2.549
6.029	2.637
6.316	2.301
6.699	2.488
6.890	2.351
7.081	2.675
7.273	2.427
7.943	2.726
8.038	2.477
8.230	2.851
8.900	2.715
8.995	2.553
9.091	2.902
9.378	2.803
9.856	2.741
9.856	2.604
10.144	2.667
10.144	2.866
10.526	2.817
11.005	2.830
11.100	2.581
11.196	2.942
11.196	2.718
11.962	2.893
11.962	2.993
12.057	2.657
12.057	2.769
12.153	3.031
13.971	3.108
13.971	2.996
13.971	2.896
14.067	2.672
14.163	2.796
15.789	2.886
15.789	3.160
15.981	3.023
17.990	3.075
18.086	3.188
18.086	2.901
18.278	2.976
18.756	2.964
18.852	3.189
19.043	3.114
19.139	2.890
20.766	3.291
21.053	3.154
21.053	3.079
21.244	3.017
22.967	3.007
22.967	3.044
23.158	3.132
25.167	2.960
27.273	3.037];	
data.tL23(:,2) = data.tL23(:,2)/ 10; % convert mm to cm
temp.tL23 = C2K(23); units.temp.tL23 = 'K'; label.temp.tL23 = 'temperature'; 
units.tL23   = {'d', 'cm'};  label.tL23 = {'time since birth', 'length','23 C'};  
bibkey.tL23 = 'RichZhan2023'; 
%
data.tL25 = [ ... % time since birth (d), length (mm)
0.117	0.626
0.171	0.692
0.172	0.776
0.974	1.299
1.025	1.243
1.070	0.785
1.126	0.963
1.130	1.178
2.030	1.327
2.032	1.439
2.034	1.514
2.034	1.551
2.035	1.598
2.037	1.701
2.084	1.374
2.134	1.215
2.993	1.991
3.040	1.673
3.042	1.813
3.043	1.869
3.094	1.720
3.144	1.561
3.147	1.757
3.150	1.925
3.153	2.065
3.995	1.888
4.003	2.383
4.049	2.009
4.052	2.140
4.055	2.308
4.101	1.953
4.106	2.215
4.107	2.252
5.002	2.121
5.056	2.178
5.057	2.215
5.058	2.271
5.112	2.346
5.113	2.402
5.114	2.486
5.158	2.000
6.008	2.252
6.014	2.570
6.015	2.654
6.064	2.430
6.118	2.486
6.164	2.131
6.168	2.346
6.963	2.514
6.965	2.589
7.015	2.439
7.019	2.692
7.064	2.243
7.119	2.374
7.171	2.308
7.864	2.682
8.018	2.439
8.023	2.729
8.070	2.383
8.072	2.505
8.074	2.607
8.173	2.252
8.970	2.505
9.074	2.421
9.078	2.654
9.079	2.710
9.080	2.738
9.130	2.589
9.972	2.430
10.023	2.318
10.027	2.514
10.028	2.579
10.031	2.766
10.083	2.701
10.138	2.832
10.928	2.720
10.978	2.533
10.982	2.794
10.983	2.850
10.985	2.944
11.134	2.383
11.187	2.421
12.038	2.738
12.040	2.888
12.092	2.804
12.988	2.729
13.044	2.879];	
data.tL25(:,2) = data.tL25(:,2)/ 10; % convert mm to cm
units.tL25   = {'d', 'cm'};  label.tL25 = {'time since birth', 'length','25 C'};  
temp.tL25 = C2K(25); units.temp.tL25 = 'K'; label.temp.tL25 = 'temperature'; 
bibkey.tL25 = 'RichZhan2023'; 
%
data.tL27 = [ ... % time since birth (d), length (mm)
0.057	0.671
0.059	0.755
0.967	1.117
0.969	1.220
1.001	0.940
1.003	1.005
1.003	1.033
1.950	1.368
1.995	1.591
1.996	1.629
2.001	1.852
2.025	1.265
2.030	1.433
2.070	1.498
2.082	1.936
2.115	1.703
2.866	2.047
2.946	2.121
2.978	1.842
2.979	1.898
3.013	1.702
3.024	2.103
3.030	2.336
3.093	1.767
3.106	2.289
3.128	1.618
3.999	2.065
4.001	2.120
4.002	2.158
4.007	2.353
4.036	1.999
4.043	2.232
4.044	2.288
4.074	1.934
4.075	1.971
4.977	2.101
4.982	2.297
4.985	2.427
4.986	2.474
5.022	2.362
5.066	2.539
5.097	2.213
6.039	2.407
6.044	2.584
6.046	2.659
6.074	2.240
6.076	2.324
6.081	2.528
6.119	2.473
6.976	2.369
6.979	2.509
7.056	2.453
7.059	2.565
7.060	2.611
7.100	2.658
7.102	2.733
8.032	2.415
8.033	2.452
8.034	2.499
8.069	2.350
8.076	2.629
8.117	2.704
9.047	2.405
9.053	2.619
9.055	2.693
9.089	2.507
9.090	2.554
9.162	2.330
10.061	2.357
10.066	2.525
10.067	2.590
10.104	2.478
10.110	2.730
10.141	2.432
11.081	2.515
11.118	2.421
11.119	2.468
11.126	2.719];	
data.tL27(:,2) = data.tL27(:,2)/ 10; % convert mm to cm
units.tL27   = {'d', 'cm'};  label.tL27 = {'time since birth', 'length','27 C'};  
temp.tL27 = C2K(27); units.temp.tL27 = 'K'; label.temp.tL27 = 'temperature'; 
bibkey.tL27 = 'RichZhan2023'; 
%
data.tL29 = [ ... % time since birth (d), length (mm)
0.007	0.708
0.008	0.652
0.009	0.773
0.974	1.145
0.975	1.210
1.045	1.098
1.871	1.740
1.976	1.573
1.977	1.703
2.009	1.349
2.009	1.396
2.010	1.442
2.014	1.815
2.046	1.507
2.942	2.028
2.975	1.823
2.977	1.963
3.014	2.084
3.015	2.149
3.016	2.242
3.079	1.600
3.081	1.711
4.011	2.139
4.013	2.260
4.043	1.850
4.046	2.074
4.080	1.925
4.081	2.009
5.041	1.998
5.044	2.213
5.045	2.297
5.046	2.380
5.047	2.446
5.076	1.924
5.111	1.859
5.114	2.101
5.970	2.249
6.003	2.035
6.004	2.165
6.010	2.631
6.039	2.100
6.077	2.333
7.035	2.015
7.038	2.267
7.071	2.071
7.077	2.630
7.108	2.164
7.110	2.341
7.999	2.331
8.034	2.256
8.036	2.443
8.067	2.070
9.065	2.181
9.140	2.470];	
data.tL29(:,2) = data.tL29(:,2)/ 10; % convert mm to cm
units.tL29   = {'d', 'cm'};  label.tL29 = {'time since birth', 'length','29 C'};  
temp.tL29 = C2K(29); units.temp.tL29 = 'K'; label.temp.tL29 = 'temperature'; 
bibkey.tL29 = 'RichZhan2023'; 
%
data.tL32 = [ ... % time since birth (d), length (mm)
0.035	0.727
0.036	0.661
0.037	0.615
1.200	1.480
1.201	1.406
1.202	1.340
1.203	1.275
1.237	1.163
2.473	1.759
2.474	1.609
2.544	1.675
2.580	1.824
2.581	1.572
3.675	2.083
3.710	2.028
3.745	1.990
3.746	1.925
4.947	2.148
4.982	2.222
5.053	1.998
5.088	2.064
6.217	2.053
6.218	2.202
6.219	2.267
6.254	2.128
7.385	2.127
7.455	2.201
7.456	2.266
7.527	2.052
8.693	2.349
8.763	2.163
8.834	2.069
10.000	2.329];	
data.tL32(:,2) = data.tL32(:,2)/ 10; % convert mm to cm
units.tL32   = {'d', 'cm'};  label.tL32 = {'time since birth', 'length','32 C'};  
temp.tL32 = C2K(32); units.temp.tL32 = 'K'; label.temp.tL32 = 'temperature'; 
bibkey.tL32 = 'RichZhan2023'; 

% time-cum offspring
data.tN10 = [ ... % time since birth (d), length (cm)
0.372	0.000
1.487	0.000
3.346	0.000
4.833	0.000
6.691	0.000
8.550	0.000
10.409	1.746
12.639	2.647
14.126	0.000
16.357	3.536
18.216	2.596
20.074	2.579
21.933	0.717
23.792	14.537
24.535	6.228
25.651	14.520
25.651	2.527
26.394	16.358
28.625	16.338
29.368	2.493
31.227	15.391
31.599	30.148
32.342	1.543
33.086	25.522
34.201	15.364
34.572	31.965
35.316	14.431
35.688	31.955
35.688	21.808
37.175	14.414
37.918	31.935
39.777	21.770
39.777	12.545
40.892	17.147
41.264	32.826
43.123	58.639
43.494	50.333
43.494	27.271
43.866	41.105
45.353	55.851
45.353	35.556
46.468	49.383
47.212	29.081
47.955	54.905
47.955	39.222
49.442	58.581
49.442	37.363
49.814	44.740
50.929	28.125
51.301	50.261
52.045	85.310
52.045	70.550
52.045	56.712
52.788	45.635
53.532	72.381
53.903	86.215
54.647	51.153
55.019	86.205
55.019	60.375
55.390	71.441
55.390	47.456
57.249	47.439
57.621	84.336
57.621	71.421
57.621	64.041
58.364	53.886
58.736	94.473
59.108	47.422
59.480	70.481
60.595	91.688
60.595	86.153
60.595	63.091
61.710	72.305
61.710	56.623
63.197	89.819
63.941	56.602
64.312	78.739
64.312	63.979
64.684	83.348
65.056	70.430
65.799	56.585
67.286	75.022
67.286	90.704
67.658	115.609
68.030	99.000
68.030	66.712
69.517	114.669
69.517	105.444
69.888	76.843
71.004	114.655
71.375	66.681
71.747	116.493
71.747	102.656
72.862	67.590
73.234	98.029
73.606	110.019
74.349	127.539
74.721	112.776
74.721	67.573
75.465	119.227
75.465	105.389
75.836	134.906
76.208	147.818
76.952	134.896
77.323	109.062
77.695	86.918
78.067	145.955
78.067	129.350
79.554	135.794
79.554	103.506
79.554	87.824
80.297	127.485
80.669	147.776
82.156	88.722
82.528	136.689
82.900	128.383
84.015	194.793
84.015	142.210
84.015	147.745
84.387	187.410
84.387	154.200
84.758	87.776
86.617	160.637
86.617	99.751
86.989	140.338
87.361	192.918
87.361	188.305
88.104	154.165
88.848	99.730
89.591	182.749
89.591	192.897
90.335	189.200
90.335	163.370
91.450	238.083
91.450	154.134
92.565	100.619
93.309	182.715
94.052	163.336
94.424	242.668
94.796	128.273
96.654	198.367
96.654	180.839
97.026	240.799
98.513	224.180
99.628	240.775
101.115	296.112
101.115	241.684
102.230	296.101
102.602	225.987
104.461	224.125
104.833	286.852
105.204	298.842
106.691	287.758
107.435	296.976
108.178	312.652
109.294	285.889
110.409	314.476
110.781	291.410];	
units.tN10   = {'d', '#'};  label.tN10 = {'time since birth', 'cum offspring','10 C'};  
temp.tN10 = C2K(10); units.temp.tN10 = 'K'; label.temp.tN10 = 'temperature'; 
bibkey.tN10 = 'RichZhan2023'; 
%
data.tN17 = [ ... % time since birth (d), length (cm)
0.000	0.000
1.343	0.000
1.679	0.000
3.356	0.000
4.363	0.000
5.873	0.000
7.049	6.869
8.058	10.364
8.725	0.000
9.235	17.375
9.907	19.705
10.575	11.478
11.249	18.500
11.915	6.755
12.604	48.967
12.755	10.254
13.101	33.706
14.937	11.376
15.115	36.005
15.120	47.735
15.449	32.478
16.462	46.531
16.466	55.915
16.623	30.105
17.153	93.435
17.789	10.136
18.630	15.981
18.680	133.282
18.825	79.320
18.829	89.877
19.149	53.506
19.471	19.481
19.852	128.563
20.002	86.330
20.009	101.579
20.155	51.136
21.663	46.409
21.679	83.945
21.860	114.439
22.000	48.747
22.198	120.296
22.556	175.420
23.715	136.683
23.861	85.067
23.875	119.084
24.011	42.835
24.038	108.523
24.401	174.204
25.061	146.036
25.386	122.568
25.574	169.484
25.704	79.158
25.729	138.982
26.066	143.666
26.074	162.434
26.096	215.220
26.711	79.135
26.728	120.190
26.905	143.646
26.936	217.546
27.076	150.681
27.086	175.314
27.418	164.749
28.775	201.081
28.792	240.963
29.071	107.232
29.251	135.380
29.267	172.917
29.430	162.356
29.608	185.812
30.435	158.813
30.638	242.093
30.759	129.480
30.775	168.189
30.935	150.590
31.119	188.122
31.294	206.887
32.614	152.897
32.649	236.180
32.791	175.180
32.802	202.159
32.814	229.138
33.002	278.401
33.142	212.708
33.824	238.499
33.971	188.055
33.977	202.132
33.986	224.419
34.345	280.715
35.671	240.801
35.849	264.258
36.000	224.371
36.035	307.655
36.176	245.482
36.323	196.211
36.326	202.076
37.837	205.560
37.853	241.923
38.024	250.130
38.215	306.431
38.353	234.873
39.709	267.686
39.732	322.818
39.869	247.741
40.190	213.716
40.366	234.826
40.377	259.459
40.693	213.704
40.882	262.967
41.053	272.347
41.381	252.398
43.065	268.780
43.069	276.992
43.242	291.064
44.754	295.720
45.094	306.270
46.960	353.147
47.106	302.703
47.109	309.741
48.135	355.465
48.452	310.883];	
units.tN17   = {'d', '#'};  label.tN17 = {'time since birth', 'cum offspring','17 C'};  
temp.tN17 = C2K(17); units.temp.tN17 = 'K'; label.temp.tN17 = 'temperature'; 
bibkey.tN17 = 'RichZhan2023'; 
%
data.tN20 = [ ... % time since birth (d), length (cm)
0.155	0.000
1.235	0.000
2.007	0.000
3.088	0.000
4.015	0.000
4.632	0.000
5.868	0.000
7.256	12.245
8.180	24.490
8.951	27.988
8.956	8.746
9.870	57.726
10.035	19.242
10.183	41.983
10.346	8.746
10.796	62.974
11.111	36.735
11.265	40.233
11.875	68.222
12.033	55.977
12.190	47.230
13.724	83.965
13.877	90.962
14.347	66.472
15.725	110.204
15.883	96.210
15.886	87.464
16.339	125.948
17.875	160.933
17.877	150.437
17.882	131.195
17.886	117.201
18.046	94.461
18.956	160.933
18.957	153.936
19.119	124.198
19.268	146.939
19.277	113.703
20.966	148.688
21.113	180.175
21.273	159.184
21.568	213.411
22.653	197.668
22.953	230.904
23.120	183.673
23.254	262.391
23.259	243.149
23.279	164.432
23.590	155.685
24.798	262.391
24.969	197.668
25.111	246.647
25.117	222.157
25.127	183.673
25.276	206.414
25.867	311.370
25.881	255.394
26.184	278.134
26.201	213.411
26.352	227.405
27.719	314.869
27.738	239.650
27.879	292.128
28.044	253.644
28.206	222.157
29.580	286.881
29.893	267.638
29.902	232.653
30.341	330.612
30.363	244.898
30.513	260.641
30.515	251.895
31.566	369.096
32.049	293.878
32.053	278.134
32.059	255.394
32.194	328.863
32.210	267.638
32.354	307.872
32.805	356.851
32.818	306.122
33.131	288.630
33.263	377.843
33.599	272.886
34.803	393.586
34.824	313.120
34.962	374.344
35.125	341.108
35.292	295.627
36.983	323.615
37.145	293.878
37.289	337.609
37.425	405.831
37.450	309.621
38.681	328.863
38.838	316.618
38.957	456.560
39.134	367.347
39.440	377.843
40.219	353.353
40.346	458.309
40.371	362.099
42.039	482.799
42.224	362.099
42.372	390.087
44.041	505.539
44.070	391.837
44.220	407.580
44.228	376.093
46.048	507.289
46.385	397.085];	
units.tN20   = {'d', '#'};  label.tN20 = {'time since birth', 'cum offspring','20 C'};  
temp.tN20 = C2K(20); units.temp.tN20 = 'K'; label.temp.tN20 = 'temperature'; 
bibkey.tN20 = 'RichZhan2023'; 
%
data.tN23 = [ ... % time since birth (d), length (cm)
0.000	0.000
1.081	0.000
2.071	0.000
3.062	0.000
3.963	0.000
4.774	0.000
5.762	12.389
6.031	16.814
6.034	0.000
7.021	19.469
7.024	11.504
7.290	25.664
8.005	44.248
8.188	34.513
8.189	29.204
8.906	42.478
8.908	36.283
9.000	30.089
9.174	52.212
9.803	56.637
9.806	45.133
10.071	62.832
10.705	53.097
10.793	58.407
11.060	70.796
11.066	48.673
11.238	76.106
11.870	71.681
11.872	66.372
11.958	78.761
12.041	104.425
13.938	86.726
14.021	108.850
14.023	102.655
14.025	98.230
14.026	92.920
15.825	102.655
15.906	132.743
15.914	107.080
15.995	136.283
15.998	125.664
17.711	123.894
17.803	115.929
18.066	138.938
18.154	146.903
18.780	161.947
18.784	149.558
18.876	144.248
18.956	177.876
19.060	130.973
19.154	116.814
20.761	166.372
20.938	175.221
21.033	161.062
21.042	130.089
21.111	199.115
22.742	169.027
22.916	191.150
24.988	189.381
27.057	200.885];	
units.tN23   = {'d', '#'};  label.tN23 = {'time since birth', 'cum offspring','23 C'};  
temp.tN23 = C2K(23); units.temp.tN23 = 'K'; label.temp.tN23 = 'temperature'; 
bibkey.tN23 = 'RichZhan2023'; 
%
data.tN25 = [ ... % time since birth (d), length (cm)
0.000	0.000
1.000	0.000
2.000	0.000
3.000	0.000
4.000	0.000
5.000	0.000
5.001	10.474
5.002	8.003
5.003	0.000
5.004	14.358
5.005	5.535
5.818	21.810
5.823	11.928
5.826	4.870
5.828	0.000
5.872	16.166
5.919	24.992
5.925	9.462
5.926	8.051
6.780	24.326
6.830	26.093
6.835	14.799
6.837	9.858
6.927	36.686
6.929	31.745
6.930	30.333
6.931	28.922
6.937	13.392
6.979	34.571
6.984	21.512
6.991	4.571
7.789	34.609
7.834	49.082
7.838	38.494
7.841	31.435
7.879	61.790
7.896	22.614
7.945	25.440
7.995	28.619
8.001	13.090
8.105	8.506
8.151	19.450
8.796	50.186
8.842	62.188
8.850	42.071
8.894	59.720
8.896	55.132
8.899	48.073
8.908	24.779
8.947	53.369
8.950	45.958
8.953	40.311
8.953	38.899
8.960	22.311
9.007	32.549
9.065	13.140
9.812	46.351
9.856	61.530
9.856	60.471
9.910	53.768
9.912	49.532
9.959	57.299
9.965	43.182
9.967	38.594
9.969	33.653
9.997	86.242
10.006	65.772
10.050	81.657
10.859	85.224
10.922	56.992
10.924	50.992
10.932	34.051
10.962	80.994
11.078	47.470
11.938	51.392
11.962	113.864
11.965	107.511
11.975	82.100
12.976	113.912
13.030	105.797
13.049	59.915];	
units.tN25   = {'d', '#'};  label.tN25 = {'time since birth', 'cum offspring','25 C'};  
temp.tN25 = C2K(25); units.temp.tN25 = 'K'; label.temp.tN25 = 'temperature'; 
bibkey.tN25 = 'RichZhan2023'; 
%
data.tN27 = [ ... % time since birth (d), length (cm)
0.000	0.000
1.000	0.000
2.000	0.000
3.000	0.000
4.000	0.000
4.840	13.308
4.841	15.647
4.841	17.401
4.876	11.260
4.910	5.411
4.912	8.920
4.982	0.000
5.905	21.756
5.908	29.943
5.911	36.376
5.941	19.123
5.944	27.895
5.946	32.574
5.976	13.859
5.977	17.076
5.980	25.555
6.011	10.934
6.013	15.613
6.856	17.927
6.857	19.681
6.858	21.436
6.895	24.943
6.898	31.669
6.907	55.937
6.909	62.955
6.929	15.586
6.934	30.790
6.936	35.761
6.937	37.808
6.970	29.035
7.012	42.484
7.850	31.641
7.860	58.833
7.886	29.300
7.888	33.394
7.888	35.733
7.889	38.365
7.891	42.751
7.894	51.522
7.932	55.030
7.933	56.492
7.935	62.925
7.964	40.702
7.965	44.795
7.966	48.012
8.849	58.220
8.851	64.068
8.852	66.114
8.877	33.657
8.879	40.090
8.883	51.494
8.893	78.979
8.917	43.890
8.918	45.352
8.924	62.019
8.958	56.462
9.874	57.605
9.877	64.915
9.902	33.627
9.943	45.615
9.979	43.567
10.032	87.132
10.932	44.124
10.934	48.802
10.937	58.451
10.950	92.954];	
units.tN27   = {'d', '#'};  label.tN27 = {'time since birth', 'cum offspring','27 C'};  
temp.tN27 = C2K(27); units.temp.tN27 = 'K'; label.temp.tN27 = 'temperature'; 
bibkey.tN27 = 'RichZhan2023'; 
%
data.tN29 = [ ... % time since birth (d), length (cm)
0.000	0.000
1.000	0.000
2.000	0.000
3.000	0.000
4.000	0.000
4.013	1.026
4.047	10.117
4.982	8.944
4.983	5.425
5.015	13.343
5.016	10.117
5.017	6.012
5.018	0.000
5.050	8.211
5.051	7.331
5.052	6.598
5.953	11.290
5.985	26.246
5.986	25.220
5.987	23.314
5.988	11.730
6.020	20.968
6.021	16.569
6.022	15.396
6.023	12.317
6.053	18.182
6.054	6.158
6.957	24.340
6.990	41.789
6.991	29.326
6.992	21.261
7.023	33.138
7.024	30.059
7.023	13.050
7.057	25.073
7.058	20.235
7.960	20.235
7.993	33.871
8.027	27.419
8.028	41.935
9.030	42.229
9.064	27.126];	
units.tN29   = {'d', '#'};  label.tN29 = {'time since birth', 'cum offspring','29 C'};  
temp.tN29 = C2K(29); units.temp.tN29 = 'K'; label.temp.tN29 = 'temperature'; 
bibkey.tN29 = 'RichZhan2023'; 
%
data.tN32 = [ ... % time since birth (d), length (cm)
0.000	0.000
1.000	0.000
2.000	0.000
3.000	0.000
3.919	4.307
3.946	9.971
3.973	3.010
4.000	6.196
4.000	0.000
4.940	20.251
4.940	19.425
4.940	17.419
4.966	13.290
4.966	12.346
4.993	16.122
5.020	10.223
5.933	27.345
5.933	25.339
5.960	17.434
5.987	16.019
5.987	15.193
6.013	23.335
6.980	34.322
7.007	29.485
7.034	28.070
7.034	23.114
8.000	40.591];	
units.tN32   = {'d', '#'};  label.tN32 = {'time since birth', 'cum offspring','32 C'};  
bibkey.tN32 = 'RichZhan2023'; 

% temperature-age at puberty
data.Ttp = [ ... % temperature (C), time since birth at puberty (d)
10	17.411
17	6.413
20	4.933
23	3.632
25	3.315
27	2.909
29	2.681
32	2.540];
units.Ttp   = {'C', 'd'};  label.Ttp = {'temperature', 'time since birth at puberty'};  
temp.tN32 = C2K(32); units.temp.tN32 = 'K'; label.temp.tN32 = 'temperature'; 
bibkey.Ttp = 'RichZhan2023'; treat.Ttp = {0};

%% set weights for all real data
weights = setweights(data, []);
weights.tL10 = 3 * weights.tL10; 
weights.tL17 = 3 * weights.tL17; 
weights.tL20 = 3 * weights.tL20; 
weights.tL29 = 5 * weights.tL29; 
weights.tL32 = 10 * weights.tL32; 
weights.Lp = 0 * 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;
auxData.treat = treat;
txtData.units = units;
txtData.label = label;
txtData.bibkey = bibkey;
txtData.comment = comment;

%% Group plots
set1 = {'tL32','tL29','tL27','tL25'}; subtitle1 = {'Data for 32,29,27,25 C'};
set2 = {'tL23','tL20','tL17','tL10'}; subtitle2 = {'Data for 23,20,17,10 C'};
set3 = {'tN32','tN29','tN27','tN25'}; subtitle3 = {'Data for 32,29,27,25 C'};
set4 = {'tN23','tN20','tN17','tN10'}; subtitle4 = {'Data for 23,20,17,10 C'};
metaData.grp.sets = {set1,set2,set3,set4};
metaData.grp.subtitle = {subtitle1,subtitle2,subtitle3,subtitle4};

%% Discussion points
D1 = 'food denisty is take to increase over time for tL10 data';
metaData.discussion = struct('D1', D1);

%% Links
metaData.links.id_CoL = '6CCSZ'; % Cat of Life
metaData.links.id_ITIS = ''; % ITIS
metaData.links.id_EoL = ''; % Ency of Life
metaData.links.id_Wiki = 'Daphnia'; % Wikipedia
metaData.links.id_ADW = ''; % ADW
metaData.links.id_Taxo = '5334736'; % Taxonomicon
metaData.links.id_WoRMS = '1302497'; % WoRMS

%% References
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 = 'RichZhan2023'; type = 'Article'; bib = [ ... 
'author = {Romain Richard and Yi-Kuan Zhang and Kuan-Wei Hung}, ' ... 
'year = {2023}, ' ...
'title = {Thermal dependence of \emph{Daphnia} life history reveals asymmetries between key vital rates}, ' ...
'journal = {Journal of Thermal Biology}, ' ...
'volume = {115}, ' ...
'pages = {103653}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
