function [data, auxData, metaData, txtData, weights] = mydata_Sinanodonta_woodiana
%% set metaData
metaData.phylum     = 'Mollusca'; 
metaData.class      = 'Bivalvia'; 
metaData.order      = 'Unionoida'; 
metaData.family     = 'Hyriidae';
metaData.species    = 'Sinanodonta_woodiana'; 
metaData.species_en = 'Chinese pond mussel'; 

metaData.ecoCode.climate = {'Cfa','Dfa','Dwa','Dfb'};
metaData.ecoCode.ecozone = {'THp'};
metaData.ecoCode.habitat = {'0jFp', 'jiFr', 'jiFl'};
metaData.ecoCode.embryo  = {'Fbb'};
metaData.ecoCode.migrate = {};
metaData.ecoCode.food    = {'bjTvf', 'jiPp'};
metaData.ecoCode.gender  = {'D','Hh'};
metaData.ecoCode.reprod  = {'O'};

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

metaData.COMPLETE = 2.4; % using criteria of LikaKear2011

metaData.author   = {'Bas Kooijman'};    
metaData.date_subm = [2021 02 12];              
metaData.email    = {'bas.kooijman@vu.nl'};            
metaData.address  = {'VU University Amsterdam'};   

metaData.curator     = {'Starrlight Augustine'};
metaData.email_cur   = {'sta@akvaplan.niva.no'}; 
metaData.date_acc    = [2021 02 12]; 

%% set data
% zero-variate data

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

data.Lp  = 4.0;   units.Lp  = 'cm';  label.Lp  = 'total length at puberty'; bibkey.Lp  = 'LabeCzar2019';
data.Li  = 17;   units.Li  = 'cm';  label.Li  = 'ultimate total length';   bibkey.Li  = 'LabeCzar2019';
  comment.Li = 'Wiki gives 30 cm';

data.Wwb = 7e-6; units.Wwb = 'g';   label.Wwb = 'wet weight at birth';   bibkey.Wwb = 'Wiki';
  comment.Wwb = 'Based on 306 till 309 mum glochidium length, but rather flat: 0.5*4/3*pi*0.015^3';
data.Wwi = 390; units.Wwi = 'g';   label.Wwi = 'ultimate totasl wet weight';   bibkey.Wwi = 'guess';
  comment.Wwi = 'Based on Anodontites_trapesialis';
    
% uni-variate data

% time-length
data.tL_f  = [ ... % time since settlement (yr), shell length (cm)
23.077	6.607
34.615	6.450
57.692	4.164
103.846	6.011
103.846	3.757
115.385	6.794
138.462	4.508
150.000	5.416
150.000	3.193
173.077	4.821
242.308	5.948
253.846	6.543
357.692	10.551
369.231	8.108
380.769	5.384
415.385	6.887
426.923	8.828
438.462	9.580
530.769	6.949
576.923	7.826
623.077	8.358
623.077	5.853
634.615	7.356
715.385	8.671
738.462	9.485
738.462	7.950
750.000	7.512
761.538	8.577
773.077	9.860
784.615	7.919
784.615	7.105
796.154	10.330
807.692	8.389
819.231	8.827
853.846	8.294
853.846	7.449
911.538	5.445
957.692	9.171
980.769	6.447
980.769	6.008
980.769	5.820
1061.538	7.511
1061.538	8.294
1084.615	8.826
1153.846	7.980
1165.385	8.638
1176.923	7.479
1200.000	9.389
1211.538	6.415
1211.538	7.980
1292.308	6.226
1326.923	10.265
1338.462	7.197
1338.462	6.571
1350.000	6.101
1373.077	7.666
1419.231	9.795
1419.231	7.823
1430.769	6.946
1453.846	7.666
1453.846	7.290
1465.385	12.582
1465.385	5.412
1488.462	9.764
1488.462	8.073
1523.077	9.200
1546.154	9.357
1546.154	8.762
1546.154	8.605
1557.692	8.887
1580.769	5.631
1615.385	8.417
1615.385	7.885
1673.077	12.112
1684.615	7.164
1719.231	7.102
1776.923	7.102
1800.000	6.569
1800.000	7.571
1834.615	8.698
1834.615	6.913
1892.308	8.917
1892.308	10.608
1926.923	10.232
1950.000	8.698
1961.538	11.234
1984.615	9.981
2019.231	10.263
2019.231	10.889
2042.308	9.856
2076.923	11.609
2123.077	7.320
2134.615	6.818
2146.154	8.822
2169.231	11.891
2169.231	8.540
2192.308	7.758
2192.308	9.292
2226.923	7.382
2296.154	10.982
2296.154	10.168
2319.231	8.196
2319.231	9.698
2365.385	10.638
2423.077	5.909
2434.615	8.665
2457.692	8.383
2457.692	10.919
2480.769	6.160
2480.769	8.007
2538.462	13.267
2538.462	10.606
2561.538	9.572
2584.615	11.388
2584.615	10.762
2596.154	6.535
2630.769	8.320
2630.769	9.071
2653.846	12.234
2653.846	11.419
2676.923	9.760
2700.000	9.415
2700.000	10.668
2723.077	8.539
2723.077	10.355
2803.846	11.544
2803.846	12.609
2884.615	7.004
2896.154	11.669
2907.692	13.955
2965.385	10.229
2976.923	10.855
2976.923	11.230
2976.923	11.387
3023.077	8.631
3023.077	10.573
3046.154	13.735
3057.692	7.786
3057.692	10.447
3080.769	8.850
3184.615	10.353
3184.615	9.508
3196.154	10.134
3230.769	9.758
3276.923	12.952
3288.462	12.137
3300.000	11.574
3300.000	10.290
3300.000	9.601
3311.538	11.355
3311.538	8.975
3334.615	11.041
3357.692	9.225
3392.308	11.793
3426.923	9.757
3473.077	12.105
3588.462	12.293
3600.000	8.567
3657.692	9.349
3657.692	9.757
3657.692	12.731
3680.769	11.416
3680.769	11.729
3773.077	11.071
3830.769	8.472
3946.154	14.577
3980.769	13.982
3980.769	11.133
4026.923	6.311
4038.462	12.761
4073.077	12.229
4096.154	14.671
4096.154	11.759
4096.154	10.945
4107.692	13.763
4130.769	12.448
4130.769	9.066
4142.308	10.444
4153.846	12.573
4176.923	12.792
4200.000	15.610
4257.692	11.383
4338.462	11.758
4338.462	14.106
4361.538	12.509
4361.538	12.697
4361.538	10.224
4419.231	12.008
4419.231	12.290
4430.769	11.351
4442.308	13.229
4476.923	12.102
4511.538	13.041
4546.154	9.660
4569.231	8.626
4603.846	11.225
4673.077	11.600
4707.692	14.043
4719.231	10.348
4753.846	10.097
4776.923	13.823
4776.923	14.074
4811.538	12.665
4857.692	13.854
4880.769	14.386
4892.308	13.103
4903.846	12.288
4938.462	12.946
4984.615	15.983
4984.615	10.785
4996.154	13.259
5065.385	14.354
5076.923	12.319
5192.308	13.790
5192.308	11.035
5215.385	11.943
5261.538	12.444
5411.538	14.134
5423.077	14.134
5469.231	14.134
5723.077	11.847
5803.846	13.600
5815.385	13.851
5838.462	12.191
5850.000	11.565
5850.000	13.099
5930.769	12.911
5976.923	12.629
6034.615	13.349
6092.308	13.819
6115.385	12.503
6196.154	13.975
6242.308	13.286
6323.077	14.475
6357.692	13.035
6357.692	13.160
6380.769	11.720
6461.538	15.070
6484.615	13.285
6576.923	16.729
7823.077	15.034
7834.615	12.059
8134.615	15.252
8376.923	15.282];
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 puberty', 'shell length', 'female'};  
temp.tL_f    = C2K(17);  units.temp.tL_f = 'K'; label.temp.tL_f = 'temperature';
bibkey.tL_f = 'LabeCzar2019';
comment.tL_f = 'Data for females from Odra River, temperature changes seasonally between 3.8 and 31,1 C';
%
data.tL_m = [ ... % time since settlement (yr), shell length (cm)
46.154	6.606
103.846	3.914
161.538	5.698
173.077	5.166
173.077	4.446
184.615	5.416
380.769	6.480
392.308	7.513
415.385	8.672
415.385	6.950
438.462	7.889
438.462	6.668
473.077	8.578
530.769	8.076
600.000	5.383
646.154	7.293
703.846	6.510
715.385	9.391
738.462	6.260
750.000	7.262
750.000	7.731
761.538	6.667
773.077	7.543
842.308	6.510
911.538	9.296
934.615	7.324
957.692	6.134
1015.385	9.014
1050.000	6.760
1073.077	9.640
1073.077	5.945
1096.154	7.824
1107.692	8.732
1107.692	6.352
1153.846	6.978
1165.385	11.049
1165.385	8.481
1223.077	10.829
1303.846	6.853
1338.462	6.352
1453.846	8.042
1488.462	8.355
1500.000	10.296
1500.000	5.913
1523.077	9.482
1546.154	8.136
1603.846	8.480
1615.385	9.137
1650.000	10.296
1650.000	4.973
1684.615	10.984
1696.154	11.924
1765.385	6.757
1765.385	6.945
1811.538	7.508
1823.077	7.352
1857.692	11.829
1857.692	11.422
1857.692	11.109
1880.769	10.608
1926.923	12.800
1926.923	10.107
1938.462	9.261
1973.077	9.637
1973.077	6.756
2100.000	11.265
2180.769	11.703
2215.385	8.259
2215.385	10.638
2226.923	8.540
2261.538	11.859
2261.538	12.266
2261.538	13.206
2342.308	8.509
2411.538	9.698
2434.615	8.133
2503.846	9.698
2538.462	11.138
2538.462	12.923
2573.077	13.424
2630.769	10.512
2653.846	7.349
2711.538	8.820
2711.538	10.793
2711.538	11.263
2873.077	9.509
2896.154	11.356
2907.692	11.638
2907.692	8.037
2942.308	13.735
3046.154	8.600
3057.692	8.788
3069.231	10.260
3080.769	12.076
3103.846	11.794
3196.154	10.635
3253.846	10.948
3276.923	12.357
3276.923	10.227
3276.923	9.695
3300.000	10.572
3334.615	12.576
3565.385	13.827
3623.077	10.539
3680.769	10.727
3680.769	10.915
3726.923	10.476
3726.923	12.449
3738.462	11.478
3773.077	11.290
3876.923	13.732
3969.231	9.849
4003.846	12.636
4026.923	12.260
4050.000	13.888
4073.077	11.696
4096.154	12.949
4153.846	11.070
4153.846	9.504
4188.462	12.166
4234.615	12.823
4315.385	9.441
4350.000	10.099
4396.154	10.537
4500.000	11.664
4511.538	12.853
4569.231	12.227
4673.077	11.882
4950.000	12.695
4984.615	11.004
5007.692	9.752
5123.077	11.661
5192.308	12.256
5250.000	11.661
5353.846	9.594
5515.385	12.599
5642.308	9.593
7257.692	12.969
8942.308	13.840];
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 puberty', 'shell length', 'male'};  
temp.tL_m    = C2K(17);  units.temp.tL_m = 'K'; label.temp.tL_m = 'temperature';
bibkey.tL_m = 'LabeCzar2019';
comment.tL_m = 'Data for males from Odra River; temperature changes seasonally between 3.8 and 31,1 C';

% length-fecundity
data.LN = [ ... % shell length (cm), fecundity (#/1000)
5.362	24.242
6.374	96.970
6.374	0.040
6.496	58.586
6.496	44.444
6.531	78.788
6.584	103.030
6.653	58.586
6.688	90.909
6.741	107.071
6.793	123.232
6.810	64.646
6.950	90.909
7.020	82.828
7.090	101.010
7.125	137.374
7.195	86.869
7.229	145.455
7.247	204.040
7.282	74.747
7.299	129.293
7.387	0.020
7.421	4.040
7.474	4.040
7.509	115.152
7.613	115.152
7.701	86.869
7.701	103.030
7.805	137.374
7.823	4.040
7.858	86.869
7.963	90.909
7.998	76.768
8.015	149.495
8.050	76.768
8.050	117.172
8.120	127.273
8.277	62.626
8.294	137.374
8.347	173.737
8.347	119.192
8.347	105.051
8.382	204.040
8.434	173.737
8.434	159.596
8.539	129.293
8.556	60.606
8.608	274.747
8.608	101.010
8.643	171.717
8.643	121.212
8.678	222.222
8.678	286.869
8.696	153.535
8.783	82.828
8.853	210.101
8.853	117.172
8.870	157.576
8.870	137.374
8.923	151.515
8.940	171.717
9.045	119.192
9.097	232.323
9.132	167.677
9.272	119.192
9.289	153.535
9.359	80.808
9.359	26.263
9.394	204.040
9.411	193.939
9.429	183.838
9.464	167.677
9.499	305.051
9.516	125.253
9.586	197.980
9.638	214.141
9.691	272.727
9.726	76.768
9.761	109.091
9.778	262.626
9.813	173.737
9.813	88.889
9.935	123.232
10.040	165.657
10.180	274.747
10.214	387.879
10.232	260.606
10.267	248.485
10.284	266.667
10.302	337.374
10.302	408.081
10.319	159.596
10.389	319.192
10.511	549.495
10.581	125.253
10.599	260.606
10.599	292.929
10.668	208.081
10.825	-2.020
10.860	327.273
10.878	2.020
10.965	335.354
10.965	248.485
10.983	305.051
11.035	412.121
11.035	254.545
11.052	187.879
11.070	335.354
11.175	210.101
11.244	179.798
11.314	448.485
11.314	262.626
11.349	486.869
11.349	119.192
11.367	513.131
11.419	40.404
11.436	343.434
11.454	480.808
11.506	230.303
11.576	167.677
11.663	551.515
11.681	450.505
11.716	206.061
11.768	642.424
11.943	412.121
12.030	226.263
12.047	256.566
12.082	496.970
12.082	311.111
12.170	694.949
12.187	438.384
12.257	264.646
12.309	359.596
12.327	464.646
12.344	32.323
12.397	66.667
12.449	551.515
12.484	216.162
12.589	486.869
12.606	535.354
12.641	343.434
12.693	389.899
12.746	541.414
12.763	327.273
12.850	767.677
12.990	812.121
13.025	181.818
13.042	371.717
13.095	410.101
13.130	434.343
13.182	369.697
13.217	545.455
13.234	220.202
13.269	614.141
13.322	333.333
13.339	666.667
13.374	945.455
13.741	501.010
13.758	652.525
13.776	735.354
13.793	296.970
13.898	397.980
13.968	672.727
13.968	511.111
14.037	656.566
14.072	412.121
14.107	387.879
14.142	731.313
14.160	163.636
14.195	151.515
14.421	113.131
14.509	608.081
14.509	311.111
14.613	915.152
14.683	343.434
15.312	606.061
15.347	773.737
16.569	816.162
16.796	361.616];
data.LN(:,2) = data.LN(:,2) * 1e3; % convert 
units.LN   = {'cm', '#'};  label.LN = {'shell length','fecundity'};  
temp.LN    = C2K(17);  units.temp.LN = 'K'; label.temp.LN = 'temperature';
bibkey.LN = 'LabeCzar2019';
comment.LN = 'Data from Odra River; temperature changes seasonally between 3.8 and 31,1 C';

%% set weights for all real data
weights = setweights(data, []);
weights.tL_f = 10 * weights.tL_f;
weights.tL_m = 10 * weights.tL_m;
weights.Li = 3 * weights.Li;

%% set pseudodata and respective weights
[data, units, label, weights] = addpseudodata(data, units, label, weights);
weights.psd.k_J = 0; weights.psd.k = 0.1;
data.psd.k = 0.3; units.psd.k  = '-'; label.psd.k  = 'maintenance ratio'; 
data.psd.p_M = 3 * data.psd.p_M;

%% 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 females, males'};
metaData.grp.sets = {set1};
metaData.grp.subtitle = {subtitle1};

%% Discussion points
D1 = 'Males are assumed not to differ from females';
metaData.discussion = struct('D1',D1);  

%% Links
metaData.links.id_CoL = '4XJB8'; % Cat of Life
metaData.links.id_ITIS = '983676'; % ITIS
metaData.links.id_EoL = '59047481'; % Ency of Life
metaData.links.id_Wiki = 'Sinanodonta_woodiana'; % Wikipedia
metaData.links.id_ADW = ''; % ADW
metaData.links.id_Taxo = '1686063'; % Taxonomicon
metaData.links.id_WoRMS = '857498'; % WoRMS
metaData.links.id_molluscabase = '857498'; % molluscabase


%% References
bibkey = 'Wiki'; type = 'Misc'; bib = ...
'howpublished = {\url{http://en.wikipedia.org/wiki/Sinanodonta_woodiana}}';
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 = 'LabeCzar2019'; type = 'Article'; bib = [ ... 
'doi = {10.1007/s10750-019-04141-9}, ' ...
'author = {Anna Maria Labecka and Marcin Czarnoleski}, ' ... 
'year = {2019}, ' ...
'title = {Patterns of growth, brooding and offspring size in the invasive mussel \emph{Sinanodonta woodiana} ({L}ea, 1834) ({B}ivalvia: {U}nionidae) from an anthropogenic heat island}, ' ...
'journal = {Hydrobiologia}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];

