function [data, auxData, metaData, txtData, weights] = mydata_Pterodroma_leucoptera
%% set metaData
metaData.phylum     = 'Chordata'; 
metaData.class      = 'Aves'; 
metaData.order      = 'Procellariiformes'; 
metaData.family     = 'Procellariidae';
metaData.species    = 'Pterodroma_leucoptera'; 
metaData.species_en = 'Gould''s petrel'; 

metaData.ecoCode.climate = {'MA', 'MB', 'MC'};
metaData.ecoCode.ecozone = {'MP'};
metaData.ecoCode.habitat = {'0iMc'};
metaData.ecoCode.embryo  = {'Tntfm'};
metaData.ecoCode.migrate = {};
metaData.ecoCode.food    = {'biCvf', 'biCik', 'biCic'};
metaData.ecoCode.gender  = {'Dg'};
metaData.ecoCode.reprod  = {'O'};

metaData.T_typical  = C2K(39.4); % K, body temp
metaData.data_0     = {'ab'; 'ax'; 'ap'; 'aR'; 'am'; 'Wwb'; 'Wwi'; 'Ri'}; 
metaData.data_1     = {'t-Ww'}; 

metaData.COMPLETE = 2.5; % using criteria of LikaKear2011

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

metaData.author_mod_1   = {'Bas Kooijman', 'Starrlight Augustine'};    
metaData.date_mod_1     = [2023 06 30];              
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 06 30];

%% set data
% zero-variate data

data.ab = 48;  units.ab = 'd';    label.ab = 'age at birth';             bibkey.ab = 'ODwy2004';   
  temp.ab = C2K(36);  units.temp.ab = 'K'; label.temp.ab = 'temperature';
  comment.ab = '42 t0 64 d';
data.tx = 90; units.tx = 'd';    label.tx = 'time since birth at fledging'; bibkey.tx = 'ODwy2004';   
  temp.tx = C2K(39.4);  units.temp.tx = 'K'; label.temp.tx = 'temperature';
data.tp = 270; units.tp = 'd';    label.tp = 'time since birth at puberty'; bibkey.tp = 'guess';   
  temp.tp = C2K(39.4);  units.temp.tp = 'K'; label.temp.tp = 'temperature';
data.tR = 2*365;   units.tR = 'd';    label.tR = 'time since birth at 1st brood';  bibkey.tR = 'guess';
  temp.tR = C2K(39.4); units.temp.tR = 'K'; label.temp.tR = 'temperature';
data.am = 25*365;   units.am = 'd';    label.am = 'life span';           bibkey.am = 'guess';   
  temp.am = C2K(39.4);  units.temp.am = 'K'; label.temp.am = 'temperature'; 

data.Wwb = 32; units.Wwb = 'g';   label.Wwb = 'wet weight at birth';     bibkey.Wwb = 'ODwy2004';
data.Wwi = 550; units.Wwi = 'g';  label.Wwi = 'ultimate wet weight';      bibkey.Wwi = 'ODwy2004';
  comment.Wwi = 'asymptote for nestling; mean adult weight is lower: mean 180 g';

data.Ri  = 1/365;  units.Ri  = '#/d'; label.Ri  = 'maximum reprod rate'; bibkey.Ri  = 'ODwy2004';   
  temp.Ri = C2K(39.4);  units.temp.Ri = 'K'; label.temp.Ri = 'temperature';

% uni-variate data      
% time-weight
data.tW = [ ... % time since birth (d), wet weight (g)
0.410	34.203
0.683	43.276
1.093	27.218
1.093	38.387
1.093	49.556
1.639	53.741
1.913	41.871
2.186	32.096
2.732	36.979
2.732	47.450
2.732	57.224
2.869	60.713
3.552	51.633
3.825	76.762
3.825	84.441
4.098	41.158
4.098	60.006
4.235	48.138
4.235	66.288
4.645	93.510
4.918	80.245
5.464	57.204
5.464	46.733
5.464	118.636
5.601	101.881
5.874	62.088
6.011	94.199
6.148	50.219
6.148	68.369
6.148	85.821
6.694	103.967
6.831	124.909
7.104	107.455
7.104	120.718
7.240	64.173
7.650	53.001
7.650	58.585
7.650	92.093
7.923	111.638
7.923	115.826
8.060	74.638
8.060	102.562
8.470	108.143
8.607	47.409
8.743	81.614
8.743	123.499
9.290	55.083
9.290	94.874
9.290	100.459
9.426	72.535
9.563	49.497
10.246	91.377
10.929	50.185
10.929	111.617
11.066	104.635
11.202	75.314
11.475	64.143
11.612	122.083
11.612	152.100
11.885	133.250
12.158	85.779
12.295	78.797
12.432	98.343
12.568	71.815
12.842	133.244
12.842	144.413
12.978	92.056
13.388	82.978
13.388	104.619
13.388	128.353
13.525	115.787
13.661	120.673
14.071	130.443
14.754	103.911
14.754	114.382
14.891	124.852
15.027	92.740
15.027	120.663
15.164	106.700
15.437	113.679
15.574	73.888
15.574	119.263
15.574	130.432
15.710	155.562
15.847	99.715
15.847	92.734
16.120	149.277
16.393	164.633
16.530	125.539
16.530	137.406
16.667	131.821
16.803	108.085
16.940	96.915
17.213	81.555
17.213	119.252
17.486	148.569
17.623	129.022
17.623	140.889
17.896	159.735
18.033	112.265
18.306	138.790
18.579	95.507
18.579	154.146
18.852	131.806
18.989	92.712
18.989	166.709
19.126	147.161
19.262	119.935
19.262	161.122
19.262	173.688
19.809	87.820
19.809	155.534
19.809	182.759
19.945	108.761
20.082	119.930
20.082	132.495
20.082	163.909
20.082	138.778
20.219	175.077
20.765	126.208
21.038	104.565
21.038	113.640
21.038	147.148
21.038	141.563
21.175	177.863
21.175	163.901
21.585	186.237
21.721	114.334
21.858	123.408
21.858	168.085
21.858	152.029
21.858	139.463
21.995	196.007
21.995	201.592
22.541	156.213
22.541	187.626
22.678	175.060
22.814	171.568
22.951	118.513
22.951	191.812
23.087	135.964
23.087	220.432
23.087	228.809
23.224	93.381
23.224	101.758
23.361	168.074
23.497	147.131
23.497	182.035
23.634	162.488
23.770	140.148
23.907	205.767
24.044	228.104
24.180	134.561
24.180	168.069
24.180	161.088
24.317	234.385
24.454	175.746
24.590	172.952
24.590	186.914
24.727	165.970
24.727	216.232
25.000	152.007
25.000	158.988
25.137	117.800
25.137	172.250
25.137	174.345
25.273	128.270
25.410	167.362
25.410	221.114
25.546	193.190
25.683	149.908
25.683	241.356
25.820	138.738
25.820	165.963
25.820	225.998
26.093	106.624
26.093	145.717
26.093	209.940
26.230	172.243
26.776	124.071
26.776	191.785
26.776	185.502
26.776	179.220
26.776	248.330
26.913	213.425
26.913	221.802
27.049	158.973
27.049	237.857
27.186	163.859
27.322	151.991
27.732	135.234
28.005	166.646
28.005	209.229
28.005	266.471
28.415	131.739
28.689	159.660
28.962	175.714
28.962	237.145
29.098	121.961
29.098	145.696
29.098	183.392
29.098	194.561
29.372	218.294
29.508	202.237
29.508	219.689
29.508	252.499
29.645	166.634
29.645	161.050
30.055	172.914
30.191	128.934
30.328	145.687
30.601	218.286
30.874	181.983
30.874	188.266
30.874	202.926
31.011	177.096
31.148	168.020
31.148	200.830
31.284	238.525
31.694	124.037
31.694	221.070
31.831	191.052
31.967	216.182
32.104	152.655
32.240	139.391
32.377	218.971
32.514	209.197
32.650	168.009
32.923	200.119
33.197	123.328
33.333	182.664
33.333	192.437
33.333	228.738
33.333	239.209
33.470	136.590
33.470	244.793
33.607	174.285
33.607	254.565
33.743	163.115
33.880	207.093
34.290	117.736
34.290	237.108
34.426	194.524
34.563	222.446
34.699	204.993
34.836	177.069
34.836	207.785
34.836	265.027
34.973	184.747
34.973	170.786
34.973	140.070
35.109	248.271
35.109	306.212
35.246	231.517
35.519	235.005
35.656	285.266
35.656	332.037
35.792	325.056
36.066	167.986
36.066	221.040
36.066	228.020
36.066	265.019
36.202	252.452
36.202	236.396
36.339	214.755
36.475	207.773
36.475	292.241
36.475	332.032
36.612	156.812
36.612	297.825
36.612	302.013
36.749	190.319
36.749	162.396
36.885	221.034
37.022	224.523
37.158	276.878
37.568	239.877
37.568	272.687
37.705	150.522
37.705	234.292
37.705	345.287
37.978	221.026
37.978	281.759
38.251	225.911
38.251	244.759
38.798	253.132
38.798	264.302
38.934	216.831
38.934	209.850
39.071	364.823
39.208	229.395
39.344	262.902
39.754	241.956
39.891	178.430
40.027	257.312
40.301	209.841
40.301	245.443
40.574	251.724
40.710	227.988
40.984	172.140
40.984	191.686
40.984	278.248
41.120	199.364
41.120	258.003
41.667	314.543
41.803	166.549
41.940	237.055
42.077	211.225
42.077	218.903
42.077	253.109
42.213	195.168
42.350	203.544
42.486	189.581
42.623	183.298
42.760	272.651
42.760	271.255
42.760	305.461
43.169	224.480
43.169	278.233
43.169	314.533
43.306	197.952
43.716	218.194
43.716	235.646
43.716	299.171
43.852	286.605
43.852	258.682
43.989	183.288
43.989	177.005
43.989	281.019
43.989	225.173
44.126	190.268
44.536	297.071
44.672	219.583
44.672	205.622
44.809	177.000
44.809	212.602
44.945	197.243
44.945	244.712
44.945	225.864
45.355	172.109
45.628	186.767
45.628	224.463
45.628	263.556
45.902	212.594
46.038	291.476
46.038	246.101
46.175	278.910
46.448	244.702
46.585	227.249
46.721	269.831
46.858	176.985
46.858	234.926
46.858	206.305
46.995	308.223
47.131	286.582
47.131	241.207
47.268	190.246
47.268	250.281
47.268	218.867
47.268	308.920
47.814	290.068
47.951	184.657
47.951	256.559
47.951	237.711
48.087	283.085
48.361	226.538
48.361	310.308
48.497	177.672
48.497	320.080
48.634	174.181
48.634	305.420
48.770	232.120
48.770	212.574
48.907	244.685
48.907	293.550
49.180	262.135
49.180	267.021
49.180	314.491
49.317	220.947
49.590	285.867
49.727	279.583
49.727	258.641
49.863	163.003
49.863	233.509
50.000	249.564
50.000	239.092
50.000	317.277
50.137	321.465
50.137	285.165
50.273	173.471
50.273	164.396
50.410	260.032
50.683	243.276
50.683	294.934
50.820	257.237
50.820	196.504
50.956	163.693
50.956	153.920
50.956	276.084
51.093	267.008
51.093	262.122
51.230	249.555
51.230	332.627
51.776	194.403
51.913	299.114
51.913	317.264
52.049	154.610
52.049	151.120
52.049	219.532
52.049	278.171
52.186	229.304
52.322	234.888
52.459	244.660
52.459	294.922
52.459	329.826
53.005	206.262
53.005	222.318
53.005	262.108
53.279	212.543
53.415	199.976
53.415	299.802
53.415	305.386
53.552	269.783
53.825	281.649
53.962	212.538
54.098	205.556
54.098	296.306
54.098	228.593
54.235	247.440
54.235	258.609
54.235	290.023
54.372	253.024
54.372	273.966
54.781	262.096
54.781	290.019
54.781	232.078
54.918	333.299
55.191	282.337
55.191	220.906
55.191	312.355
55.191	319.335
55.601	236.261
55.738	236.260
55.738	233.468
55.874	211.128
55.874	322.821
55.874	327.010
56.011	248.126
56.148	222.994
56.148	243.936
56.421	312.346
56.557	303.270
56.694	203.444
56.694	230.669
56.831	268.364
56.831	253.704
56.831	264.176
56.831	296.287
57.377	219.495
57.650	197.852
57.787	238.340
57.923	218.095
57.923	290.695
57.923	285.110
58.470	245.316
58.470	255.787
58.607	216.694
58.607	234.146
58.743	190.864
58.743	251.597
58.880	196.448
58.880	276.029
59.016	208.314
59.016	266.953
59.016	290.687
59.016	306.045
59.016	317.215
59.290	225.066
59.699	259.269
59.699	278.815
59.836	209.006
59.836	238.326
60.109	315.811
60.246	246.002
60.383	232.737
60.792	199.925
60.792	245.300
60.929	278.807
60.929	284.391
61.066	262.750
61.202	273.918
61.202	269.730
61.475	257.162
61.612	237.615
61.749	220.162
61.749	229.935
61.749	251.576
61.749	237.614
61.885	206.200
62.022	243.895
62.158	237.611
62.158	266.931
62.295	227.139
62.295	314.399
62.432	327.662
62.568	213.874
62.842	256.455
62.978	251.567
62.978	236.210
63.115	356.278
63.388	319.278
63.525	218.754
63.661	255.053
63.798	238.298
64.071	266.917
64.071	211.071
64.344	240.389
64.481	277.386
64.754	253.649
64.754	205.482
64.891	282.270
65.027	263.420
65.301	289.247
65.437	295.529
65.574	225.022
65.574	232.701
65.574	238.286
65.574	248.059
65.574	303.905
65.984	197.096
66.120	267.601
66.667	255.032
66.667	208.261
66.803	243.862
66.940	261.313
66.940	303.896
67.350	227.104
67.760	294.815
68.033	227.099
68.169	201.967
68.306	249.436
68.306	261.303
68.306	236.172
68.716	268.979
68.852	333.900
68.852	242.451
68.852	196.378
69.399	273.163
69.399	245.240
69.809	296.895
69.809	223.596
69.945	238.953
69.945	231.972
69.945	225.690
70.082	209.633
70.219	287.119
70.628	308.757
70.628	270.362
70.628	250.118
70.765	218.005
70.902	264.776
70.902	211.023
71.038	267.567
71.311	278.036
71.311	254.301
71.311	224.284
71.585	287.807
71.721	240.337
72.404	259.879
72.541	216.597
72.541	225.672
72.541	244.520
72.814	260.574
72.814	250.801
72.951	236.838
73.087	303.155
73.497	175.403
73.634	214.495
73.770	301.056
73.770	209.607
73.907	230.549
74.044	201.926
74.317	291.279
74.454	229.149
74.590	236.129
74.863	257.069
75.137	252.879
75.137	247.294
75.273	217.276
75.410	248.688
75.546	205.406
75.820	266.835
75.956	278.702
75.956	264.740
75.956	261.250
75.956	233.327
76.093	272.418
76.093	221.458
76.230	196.326
76.366	208.891
76.503	283.585
76.639	241.699
76.913	277.299
77.049	236.111
77.049	213.773
77.322	247.279
77.322	236.808
77.459	264.032
77.596	197.713
77.596	203.996
77.732	245.182
77.732	224.239
78.142	216.557
78.279	229.820
78.415	255.648
78.689	239.590
78.825	208.176
78.962	192.817
79.508	238.887
79.508	212.359
79.508	252.150
79.781	221.433
80.191	228.411
80.464	213.749
80.464	244.464
80.874	195.596
81.011	236.084
81.148	194.896
81.421	228.402
81.557	203.968
81.967	216.531
82.377	209.547
82.514	223.508
82.650	200.470
82.923	192.789
83.197	215.126
83.607	186.502
83.743	192.086
83.743	210.236
83.880	201.160
84.290	217.911
84.836	186.493
84.836	180.909
85.246	213.017
85.246	199.754
85.519	170.433
85.929	207.428
86.339	163.446
86.475	177.407
86.475	170.426
86.885	196.950
87.158	203.231
87.705	174.606
87.705	160.644
87.978	169.717
87.978	155.756
87.978	196.943
88.798	152.958
89.071	162.729
90.027	196.928
91.120	181.563
92.077	171.085
92.896	185.739];
n = size(data.tW,1); for i=2:n; if data.tW(i,1) <= data.tW(i-1,1); data.tW(i,1) = max(data.tW(i-1,1),data.tW(i,1))+1e-4; end; end
units.tW   = {'d', 'g'};  label.tW = {'time since birth', 'wet weight'};  
temp.tW    = C2K(39.4);  units.temp.tW = 'K'; label.temp.tW = 'temperature';
bibkey.tW  = 'ODwy2004';
       
%% set weights for all real data
weights = setweights(data, []);
weights.tW = weights.tW * 2;

%% set pseudodata and respective weights
[data, units, label, weights] = addpseudodata(data, units, label, weights);
weights.psd.k_J = 0; weights.psd.k = 1;

%% pack auxData and txtData for output
auxData.temp = temp;
txtData.units = units;
txtData.label = label;
txtData.bibkey = bibkey;
txtData.comment = comment;

%% Discussion points
D1 = 'Feeding is reduced towards end of nestling period';
D2 = 'Long tp cannot be captured by std model';
D3 = 'Body temperature of Oceanodroma furcata (Youn2013), but that of chick down to 10 C';
D4 = 'mod_1: Pseudo-data point k is used, rather than k_J; Data set tp and parameter t_R are added, the latter replacing clutch interval t_N. Postnatal T is based on PrinPres1991, see <a href="https://debtool.debtheory.org/lib/pet/html/get_T_Aves.html">get_T_Aves</a>. See further the <a href="https://debportal.debtheory.org/docs/Revision.html">revision page, theme puberty</a>';
metaData.discussion = struct('D1',D1, 'D2',D2, 'D3',D3, 'D4',D4);

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

%% Links
metaData.links.id_CoL = '4PWKR'; % Cat of Life
metaData.links.id_ITIS = '174588'; % ITIS
metaData.links.id_EoL = '45512125'; % Ency of Life
metaData.links.id_Wiki = 'Pterodroma_leucoptera'; % Wikipedia
metaData.links.id_ADW = 'Pterodroma_leucoptera'; % ADW
metaData.links.id_Taxo = '51542'; % Taxonomicon
metaData.links.id_WoRMS = '225774'; % WoRMS
metaData.links.id_avibase = 'A27F9AF63B250F19'; % avibase
metaData.links.id_birdlife = 'white-winged-petrel-pterodroma-leucoptera'; % birdlife
metaData.links.id_AnAge = 'Pterodroma_leucoptera'; % AnAge

%% References
bibkey = 'Wiki'; type = 'Misc'; bib = ...
'howpublished = {\url{http://en.wikipedia.org/wiki/Pterodroma_leucoptera}}';
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 = 'ODwy2004'; type = 'PhDthesis'; bib = [ ... 
'author = {T. W. O''Dwyer}, ' ... 
'year = {2004}, ' ...
'title = {Breeding biology of {G}ould''s petrels (\emph{Pterodroma leucoptera}: predicting breeding outcomes from a physiolofical and morphological appraisal of adults)}, ' ...
'school = {University of Wollongong}, ' ...
'howpublished = {\url{https://ro.uow.edu.au/cgi/viewcontent.cgi?referer=https://scholar.google.nl/&httpsredir=1&article=1227&context=theses}}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'arkive'; type = 'Misc'; bib = ...
'howpublished = {\url{https://www.arkive.org/henderson-petrel/Pterodroma-leucoptera/}}';
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'PrinPres1991'; type = 'Article'; bib = [ ... 
'doi = {10.1016/0300-9629(91)90122-S}, ' ...
'author = {R. Prinzinger and A.Pre{\ss}mar and E. Schleucher}, ' ... 
'year = {1991}, ' ...
'title = {Body temperature in birds}, ' ...
'journal = {Comp. Biochem. Physiol.}, ' ...
'volume = {99A(4)}, ' ...
'pages = {499-506}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];

