function [data, auxData, metaData, txtData, weights] = mydata_Sceloporus_grammicus
%% set metaData
metaData.phylum     = 'Chordata';
metaData.class      = 'Reptilia';
metaData.order      = 'Squamata';
metaData.family     = 'Phrynosomatidae';
metaData.species    = 'Sceloporus_grammicus';
metaData.species_en = 'Graphic spiny lizard';

metaData.ecoCode.climate = {'Am'};
metaData.ecoCode.ecozone = {'TN'};
metaData.ecoCode.habitat = {'0iTf','0iTg'};
metaData.ecoCode.embryo  = {'Tv'};
metaData.ecoCode.migrate = {};
metaData.ecoCode.food    = {'biCi'};
metaData.ecoCode.gender  = {'Dg'};
metaData.ecoCode.reprod  = {'O'};

metaData.T_typical  = C2K(14); % K, body temp
metaData.data_0     = {'ab'; 'am'; 'Lb'; 'Lp'; 'Li'; 'Wwi'; 'Ri'};  
metaData.data_1     = {'L-dL_f'}; 

metaData.COMPLETE = 2.6; % using criteria of LikaKear2011

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

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

%% set data
% zero-variate data;
data.ab = 50;  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 = 5*365;     units.am = 'd'; label.am = 'life span';               bibkey.am = 'guess';
  temp.am = C2K(14);  units.temp.am = 'K'; label.temp.am = 'temperature';

data.Lb  = 2.00;  units.Lb  = 'cm';  label.Lb  = 'SVL ate birth';   bibkey.Lb  = 'LemoBall1995';
data.Lp  = 4.0; units.Lp  = 'cm';  label.Lp  = 'SVL at puberty';   bibkey.Lp  = 'LemoBall1995';
data.Li  = 4.97; units.Li  = 'cm';  label.Li  = 'ultimate SVL for females';   bibkey.Li  = 'LemoBall1995';
data.Lim  = 5.32; units.Lim  = 'cm';  label.Lim  = 'ultimate SVL for males';   bibkey.Lim  = 'LemoBall1995';

data.Wwi = 14.33; units.Wwi = 'g';   label.Wwi = 'ultimate wet weight for females';  bibkey.Wwi = 'EoL';

data.Ri  = 5.2/365;   units.Ri  = '#/d'; label.Ri  = 'maximum reprod rate'; bibkey.Ri  = 'EoL';   
  temp.Ri = C2K(22.7);   units.temp.Ri = 'K'; label.temp.Ri = 'temperature';
  comment.Ri = '5.2 eggs per clutch, 1 clutch per yr';

% uni-variate data
% length-change in length
data.LdL_Pf = [... % SVL (cm), change in SVL (cm/d)
2.32738	0.01382
2.60203	0.00747
2.60299	0.00788
2.65693	0.01542
2.75539	0.00726
2.80933	0.00711
2.98804	0.00229
2.99553	0.00547
3.01399	0.00178
3.02617	0.00696
3.03112	0.00522
3.05851	0.00147
3.06768	0.00537
3.07529	0.00091
3.07746	0.00183
3.08144	0.00353
3.11680	0.00317
3.11897	0.00409
3.12935	0.00850
3.13200	0.00194
3.13538	0.00337
3.13743	0.00424
3.14889	0.00527
3.16868	0.00214
3.16929	0.00240
3.18135	0.00368
3.18920	0.00317
3.20078	0.00425
3.20537	0.00235
3.21502	0.00645
3.24796	0.00122
3.25086	0.00245
3.25557	0.00830
3.27463	0.00486
3.29309	0.00117
3.29418	0.00548
3.30432	0.00209
3.30697	0.00322
3.31192	0.00148
3.31662	0.00348
3.31880	0.00440
3.32073	0.00522
3.32676	0.00779
3.35041	0.00245
3.35307	0.00358
3.36646	0.00158
3.37237	0.00409
3.39397	0.00174
3.39470	0.00204
3.39578	0.00251
3.40133	0.00486
3.40169	0.00117
3.42462	0.00322
3.42981	0.00543
3.43898	0.00163
3.44188	0.00287
3.45624	0.00128
3.45829	0.00215
3.46505	0.00502
3.46806	0.00246
3.47289	0.00835
3.50366	0.00605
3.53829	0.00153
3.54650	0.00502
3.54674	0.00897
3.56580	0.00169
3.57594	0.00215
3.60080	0.00502
3.60671	0.00369
3.62903	0.00548
3.64834	0.00215
3.66523	0.00164
3.66560	0.00179
3.67030	0.00379
3.68333	0.00548
3.68539	0.00636
3.69419	0.00241
3.71145	0.00590
3.71447	0.00718
3.74186	0.00343
3.74922	0.00272
3.77854	0.00749
3.78808	0.00385
3.78928	0.00436
3.79640	0.00354
3.81426	0.00728
3.81836	0.00133
3.82753	0.00523
3.83308	0.00374
3.85372	0.00482
3.86192	0.00446
3.90923	0.00918
3.92721	0.00144
3.92805	0.00180
3.92829	0.00574
3.95375	0.00503
3.95737	0.00272
3.96304	0.00128
3.96847	0.00359
4.01035	0.00600
4.03339	0.00426
4.03762	0.00221
4.04365	0.00093
4.07165	0.00129
4.07539	0.00288
4.09711	0.00057
4.10845	0.00154
4.12414	0.00436
4.13138	0.00359
4.13753	0.00236
4.14356	0.00108
4.14562	0.00195
4.17096	0.00503
4.18978	0.00919
4.19026	0.00170
4.19292	0.00283
4.19714	0.00078
4.19835	0.00129
4.19980	0.00190
4.20559	0.00052
4.20752	0.00134
4.21524	0.00462
4.22393	0.00062
4.23575	0.00565
4.23998	0.00360
4.24299	0.00872
4.25241	0.00503
4.25844	0.00760
4.26978	0.00088
4.27956	0.00119
4.29042	0.00196
4.31431	0.00057
4.33639	0.00611
4.34267	0.00109
4.35389	0.00585
4.36282	0.00196
4.37090	0.00155
4.37139	0.00175
4.38454	0.00350
4.38707	0.00073
4.39504	0.00027
4.39697	0.00109
4.40614	0.00114
4.43498	0.00186
4.45030	0.00068
4.46997	0.00134
4.48047	0.00196
4.48759	0.00114
4.49073	0.00632
4.49471	0.00032
4.50509	0.00088
4.51607	0.00170
4.52077	0.00370
4.53151	0.00058
4.57785	0.00104
4.58811	0.00155
4.60367	0.00047
4.61477	0.00135
4.63118	0.00063
4.65930	0.00104
4.67837	0.00145
4.69055	0.00278
4.69502	0.00083
4.71239	0.00053
4.72989	0.00027
4.75403	0.00284
4.75789	0.00063
4.78661	0.00130
4.81279	0.00089
4.86588	0.00038
4.87807	0.00171
4.90184	0.00027
4.92127	0.00084
4.94770	0.00053
5.01226	0.00105
5.02915	0.00053
5.04665	0.00028
5.22444	0.00045];
units.LdL_Pf  = {'cm', 'cm/d'};  label.LdL_Pf = {'SVL', 'change in SVL', 'females'};  
temp.LdL_Pf = C2K(14); units.temp.LdL_Pf = 'K'; label.temp.LdL_Pf = 'temperature';
bibkey.LdL_Pf = 'LemoBall1995'; comment.LdL_Pf = 'Females at Paredon at 4400 m alt.';
%
data.LdL_Pm = [... % SVL (cm), change in SVL (cm/d)
2.39451	0.01078
2.64615	0.00532
2.70236	0.01416
2.73977	0.00532
2.74083	0.00632
2.76480	0.00685
2.78166	0.01170
2.79032	0.00884
2.88591	0.01070
2.90338	0.00511
2.91108	0.01236
2.94813	0.00319
2.97161	0.00325
2.97415	0.00564
2.98784	0.00750
3.00608	0.00265
3.05260	0.00239
3.06763	0.00551
3.15679	0.00132
3.15721	0.00172
3.17563	0.00803
3.17634	0.00870
3.18613	0.00690
3.20656	0.00411
3.20819	0.00564
3.20861	0.00604
3.21692	0.00285
3.21897	0.00477
3.21925	0.00504
3.23251	0.00650
3.31160	0.00384
3.32054	0.00125
3.33853	0.00716
3.35165	0.00849
3.35607	0.00164
3.35628	0.00184
3.36102	0.00630
3.38506	0.00689
3.39082	0.00131
3.39209	0.00251
3.40747	0.00596
3.43116	0.00623
3.44442	0.00769
3.45117	0.00304
3.46273	0.00290
3.48627	0.00304
3.48839	0.00503
3.52124	0.00290
3.52180	0.00343
3.53216	0.00217
3.54323	0.00157
3.54542	0.00363
3.56974	0.00450
3.62599	0.00237
3.62924	0.00543
3.62995	0.00609
3.63115	0.00722
3.64023	0.00476
3.65024	0.00316
3.67223	0.00183
3.67767	0.00695
3.70065	0.00655
3.70889	0.00330
3.71996	0.00270
3.72483	0.00728
3.73512	0.00595
3.74548	0.00469
3.75556	0.00316
3.76542	0.00143
3.77974	0.00389
3.79066	0.00316
3.79264	0.00502
3.85974	0.00209
3.86101	0.00329
3.86547	0.00748
3.90923	0.00462
3.91065	0.00595
3.92974	0.00189
3.94102	0.00149
3.95427	0.00296
3.96527	0.00229
4.00136	0.00322
4.00292	0.00468
4.01108	0.00136
4.01158	0.00182
4.02427	0.00275
4.06192	0.00515
4.10647	0.00302
4.11725	0.00215
4.15151	0.00135
4.16512	0.00315
4.16540	0.00341
4.16582	0.00381
4.18042	0.00654
4.23363	0.00155
4.27609	0.00846
4.28475	0.00560
4.30554	0.00314
4.34524	0.00746
4.36709	0.00600
4.41184	0.00407
4.41389	0.00600
4.42659	0.00693
4.44737	0.00447
4.45794	0.00341
4.48290	0.00487
4.51334	0.00048
4.51659	0.00354
4.53759	0.00128
4.53964	0.00320
4.59525	0.00048
4.60653	0.00008
4.64892	0.00692
4.68908	0.00067
4.70029	0.00021
4.71425	0.00233
4.71538	0.00340
4.74709	0.00021
4.79376	0.00007
4.79447	0.00074
4.84042	-0.00006
4.88808	0.00073
4.89950	0.00047
4.93439	0.00027
4.94673	0.00087
5.06297	0.00013
5.06332	0.00046
5.16892	0.00073
5.19176	0.00019
5.25599	0.00057
5.29686	-0.00001
5.35537	-0.00001
5.46810	-0.00004
8.59906	-0.00895];
units.LdL_Pm  = {'cm', 'cm/d'};  label.LdL_Pm = {'SVL', 'change in SVL', 'males'};  
temp.LdL_Pm = C2K(14); units.temp.LdL_Pm = 'K'; label.temp.LdL_Pm = 'temperature';
bibkey.LdL_Pm = 'LemoBall1995'; comment.LdL_Pm = 'Males at Paredon at 4400 m alt.';
%
data.LdL_Lf = [... % SVL (cm), change in SVL (cm/d)
2.22908	0.00733
2.35228	0.00584
2.48584	0.00481
2.49647	0.01204
2.54486	0.00645
2.54584	0.01014
2.57185	0.00634
2.57437	0.00727
2.59758	0.00911
2.65660	0.00742
2.68974	0.00624
2.72149	0.00788
2.73925	0.00439
2.74233	0.00552
2.76288	0.00639
2.77659	0.00808
2.79267	0.00731
2.80218	0.00413
2.82400	0.00547
2.93336	0.00557
2.94721	0.00398
3.02273	0.00500
3.02594	0.00285
3.09111	0.00341
3.10202	0.00407
3.11489	0.00213
3.13363	0.00233
3.14482	0.00310
3.14607	0.00356
3.15111	0.00207
3.20593	0.00217
3.20677	0.00248
3.21880	0.00356
3.23012	0.00438
3.25474	0.00340
3.26047	0.00217
3.27278	0.00669
3.31501	0.00217
3.32592	0.00284
3.33152	0.00489
3.39655	0.00207
3.40899	0.00663
3.41766	0.00314
3.41976	0.00391
3.43305	0.00212
3.44200	0.00540
3.50857	0.00314
3.50996	0.00365
3.51304	0.00145
3.52031	0.00411
3.53122	0.00478
3.65275	0.00268
3.68687	0.00185
3.75792	0.00457
3.76407	0.00683
3.78002	0.00267
3.80379	0.00139
3.81931	0.00375
3.84994	0.00498
3.86588	0.00416
3.86882	0.00523
3.87246	0.00323
3.88742	0.00205
3.91217	0.00446
3.91329	0.00487
3.93036	0.00113
3.97021	0.00241
3.98518	0.00123
4.03706	0.00359
4.03930	0.00441
4.04727	0.00400
4.05524	0.00359
4.06419	0.00354
4.06867	0.00184
4.08531	0.00128
4.09384	0.00107
4.12475	0.00241
4.12559	0.00271
4.12754	0.00343
4.13048	0.00451
4.13104	0.00138
4.13565	0.00307
4.15146	0.00220
4.15789	0.00123
4.19635	0.00199
4.19831	0.00271
4.21201	0.00107
4.21285	0.00138
4.23635	0.00333
4.25760	0.00112
4.25872	0.00153
4.26292	0.00307
4.26879	0.00189
4.31117	0.00409
4.34431	0.00291
4.35788	0.00122
4.35886	0.00158
4.39480	0.00143
4.39927	0.00307
4.40221	0.00081
4.40948	0.00348
4.41955	0.00050
4.42584	0.00281
4.43661	0.00009
4.44962	0.00153
4.45563	0.00040
4.45661	0.00076
4.46025	0.00209
4.46346	0.00327
4.46682	0.00117
4.47325	0.00353
4.48654	0.00173
4.48808	0.00229
4.52010	0.00070
4.52192	0.00137
4.55744	0.00106
4.58164	0.00327
4.58234	0.00019
4.58304	0.00045
4.58541	0.00132
4.61996	0.00065
4.62751	0.00009
4.63003	0.00101
4.63045	0.00116
4.64051	0.00152
4.66681	0.00116
4.69869	0.00285
4.70401	0.00147
4.73799	0.00060
4.77673	0.00147
4.78246	0.00024
4.80106	0.00039
4.81085	0.00065
4.84693	0.00054
4.88218	0.00013
4.91057	0.00054
4.95560	0.00039
5.00930	0.00008
5.01028	0.00044
5.02035	0.00079
5.02790	0.00023
5.06496	0.00049
5.10118	0.00043
5.10118	0.00043
5.13614	-0.00008
5.17293	0.00007];
units.LdL_Lf  = {'cm', 'cm/d'};  label.LdL_Lf = {'SVL', 'change in SVL', 'females'};  
temp.LdL_Lf = C2K(18); units.temp.LdL_Lf = 'K'; label.temp.LdL_Lf = 'temperature';
bibkey.LdL_Lf = 'LemoBall1995'; comment.LdL_Lf = 'Females at Laguna at 3700 m alt.';
%
data.LdL_Lm = [... % SVL (cm), change in SVL (cm/d)
2.30449	0.01204
2.44635	0.01035
2.45378	0.00918
2.57693	0.00698
2.59792	0.00918
2.61382	0.01428
2.65946	0.00805
2.73167	0.00815
2.97937	0.00478
2.99051	0.00636
2.99876	0.00580
3.06238	0.00621
3.08485	0.00284
3.09409	0.00968
3.11423	0.00458
3.15596	0.00213
3.15672	0.00269
3.16010	0.00519
3.16148	0.00621
3.23649	0.00172
3.24373	0.00708
3.30417	0.00514
3.36999	0.00718
3.37486	0.00412
3.44314	0.00131
3.44417	0.00207
3.44666	0.00391
3.46035	0.00738
3.46847	0.00672
3.51776	0.00319
3.52176	0.00615
3.62169	0.00677
3.64809	0.00631
3.65131	0.00202
3.74121	0.00855
3.74533	0.00493
3.77339	0.00569
3.79883	0.00452
3.83686	0.00600
3.85996	0.00309
3.94839	0.00186
4.14914	0.00375
4.21317	0.00446
4.34396	0.00125
4.34492	0.00196
4.34975	0.00553
4.39960	0.00242
4.41527	0.00068
4.44478	0.00252
4.45075	0.00027
4.48054	0.00232
4.51478	0.00099
4.52841	0.00441
4.53797	0.00481
4.59538	0.00063
4.60411	0.00043
4.63210	0.00114
4.66669	0.00007
4.70576	0.00231
4.71256	0.00068
4.74014	0.00109
4.77714	0.00180
4.79419	0.00109
4.79599	0.00241
4.81166	0.00068
4.84082	0.00226
4.87486	0.00078
4.91048	0.00047
4.99253	0.00119
5.02704	0.00006
5.03764	0.00124
5.03791	0.00144
5.05428	0.00022
5.09017	0.00011
5.11775	0.00052
5.14547	0.00103
5.18920	0.00006
5.20007	0.00144
5.24353	0.00026
5.24464	0.00108
5.31540	0.00011
5.38795	0.00047
5.42371	0.00026
5.45968	0.00021
5.49571	0.00021
5.58580	0.00021];
units.LdL_Lm  = {'cm', 'cm/d'};  label.LdL_Lm = {'SVL', 'change in SVL', 'males'};  
temp.LdL_Lm = C2K(18); units.temp.LdL_Lm = 'K'; label.temp.LdL_Lm = 'temperature';
bibkey.LdL_Lm = 'LemoBall1995'; comment.LdL_Lm = 'Males at Laguna at 3700 m alt.';

%% set weights for all real data
weights = setweights(data, []);
% weights.LdL_Pf = 3 * weights.LdL_Pf;
% weights.LdL_Pm = 3 * weights.LdL_Pm;
weights.Lb = 5 * weights.Lb;
weights.Lp = 5 * weights.Lp;
weights.Li = 5 * weights.Li;
weights.ab = 0 * weights.ab;

%% 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 = {'LdL_Pf','LdL_Pm'}; subtitle1 = {'Data for females, males at Paredon'};
set2 = {'LdL_Lf','LdL_Lm'}; subtitle2 = {'Data for females, males at Laguna'};
metaData.grp.sets = {set1,set2};
metaData.grp.subtitle = {subtitle1,subtitle2};

%% Discussion points
D1 = 'males are assumed to differ from females by {p_Am} only';
D2 = 'Temperatures are guessed; in tL data it (in C) is supposed to vary as 25*sin(2*pi*(t+t_0)/36';
metaData.discussion = struct('D1',D1, 'D2',D2);

%% Links
metaData.links.id_CoL = '4V59J'; % Cat of Life
metaData.links.id_ITIS = '173871'; % ITIS
metaData.links.id_EoL = '47044898'; % Ency of Life
metaData.links.id_Wiki = 'Sceloporus_grammicus'; % Wikipedia
metaData.links.id_ADW = 'Sceloporus_grammicus'; % ADW
metaData.links.id_Taxo = '573927'; % Taxonomicon
metaData.links.id_WoRMS = ''; % WoRMS
metaData.links.id_ReptileDB = 'genus=Sceloporus&species=grammicus'; % ReptileDB
metaData.links.id_AnAge = ''; % AnAge

%% References
bibkey = 'Wiki'; type = 'Misc'; bib = ...
'howpublished = {\url{http://en.wikipedia.org/wiki/Sceloporus_grammicus}}';   
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 = 'LemoBall1995'; type = 'article'; bib = [ ...  
'author = {Julio A. Lemos-Espinal and Royce E. Ballinger}, ' ...
'title = {ECOLOGY OF GROWTH OF THE HIGH ALTITUDE LIZARD \emph{Sceloporus grammicus} ON THE EASTERN SLOPE OF {I}ZTACCIHUATL {V}OLCANO, {P}UEBLA, {M}EXICO}, ' ...
'journal = {Transactions of the Nebraska Academy of Sciences}, ' ...
'pages = {77-85}, ' ...
'volume = {22}, ' ...
'year = {1995}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'EoL'; type = 'Misc'; bib = ...
'howpublished = {\url{https://eol.org/pages/47044898}}';   
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];

