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

%% set metaData
metaData.phylum     = 'Chordata'; 
metaData.class      = 'Actinopterygii'; 
metaData.order      = 'Beloniformes'; 
metaData.family     = 'Hemiramphidae';
metaData.species    = 'Hyporhamphus_regularis'; 
metaData.species_en = 'Eastern river garfish'; 

metaData.ecoCode.climate = {'BWh', 'BSh'};
metaData.ecoCode.ecozone = {'TA', 'TO'};
metaData.ecoCode.habitat = {'0jFr', '0iMm'};
metaData.ecoCode.embryo  = {'Fp'};
metaData.ecoCode.migrate = {};
metaData.ecoCode.food    = {'biPz', 'biHl'};
metaData.ecoCode.gender  = {'D'};
metaData.ecoCode.reprod  = {'O'};

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

metaData.COMPLETE = 2.5; % using criteria of LikaKear2011

metaData.author   = {'Bas Kooijman'};    
metaData.date_subm = [2019 03 17];              
metaData.email    = {'bas.kooijman@vu.nl'};            
metaData.address  = {'VU University, Amsterdam'};   

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

%% set data
% zero-variate data

data.am = 9*365;     units.am = 'd';    label.am = 'life span';             bibkey.am = 'StewHugh2007';   
  temp.am = C2K(20.7);  units.temp.am = 'K'; label.temp.am = 'temperature'; 

data.Lp  = 20;   units.Lp  = 'cm';  label.Lp  = 'fork length at puberty';  bibkey.Lp  = 'StewHugh2007'; 
  comment.Lp = 'based on tL data at ap = 1 yr';
data.Li  = 35.5;   units.Li  = 'cm';  label.Li  = 'ultimate fork length';    bibkey.Li  = 'fishbase';
  comment.Li = 'based on TL 37 cm and FL = 0.96*TL for photo';

data.Wwb = 4.2e-3;    units.Wwb = 'g';   label.Wwb = 'wet weight at birth';     bibkey.Wwb = 'Wiki';
  comment.Wwb = 'based on egg diameter of 2 mm: pi/6*0.2^3';
data.Wwi = 174;    units.Wwi = 'g';   label.Wwi = 'ultimate wet weight';     bibkey.Wwi = 'fishbase';
  comment.Wwi = 'based on 0.00240*Li^3.10, see F1';

data.Ri = 4e3/365; units.Ri  = '#/d'; label.Ri  = 'maximum reprod rate';    bibkey.Ri  = 'guess';   
temp.Ri = C2K(20.7);  units.temp.Ri = 'K'; label.temp.Ri = 'temperature';
  comment.Ri = 'based on kap = 0.95, reflecting reported low fecundity';
 
% uni-variate data
% time-length
data.tL_f = [... % time since birth (d), fork length (cm)
128.614	10.428
128.614	10.830
128.614	11.384
133.208	13.648
133.208	18.679
137.801	17.673
146.988	9.522
146.988	8.516
183.735	16.264
202.108	14.805
202.108	17.270
206.702	18.679
206.702	20.692
275.602	20.491
312.349	21.195
312.349	21.899
358.283	21.094
362.876	22.000
362.876	21.396
367.470	19.484
367.470	19.887
376.657	22.453
376.657	21.145
381.250	21.547
381.250	16.616
385.843	21.748
395.030	22.503
399.623	22.906
399.623	17.270
404.217	23.912
404.217	16.868
413.404	18.075
417.997	15.358
417.997	15.660
417.997	17.975
422.590	16.264
427.184	17.019
436.370	20.692
440.964	17.673
450.151	17.371
454.744	19.887
459.337	18.377
459.337	16.063
468.524	21.044
473.117	15.308
477.711	23.459
477.711	15.711
477.711	14.956
482.304	17.371
486.898	19.686
491.491	19.836
491.491	18.377
491.491	18.075
496.084	22.050
496.084	17.774
496.084	17.572
496.084	16.667
505.271	20.390
505.271	20.541
505.271	19.887
505.271	18.931
505.271	19.182
505.271	16.063
509.864	17.421
514.458	20.340
514.458	19.484
514.458	18.528
519.051	21.346
519.051	19.836
523.645	21.899
523.645	21.296
523.645	19.182
528.238	21.698
528.238	18.428
542.018	22.302
542.018	20.390
551.205	21.145
551.205	19.333
551.205	18.830
551.205	18.730
555.798	18.478
560.392	21.094
569.578	21.195
569.578	20.893
569.578	19.484
574.172	21.799
574.172	22.151
574.172	18.126
587.952	23.006
610.919	20.088
610.919	20.792
615.512	21.849
629.292	20.893
633.886	21.447
633.886	22.050
638.479	22.000
647.666	21.296
652.259	22.855
652.259	22.906
652.259	19.786
656.852	21.748
666.039	21.849
666.039	23.258
670.633	22.503
670.633	20.088
675.226	20.893
675.226	22.101
679.819	21.396
679.819	22.403
679.819	23.258
679.819	23.509
679.819	19.082
679.819	19.333
679.819	19.836
684.413	19.484
684.413	20.893
689.006	22.352
693.599	20.289
698.193	26.126
698.193	21.597
702.786	21.849
707.380	23.711
716.566	21.899
716.566	22.704
721.160	22.302
721.160	19.333
725.753	19.887
730.346	20.893
734.940	25.371
744.127	19.132
748.720	23.560
748.720	20.491
757.907	22.302
762.500	23.711
771.687	21.044
776.280	23.258
776.280	21.799
785.467	19.082
790.060	23.409
794.654	22.302
794.654	22.101
799.247	23.862
799.247	20.038
803.840	20.893
808.434	21.899
817.620	19.132
822.214	22.654
826.807	24.214
831.401	24.013
831.401	21.094
831.401	19.132
835.994	20.440
835.994	20.390
835.994	16.516
835.994	17.623
845.181	24.314
845.181	22.403
849.774	25.220
849.774	22.704
849.774	21.597
854.367	20.541
868.148	20.541
872.741	23.258
872.741	22.956
872.741	22.906
872.741	22.403
872.741	16.868
877.334	22.704
877.334	21.849
881.928	21.346
886.521	21.547
886.521	20.792
886.521	20.541
900.301	23.711
900.301	24.113
909.488	23.509
923.268	23.107
927.861	22.704
937.048	22.956
941.641	20.792
941.641	20.541
941.641	20.189
955.422	20.893
955.422	18.327
992.169	23.509
992.169	24.918
1005.949	24.314
1010.542	24.516
1010.542	19.937
1015.135	26.528
1015.135	25.975
1015.135	25.522
1019.729	23.560
1019.729	21.547
1019.729	19.484
1024.322	21.648
1028.916	23.711
1028.916	23.409
1028.916	25.321
1028.916	22.906
1028.916	21.698
1033.509	24.063
1033.509	20.893
1038.102	24.113
1042.696	23.157
1042.696	24.717
1042.696	22.553
1042.696	21.044
1047.289	21.597
1056.476	25.321
1056.476	19.987
1061.069	21.748
1065.663	23.711
1065.663	23.811
1065.663	21.748
1065.663	21.497
1065.663	21.145
1065.663	20.792
1070.256	22.201
1074.849	20.491
1074.849	19.987
1079.443	24.314
1079.443	23.107
1079.443	23.308
1084.036	22.503
1084.036	21.698
1084.036	21.296
1088.629	25.824
1093.223	25.572
1093.223	21.748
1093.223	20.138
1097.816	20.893
1102.410	24.314
1102.410	23.711
1102.410	24.969
1107.003	24.214
1111.596	23.208
1111.596	24.365
1111.596	24.667
1111.596	20.642
1116.190	25.925
1116.190	22.000
1120.783	23.157
1120.783	24.013
1125.376	23.509
1129.970	22.805
1139.157	22.050
1139.157	23.711
1139.157	24.818
1139.157	21.597
1143.750	19.082
1143.750	23.811
1148.343	22.302
1152.937	21.849
1162.123	25.119
1162.123	23.308
1166.717	22.704
1166.717	23.962
1171.310	25.874
1171.310	21.094
1171.310	22.252
1180.497	21.849
1185.090	24.214
1189.684	22.403
1194.277	21.497
1194.277	22.805
1217.244	23.308
1226.431	23.811
1226.431	22.855
1235.617	23.761
1235.617	24.314
1240.211	25.119
1244.804	23.157
1249.398	22.906
1258.584	22.704
1267.771	24.767
1304.518	24.767
1309.111	23.057
1309.111	22.855
1309.111	22.604
1318.298	23.157
1318.298	21.899
1322.892	19.836
1391.792	24.415
1391.792	24.767
1396.386	20.591
1400.979	22.604
1400.979	20.088
1405.572	22.855
1414.759	26.327
1414.759	25.673
1414.759	25.170
1414.759	23.912
1414.759	23.912
1423.946	23.057
1428.539	23.459
1428.539	22.252
1428.539	23.459
1433.133	26.126
1433.133	22.403
1437.726	25.220
1437.726	24.717
1446.913	25.824
1446.913	26.478
1446.913	24.113
1446.913	22.252
1451.506	25.975
1451.506	24.616
1451.506	23.157
1456.099	25.119
1456.099	24.516
1456.099	23.358
1460.693	24.214
1465.286	23.157
1469.880	24.818
1469.880	23.459
1469.880	22.352
1474.473	23.509
1474.473	22.654
1479.066	25.723
1479.066	25.270
1488.253	24.214
1488.253	24.314
1488.253	22.654
1502.033	23.459
1506.627	24.013
1515.813	23.057
1520.407	22.855
1529.593	22.755
1534.187	23.912
1534.187	23.308
1543.374	26.830
1547.967	24.818
1570.934	24.616
1584.714	22.302
1589.307	18.025
1616.867	23.208
1626.054	25.270
1644.428	23.761
1653.614	25.069
1671.988	23.711
1681.175	24.264
1750.075	23.660
1754.669	26.428
1768.449	23.057
1782.229	26.126
1782.229	24.113
1796.009	22.302
1800.602	22.704
1809.789	25.522
1814.383	24.063
1814.383	23.107
1818.976	25.925
1818.976	22.352
1823.569	25.220
1823.569	23.660
1823.569	21.094
1823.569	20.591
1828.163	27.434
1828.163	24.667
1828.163	24.314
1832.756	26.931
1837.349	25.321
1841.943	26.226
1841.943	25.925
1841.943	21.648
1846.536	26.528
1851.130	25.673
1851.130	21.950
1855.723	27.736
1874.096	26.730
1874.096	26.881
1874.096	26.428
1874.096	26.075
1874.096	22.252
1878.690	24.516
1887.877	25.522
1897.063	23.660
1897.063	24.063
1897.063	26.226
1906.250	25.522
1910.843	23.107
1910.843	24.717
1910.843	27.132
1961.370	21.296
2002.711	25.522
2002.711	23.409
2002.711	23.660
2011.898	24.264
2011.898	23.107
2025.678	24.516
2030.271	26.176
2039.458	24.013
2044.051	23.560
2057.831	23.509
2067.018	24.717
2131.325	26.931
2163.479	27.736
2177.259	25.270
2177.259	23.358
2181.852	26.528
2186.446	23.157
2195.632	24.415
2195.632	26.931
2204.819	28.742
2204.819	27.987
2204.819	25.925
2204.819	23.459
2218.600	25.522
2223.193	27.082
2250.753	24.214
2356.401	25.421
2402.334	24.063
2420.708	25.673
2425.301	24.063
2553.916	26.730
2567.696	21.899
2572.289	22.906
2572.289	27.535
2576.883	28.239
2586.069	23.560
2590.663	25.270
2609.036	27.535
2714.684	24.113
2751.431	24.566
2797.365	24.314];
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', 'fork length', 'female'};  
temp.tL_f    = C2K(20.7);  units.temp.tL_f = 'K'; label.temp.tL_f = 'temperature';
bibkey.tL_f = 'StewHugh2007';
comment.tL_f = 'data for females Hyporhamphus regularis ardelio';
%
data.tL_m = [... % time since birth (d), fork length (cm)
137.801	9.069
146.988	11.031
179.142	18.025
183.735	14.654
188.328	16.214
197.515	14.654
312.349	18.277
358.283	18.528
376.657	20.239
381.250	20.340
381.250	15.610
422.590	15.459
427.184	19.887
440.964	19.333
463.931	18.277
473.117	17.220
477.711	16.667
477.711	15.610
491.491	16.465
528.238	17.824
546.611	19.333
564.985	19.031
569.578	19.484
583.358	18.377
587.952	19.887
610.919	19.887
624.699	19.132
656.852	20.591
656.852	17.874
675.226	18.277
679.819	18.931
684.413	20.189
711.973	18.428
721.160	17.874
730.346	18.981
730.346	18.277
734.940	18.377
744.127	19.484
762.500	18.277
780.873	18.881
780.873	17.170
822.214	20.843
831.401	17.824
858.961	15.057
863.554	19.585
868.148	20.792
872.741	19.887
877.334	21.044
877.334	20.138
881.928	19.082
895.708	20.642
900.301	21.698
927.861	21.698
973.795	21.497
978.388	21.547
996.762	22.000
1010.542	20.692
1028.916	18.277
1028.916	18.679
1028.916	21.547
1028.916	22.252
1033.509	19.434
1038.102	20.038
1047.289	21.698
1056.476	20.491
1056.476	20.692
1061.069	19.836
1061.069	21.296
1070.256	18.981
1084.036	22.050
1093.223	20.843
1093.223	21.044
1097.816	21.748
1102.410	18.629
1139.157	22.101
1162.123	21.899
1171.310	22.252
1194.277	19.182
1194.277	18.428
1208.057	20.541
1240.211	20.692
1244.804	22.201
1263.178	20.390
1276.958	20.994
1281.551	21.799
1304.518	21.899
1304.518	22.302
1309.111	20.541
1396.386	21.296
1419.352	20.088
1419.352	20.994
1419.352	21.799
1423.946	20.642
1437.726	19.887
1442.319	20.893
1456.099	20.088
1603.087	20.440
1616.867	17.069
1616.867	22.906
1621.461	24.717
1626.054	22.503
1630.648	21.899
1671.988	21.698
1681.175	22.453
1786.822	20.440
1791.416	21.497
1791.416	21.296
1818.976	21.799
1818.976	20.239
1823.569	22.101
1828.163	20.943
1832.756	21.296
1837.349	21.497
1841.943	21.950
1901.657	24.717
2007.304	21.648
2039.458	21.547
2048.645	22.050
2048.645	23.308
2057.831	21.195
2140.512	22.805
2163.479	21.396
2200.226	21.497
2200.226	21.296
2214.006	21.698
2535.542	23.208
2563.102	21.497
2567.696	22.553
2632.003	21.748
2948.946	22.352];
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', 'fork length', 'male'};  
temp.tL_m    = C2K(20.7);  units.temp.tL_m = 'K'; label.temp.tL_m = 'temperature';
bibkey.tL_m = 'StewHugh2007';
comment.tL_m = 'data for males Hyporhamphus regularis ardelio';

%% set weights for all real data
weights = setweights(data, []);
weights.tL_f = 5 * weights.tL_f;
weights.tL_m = 5 * weights.tL_m;
weights.Ri = 0 * weights.Ri;

%% 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 = 'mod_1: males have equal state variables at b, compared to females';
metaData.discussion = struct('D1',D1, 'D2',D2);  

%% Facts
F1 = 'wet weight (g) = 0.00240*(TL in cm)^3.10';
metaData.bibkey.F1 = 'fishbase'; 
metaData.facts = struct('F1',F1);

%% Links
metaData.links.id_CoL = '3NYF4'; % Cat of Life
metaData.links.id_ITIS = '165489'; % ITIS
metaData.links.id_EoL = '46567030'; % Ency of Life
metaData.links.id_Wiki = 'Hyporhamphus_regularis'; % Wikipedia
metaData.links.id_ADW = 'Hyporhamphus_regularis'; % ADW
metaData.links.id_Taxo = '192875'; % Taxonomicon
metaData.links.id_WoRMS = '293615'; % WoRMS
metaData.links.id_fishbase = 'Hyporhamphus-regularis'; % fishbase


%% References
bibkey = 'Wiki'; type = 'Misc'; bib = [...
'howpublished = {\url{http://en.wikipedia.org/wiki/Hyporhamphus}}'];
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 = 'StewHugh2007'; type = 'Article'; bib = [ ... 
'doi = {10.1111/j.1095-8649.2006.01256.x}, ' ...
'author = {J. Stewart and J. M. Hughes}, ' ... 
'year = {2007}, ' ...
'title = {Age validation and growth of three commercially important hemiramphids in south-eastern {A}ustralia}, ' ...
'journal = {Journal of Fish Biology}, ' ...
'volume = {70}, ' ...
'pages = {65-82}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'fishbase'; type = 'Misc'; bib = [...
'howpublished = {\url{http://www.fishbase.org/summary/Hyporhamphus-australis.html}}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];

