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

%% set metadata
metaData.phylum     = 'Chordata'; 
metaData.class      = 'Actinopterygii'; 
metaData.order      = 'Scombriformes'; 
metaData.family     = 'Arripidae';
metaData.species    = 'Arripis_trutta'; 
metaData.species_en = 'Australian salmon'; 

metaData.ecoCode.climate = {'MC'};
metaData.ecoCode.ecozone = {'MPSW'};
metaData.ecoCode.habitat = {'biMp'};
metaData.ecoCode.embryo  = {'Mp'};
metaData.ecoCode.migrate = {};
metaData.ecoCode.food    = {'biCi'};
metaData.ecoCode.gender  = {'D'};
metaData.ecoCode.reprod  = {'O'};

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

metaData.COMPLETE = 2.5; % using criteria of LikaKear2011

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

%% set data
% zero-variate data
data.ab = 7; units.ab = 'd';    label.ab = 'age at birth';           bibkey.ab = 'guess';   
  temp.ab = C2K(17.4);  units.temp.ab = 'K'; label.temp.ab = 'temperature';
data.am = 26*365; units.am = 'd';    label.am = 'life span';              bibkey.am = 'fishbase';   
  temp.am = C2K(17.4);  units.temp.am = 'K'; label.temp.am = 'temperature';

data.Lp = 31.5;     units.Lp = 'cm';   label.Lp = 'std length at puberty'; bibkey.Lp = 'StewHugh2011';
data.Li = 89;  units.Li = 'cm';   label.Li = 'ultimate std length';  bibkey.Li = 'fishbase';

data.Wwb = 2.68e-4;  units.Wwb = 'g';    label.Wwb = 'wet weight at birth';    bibkey.Wwb = 'StewHugh2011';
  comment.Wwb = 'based on egg diameter of 0.8 mm: pi/6*0.08^3';
data.Wwp = 309;   units.Wwp = 'g';    label.Wwp = 'wet weight at puberty';    bibkey.Wwp = 'fishbase';
  comment.Wwp = 'based on 0.00955*Lp^3.01, see F1';
data.Wwi = 9.4e3;   units.Wwi = 'g';    label.Wwi = 'ultimate wet weight';    bibkey.Wwi = 'fishbase';
  comment.Wwi = 'max published weight, based on 0.00955*Li^3.01, see F1, gives 7 kg';
 
% uni-variate data

% time-length
data.tL_f = [ ... % time since hatch (yr), total length (cm)
0.115	5.385
0.143	4.583
0.143	6.645
0.200	6.989
0.228	5.155
0.271	4.583
0.271	4.583
0.271	6.416
0.286	8.134
0.299	5.385
0.328	6.530
0.328	6.989
0.328	8.936
0.342	5.728
0.356	5.843
0.370	6.072
0.371	6.989
0.442	6.645
0.457	12.259
0.485	11.686
0.499	8.592
0.499	9.853
0.500	14.206
0.513	7.561
0.557	13.175
0.599	12.259
0.628	13.290
0.642	14.321
0.684	12.488
0.712	11.800
0.727	12.488
0.770	13.175
0.812	13.633
0.827	14.206
0.869	12.488
0.869	12.602
0.870	17.872
0.883	14.435
0.911	11.113
1.070	22.111
1.084	21.882
1.140	17.643
1.182	18.445
1.226	23.830
1.240	22.913
1.254	21.080
1.268	21.882
1.282	20.507
1.283	24.288
1.284	27.610
1.298	29.214
1.311	23.028
1.313	30.475
1.325	20.966
1.339	18.216
1.382	23.715
1.383	24.632
1.383	24.975
1.395	18.445
1.396	19.247
1.396	19.705
1.396	21.997
1.396	22.111
1.396	22.799
1.397	27.267
1.410	20.164
1.411	24.517
1.412	28.527
1.438	19.247
1.440	25.548
1.454	26.121
1.469	29.214
1.767	29.100
1.795	30.131
1.838	30.818
1.852	29.787
1.921	20.049
1.966	31.391
1.978	21.538
1.994	29.902
2.009	31.849
2.022	26.923
2.022	28.527
2.023	30.246
2.023	33.453
2.024	35.286
2.036	24.173
2.037	32.537
2.065	30.475
2.080	34.370
2.108	31.162
2.122	31.735
2.180	36.318
2.208	33.224
2.235	26.236
2.238	40.442
2.307	30.818
2.307	31.620
2.321	28.527
2.322	34.714
2.336	32.995
2.363	29.329
2.364	32.193
2.365	35.859
2.376	21.309
2.376	21.768
2.377	24.288
2.377	24.861
2.378	29.673
2.378	30.016
2.379	35.286
2.391	25.434
2.392	31.506
2.392	31.964
2.393	33.912
2.393	34.255
2.393	37.921
2.405	22.684
2.406	27.610
2.421	32.308
2.433	23.142
2.449	33.453
2.521	35.630
2.535	37.578
2.549	35.859
2.634	32.537
2.804	30.246
2.804	33.110
2.804	33.339
2.805	36.776
2.818	31.277
2.819	34.255
2.819	34.255
2.819	34.599
2.834	37.807
2.834	39.296
2.847	31.849
2.847	32.308
2.847	32.651
2.847	35.516
2.860	28.183
2.860	29.329
2.875	30.016
2.876	36.203
2.876	38.380
2.889	29.444
2.890	33.110
2.903	31.047
2.905	37.692
2.917	28.069
2.946	33.110
2.948	39.182
2.959	26.350
2.960	31.277
2.961	35.630
2.973	25.663
2.973	25.777
2.974	27.840
3.003	32.422
3.003	34.370
3.005	39.869
3.005	42.619
3.018	38.380
3.033	42.275
3.076	40.671
3.090	39.067
3.091	44.566
3.103	36.432
3.104	39.984
3.104	40.213
3.105	45.597
3.119	42.619
3.133	41.015
3.134	45.597
3.162	43.879
3.189	40.556
3.190	42.848
3.204	44.452
3.216	33.224
3.230	31.620
3.230	32.193
3.230	32.881
3.231	37.578
3.247	45.025
3.259	34.141
3.259	35.172
3.260	40.213
3.288	35.859
3.288	39.525
3.289	42.619
3.302	38.265
3.303	41.588
3.304	45.139
3.317	38.953
3.332	45.827
3.343	29.787
3.345	35.630
3.346	41.358
3.373	34.828
3.386	30.360
3.401	34.599
3.414	30.589
3.415	30.818
3.417	43.650
3.429	31.506
3.501	36.318
3.501	38.723
3.502	40.786
3.502	42.046
3.516	38.609
3.516	41.244
3.517	45.025
3.530	39.869
3.545	43.535
3.572	37.578
3.573	42.733
3.574	44.566
3.616	43.993
3.629	39.640
3.630	40.786
3.644	41.817
3.686	40.098
3.687	42.619
3.700	38.953
3.701	43.306
3.730	43.764
3.744	44.566
3.757	40.327
3.786	40.671
3.798	32.995
3.801	43.764
3.813	33.568
3.813	34.828
3.813	36.661
3.814	38.494
3.828	37.921
3.828	38.953
3.829	41.358
3.843	44.108
3.855	32.537
3.856	35.859
3.857	40.098
3.869	29.329
3.870	34.026
3.870	35.057
3.871	38.838
3.872	44.566
3.872	45.025
3.884	36.318
3.885	41.015
3.899	39.525
3.901	49.836
3.913	36.890
3.913	39.984
3.914	43.879
3.927	37.692
3.928	43.306
3.941	34.484
3.941	38.265
3.955	35.974
3.956	39.067
3.957	43.191
3.971	44.108
3.972	49.034
3.982	30.246
3.983	32.422
4.013	40.213
4.014	44.681
4.014	47.316
4.015	49.607
4.026	34.943
4.042	41.817
4.042	45.254
4.043	47.316
4.057	48.347
4.071	45.025
4.085	44.223
4.085	45.941
4.086	51.669
4.098	40.900
4.100	47.774
4.113	42.962
4.141	42.848
4.141	43.535
4.157	50.180
4.169	38.953
4.184	41.244
4.226	39.869
4.227	44.337
4.227	44.452
4.227	46.514
4.227	46.628
4.254	37.234
4.268	36.890
4.268	38.609
4.269	41.588
4.269	42.848
4.269	44.566
4.270	47.774
4.283	39.755
4.298	43.535
4.298	47.316
4.299	49.722
4.326	45.254
4.327	46.056
4.339	39.640
4.341	47.316
4.354	42.160
4.354	43.191
4.369	43.993
4.369	45.254
4.383	42.848
4.398	48.691
4.410	38.151
4.426	46.858
4.441	49.378
4.453	39.984
4.511	43.764
4.511	44.223
4.513	55.450
4.539	45.597
4.554	47.545
4.568	44.795
4.568	46.743
4.581	41.473
4.582	43.191
4.596	45.368
4.609	40.442
4.610	41.473
4.610	42.733
4.624	42.160
4.625	46.743
4.637	37.463
4.682	46.514
4.682	47.545
4.724	44.337
4.724	44.795
4.724	45.712
4.724	47.660
4.737	38.723
4.738	42.848
4.751	40.098
4.753	46.743
4.765	39.296
4.781	44.337
4.806	31.162
4.810	48.232
4.810	50.867
4.823	44.795
4.823	44.795
4.837	44.337
4.838	46.170
4.839	49.836
4.851	40.213
4.865	41.588
4.866	43.421
4.867	48.118
4.867	49.264
4.878	35.745
4.879	38.380
4.879	38.953
4.879	40.786
4.880	41.931
4.881	48.920
4.893	39.182
4.896	51.899
4.921	38.151
4.922	40.213
4.936	41.015
4.936	42.390
4.938	48.003
4.951	43.764
4.979	44.452
5.008	43.993
5.009	47.774
5.022	43.421
5.025	58.429
5.037	48.920
5.050	42.504
5.051	47.087
5.051	48.576
5.065	45.025
5.065	48.691
5.066	50.638
5.078	42.390
5.079	47.660
5.081	56.825
5.094	48.003
5.094	48.003
5.109	51.784
5.120	39.755
5.121	41.244
5.122	45.368
5.122	46.056
5.123	50.180
5.164	43.077
5.164	44.223
5.177	40.098
5.179	46.170
5.194	50.753
5.207	45.827
5.222	48.576
5.222	49.607
5.223	54.419
5.237	52.013
5.249	44.795
5.250	46.628
5.250	49.493
5.278	45.827
5.278	46.628
5.291	42.504
5.292	45.254
5.294	52.815
5.307	48.691
5.308	52.471
5.321	47.889
5.321	49.264
5.322	51.326
5.363	43.993
5.365	55.221
5.377	44.337
5.378	47.889
5.378	49.836
5.379	54.648
5.392	50.409
5.406	46.743
5.406	47.087
5.406	48.576
5.419	43.421
5.420	47.660
5.435	49.149
5.449	46.972
5.493	55.106
5.507	53.273
5.520	49.378
5.520	49.951
5.534	50.409
5.535	51.555
5.535	53.388
5.535	54.075
5.535	54.419
5.535	55.221
5.549	52.242
5.576	45.941
5.577	48.691
5.577	50.753
5.578	53.159
5.591	47.201
5.632	42.962
5.646	40.786
5.675	44.223
5.677	50.524
5.704	45.827
5.705	51.326
5.705	52.013
5.718	47.316
5.719	49.149
5.720	56.596
5.733	48.232
5.747	46.056
5.748	52.700
5.748	53.388
5.749	55.794
5.759	37.349
5.760	43.650
5.761	46.858
5.762	49.951
5.763	56.481
5.774	43.306
5.775	44.566
5.778	59.231
5.790	48.691
5.790	52.128
5.791	55.221
5.802	39.640
5.806	57.283
5.806	60.835
5.818	50.295
5.831	44.223
5.832	47.201
5.832	47.430
5.833	50.065
5.834	55.908
5.845	41.244
5.845	41.817
5.846	44.795
5.859	40.098
5.860	43.077
5.874	43.535
5.874	46.285
5.875	50.638
5.876	52.013
5.876	53.044
5.877	57.856
5.888	40.900
5.904	52.700
5.916	38.723
5.932	49.034
5.932	51.440
5.945	46.056
5.946	47.087
6.002	44.681
6.003	48.118
6.017	48.003
6.104	55.794
6.118	56.252
6.159	49.034
6.161	60.033
6.216	48.920
6.231	51.555
6.244	46.858
6.245	52.815
6.245	54.190
6.259	49.493
6.287	49.264
6.287	51.784
6.288	53.732
6.300	42.275
6.301	47.430
6.314	43.879
6.315	48.347
6.316	52.128
6.344	50.638
6.345	56.596
6.359	54.419
6.359	54.877
6.372	48.920
6.414	44.223
6.416	56.252
6.430	52.700
6.443	46.858
6.445	57.627
6.457	47.545
6.457	49.493
6.473	56.252
6.486	50.180
6.487	54.877
6.487	57.627
6.501	54.877
6.515	51.326
6.515	52.013
6.528	48.347
6.529	50.295
6.544	56.252
6.571	50.753
6.585	48.920
6.602	60.376
6.658	56.252
6.658	56.710
6.671	53.388
6.699	50.867
6.701	58.085
6.713	47.087
6.713	49.378
6.727	47.774
6.727	49.836
6.741	47.201
6.742	53.159
6.743	56.825
6.743	57.741
6.756	51.440
6.758	60.147
6.771	54.877
6.771	56.137
6.813	51.326
6.828	55.221
6.828	56.596
6.840	43.650
6.840	46.170
6.842	53.846
6.842	57.627
6.871	56.137
6.884	53.502
6.885	58.085
6.897	45.597
6.898	52.128
6.899	58.773
6.912	50.753
6.926	49.722
6.926	51.326
6.940	50.180
6.954	47.889
6.955	52.930
6.956	56.825
6.984	55.908
7.011	45.941
7.085	63.470
7.240	55.679
7.240	58.200
7.283	60.262
7.310	54.075
7.324	51.326
7.325	54.304
7.337	46.056
7.338	52.586
7.340	58.773
7.424	54.992
7.437	46.056
7.453	59.002
7.467	56.825
7.468	60.835
7.481	54.075
7.482	59.804
7.510	55.908
7.524	54.763
7.524	56.481
7.524	59.116
7.538	57.856
7.567	61.293
7.596	60.720
7.609	57.283
7.635	44.681
7.652	58.658
7.666	56.710
7.680	56.939
7.681	59.918
7.694	56.252
7.723	55.565
7.723	57.398
7.723	59.231
7.723	59.574
7.738	60.147
7.766	61.408
7.779	56.023
7.780	58.085
7.780	61.064
7.808	58.543
7.822	56.825
7.850	52.128
7.850	53.502
7.851	60.720
7.865	58.887
7.878	53.159
7.879	55.336
7.879	56.481
7.894	61.064
7.907	55.908
7.934	49.493
7.963	51.784
7.963	52.357
7.964	55.565
7.964	57.398
7.964	57.971
7.979	59.002
7.979	59.574
8.064	56.481
8.064	59.116
8.120	57.283
8.390	55.908
8.461	56.367
8.461	58.085
8.462	58.543
8.463	64.730
8.476	59.918
8.476	61.522
8.490	56.825
8.504	58.658
8.518	57.398
8.519	61.751
8.532	57.283
8.561	60.262
8.575	55.908
8.575	59.002
8.590	62.324
8.604	58.085
8.646	55.221
8.675	58.658
8.689	57.741
8.717	56.939
8.731	58.543
8.745	57.398
8.802	56.596
8.803	60.033
8.817	61.178
8.817	61.408
8.831	60.491
8.845	57.169
8.859	59.804
8.887	57.627
8.888	60.376
8.902	58.429
8.902	58.773
8.902	59.689
8.945	60.949
8.972	56.367
8.987	59.918
9.001	57.054
9.101	58.543
9.101	58.543
9.101	59.002
9.115	61.178
9.314	59.574
9.414	61.178
9.427	59.002
9.470	56.825
9.470	60.491
9.499	62.095
9.528	62.668
9.541	57.398
9.570	59.804
9.583	57.741
9.584	61.637
9.612	58.543
9.641	60.376
9.669	58.200
9.669	61.522
9.696	55.336
9.697	57.741
9.712	60.376
9.712	60.720
9.740	59.345
9.769	61.293
9.797	60.033
9.797	62.324
9.825	58.773
9.867	55.908
9.868	58.658
9.868	61.064
9.868	62.782
9.882	60.376
9.953	59.116
9.966	55.679
9.967	60.262
10.437	63.699
10.464	57.856
10.464	60.376
10.478	56.825
10.521	61.980
10.564	60.949
10.592	60.376
10.648	56.367
10.677	61.064
10.748	56.939
10.776	59.002
10.777	60.033
10.805	58.429
10.805	61.064
10.862	60.147
11.629	60.491
11.756	57.054
11.814	61.293
11.898	59.574];
data.tL_f(:,1) = (0 + data.tL_f(:,1)) * 365; % convert yr to d
for i=2:size(data.tL_f,1); 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', 'total length', 'females'};  
  temp.tL_f = C2K(17.4);  units.temp.tL_f = 'K'; label.temp.tL_f = 'temperature';
bibkey.tL_f = 'StewHugh2011';
%
data.tL_m = [ ... % time since birth (yr), total length (cm)
0.869	14.894
1.083	20.622
1.111	17.414
1.126	19.018
1.140	20.393
1.140	21.424
1.154	16.383
1.154	19.591
1.170	27.840
1.197	18.674
1.211	17.758
1.298	28.527
1.353	18.674
1.353	20.622
1.367	19.247
1.368	23.830
1.382	19.935
1.384	29.558
1.410	21.309
1.412	30.589
1.425	22.340
1.439	24.288
1.568	26.579
1.867	30.475
1.893	20.278
1.937	25.663
1.965	27.610
2.022	29.100
2.051	28.756
2.052	35.859
2.080	31.162
2.081	38.036
2.081	38.953
2.108	31.391
2.136	30.360
2.137	32.079
2.210	45.254
2.249	25.663
2.249	27.725
2.335	28.298
2.363	25.548
2.363	26.236
2.392	29.100
2.449	32.308
2.464	34.943
2.492	35.516
2.493	39.411
2.535	36.547
2.536	37.921
2.632	25.892
2.776	31.735
2.833	35.057
2.875	32.766
2.889	29.902
2.891	38.609
2.903	27.954
2.904	35.974
2.918	34.026
2.946	30.589
2.947	38.036
2.961	34.599
2.961	35.630
2.963	43.191
2.974	30.933
2.975	35.516
2.988	28.412
3.004	37.578
3.004	37.921
3.005	42.962
3.005	44.108
3.020	45.712
3.034	43.764
3.046	34.943
3.047	37.119
3.047	39.525
3.049	51.211
3.077	46.972
3.090	41.358
3.147	39.869
3.147	41.129
3.176	43.077
3.204	44.566
3.215	28.985
3.217	37.463
3.218	42.160
3.219	45.597
3.230	30.818
3.232	40.900
3.245	33.682
3.247	42.848
3.261	42.504
3.273	33.224
3.274	36.547
3.287	30.016
3.301	32.079
3.302	37.463
3.318	43.650
3.331	36.890
3.332	46.170
3.342	24.975
3.344	33.682
3.414	27.725
3.432	45.139
3.515	35.630
3.516	40.671
3.519	55.106
3.546	46.743
3.587	40.671
3.587	41.358
3.588	44.108
3.588	44.681
3.600	36.432
3.601	38.151
3.602	46.514
3.603	47.660
3.644	41.473
3.658	42.848
3.672	39.525
3.729	42.160
3.757	40.327
3.773	48.691
3.785	37.005
3.800	41.817
3.800	42.504
3.815	45.483
3.842	36.890
3.842	39.640
3.844	48.232
3.855	30.933
3.855	33.110
3.856	36.776
3.869	30.131
3.869	31.391
3.871	40.900
3.898	34.141
3.898	35.057
3.913	36.088
3.914	40.556
3.940	32.079
3.942	38.723
3.942	41.244
3.942	42.504
3.971	41.588
3.986	47.774
4.013	41.129
4.015	49.034
4.028	46.972
4.029	50.065
4.057	47.660
4.170	45.597
4.183	38.494
4.185	50.524
4.196	34.943
4.199	49.607
4.225	36.776
4.226	40.900
4.226	42.848
4.239	35.630
4.240	37.807
4.253	33.453
4.254	40.442
4.297	38.953
4.297	42.733
4.341	45.254
4.354	41.931
4.425	41.358
4.454	46.858
4.511	43.879
4.540	47.660
4.567	40.098
4.597	48.805
4.610	44.681
4.624	42.848
4.638	41.588
4.638	41.931
4.696	46.285
4.724	44.795
4.725	48.805
4.736	33.453
4.737	40.786
4.739	47.087
4.766	41.015
4.766	44.795
4.767	45.827
4.767	48.462
4.781	45.368
4.782	52.930
4.795	43.191
4.808	41.588
4.825	54.648
4.850	36.547
4.850	37.234
4.850	38.036
4.852	47.889
4.879	38.838
4.880	45.597
4.881	47.087
4.892	34.255
4.909	46.170
4.922	41.129
4.923	46.972
4.966	47.774
5.009	49.836
5.022	44.795
5.022	46.628
5.036	42.390
5.036	45.597
5.036	45.712
5.079	46.628
5.080	48.805
5.164	42.619
5.164	42.619
5.164	44.337
5.192	40.098
5.192	42.504
5.194	50.409
5.221	44.108
5.250	46.514
5.264	45.254
5.292	47.545
5.306	44.337
5.321	47.316
5.323	57.512
5.336	50.867
5.348	42.046
5.392	48.232
5.406	48.691
5.419	42.390
5.420	45.941
5.449	49.149
5.451	57.512
5.463	47.316
5.477	47.316
5.506	49.722
5.563	50.982
5.590	43.077
5.590	43.764
5.618	42.046
5.619	48.003
5.619	48.576
5.620	52.700
5.634	50.638
5.662	50.180
5.677	54.304
5.691	54.304
5.705	50.638
5.748	54.877
5.760	42.160
5.760	42.962
5.761	45.139
5.762	53.044
5.790	49.149
5.790	51.097
5.818	45.827
5.820	57.054
5.834	54.304
5.834	55.908
5.845	41.702
5.848	56.596
5.873	41.129
5.877	57.627
5.888	44.108
5.902	43.077
5.904	52.128
5.917	45.025
5.930	40.556
5.946	48.003
5.948	59.345
5.959	43.535
5.959	43.650
6.003	47.889
6.003	49.607
6.031	45.368
6.059	46.972
6.060	48.805
6.087	46.056
6.088	50.180
6.089	54.190
6.103	52.013
6.116	46.170
6.130	48.232
6.132	53.502
6.202	50.409
6.214	40.213
6.244	47.316
6.244	48.576
6.272	45.941
6.273	51.555
6.274	53.159
6.286	43.077
6.288	52.700
6.301	49.034
6.301	49.034
6.315	48.003
6.316	53.961
6.330	51.211
6.330	51.555
6.330	53.388
6.343	45.827
6.343	46.514
6.344	52.700
6.359	55.908
6.372	46.743
6.399	43.191
6.415	51.669
6.485	43.879
6.530	55.106
6.542	48.805
6.543	53.044
6.586	51.784
6.586	55.221
6.600	51.440
6.698	47.316
6.741	49.034
6.769	47.545
6.785	56.137
6.813	50.753
6.813	53.846
6.815	64.730
6.827	52.930
6.841	49.493
6.856	56.137
6.884	52.128
6.897	47.087
6.898	49.378
6.911	46.399
6.912	48.462
6.941	51.440
6.954	49.149
6.970	57.169
6.985	59.918
6.998	53.846
7.054	51.211
7.069	52.242
7.083	55.106
7.098	54.763
7.112	54.304
7.267	50.753
7.283	57.054
7.323	48.118
7.325	56.710
7.352	51.326
7.353	52.930
7.353	54.190
7.353	54.992
7.367	51.555
7.411	61.637
7.466	50.409
7.467	57.971
7.537	53.388
7.538	53.732
7.552	52.700
7.552	55.106
7.565	51.440
7.566	53.044
7.580	54.075
7.593	46.514
7.609	54.648
7.708	52.013
7.722	52.357
7.737	56.825
7.751	55.565
7.793	53.159
7.794	57.283
7.808	54.763
7.808	54.992
7.849	48.805
7.850	54.648
7.864	53.961
7.864	55.336
7.893	56.137
7.949	53.273
7.978	56.596
7.978	56.596
8.006	54.419
8.134	53.273
8.134	54.763
8.347	52.242
8.419	60.491
8.546	56.710
8.576	60.606
8.589	54.304
8.603	54.763
8.603	55.679
8.617	53.846
8.618	59.804
8.646	56.481
8.646	58.658
8.660	55.106
8.674	56.481
8.674	56.481
8.675	58.543
8.688	55.565
8.689	57.283
8.716	53.273
8.801	52.357
8.802	55.565
8.803	59.460
8.845	56.137
8.930	55.565
8.930	58.773
8.943	52.586
8.958	54.877
9.086	56.252
9.086	58.200
9.100	55.679
9.128	53.502
9.129	56.596
9.129	57.627
9.441	56.252
9.498	56.825
9.512	58.314
9.541	58.314
9.541	59.345
9.569	57.627
9.584	60.606
9.597	54.534
9.597	54.534
9.612	58.658
9.668	57.398
9.682	55.679
9.710	54.075
9.739	56.367
9.753	54.992
9.768	58.773
9.838	53.617
9.839	58.200
9.841	68.969
9.910	57.283
9.995	58.429
10.009	53.846
10.051	54.419
10.506	55.908
10.507	60.262
10.549	56.137
10.563	58.658
10.605	55.450
10.691	57.627
10.705	58.200
11.060	56.252
11.643	59.804
11.686	60.720];
data.tL_m(:,1) = (0 + data.tL_m(:,1)) * 365; % convert yr to d
for i=2:size(data.tL_m,1); 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', 'total length', 'males'};  
  temp.tL_m = C2K(17.4);  units.temp.tL_m = 'K'; label.temp.tL_m = 'temperature';
bibkey.tL_m = 'StewHugh2011';

% length-fecundity
data.LN = [ ... % fork length (cm), fecundity (#0
31.404	135789.413
32.505	72631.520
34.393	176842.049
34.394	113684.156
37.780	126315.785
38.082	331578.967
38.262	186315.802
39.004	391578.984
39.140	249473.694
39.711	246315.818
40.414	265263.199
42.349	281052.578
44.989	205263.182
45.649	195789.429
46.083	419999.992
46.435	413684.240
47.138	413684.240
47.184	325263.215
48.283	337894.719
48.502	391578.984
49.955	299999.958
50.746	325263.215
50.787	461052.628
50.788	391578.984
51.452	214736.810
55.451	293684.207
55.622	511578.892
56.802	814736.851
56.940	555789.530
57.462	792631.595
57.558	464210.504
58.041	483157.884
58.466	1095789.492
58.472	852631.612
58.788	521052.645
59.738	1228421.091
61.000	1740000.046
61.758	1319999.992
61.989	852631.612
63.314	618947.422];
units.LN = {'cm', '#'};  label.LN = {'fork length', 'fecundity'};  
  temp.LN = C2K(17.4);  units.temp.LN = 'K'; label.temp.LN = 'temperature';
bibkey.LN = 'StewHugh2011';

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

%% 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';
metaData.discussion = struct('D1',D1);

%% Facts
F1 = 'length-weight: Ww in g = 0.00955*(TL in cm)^3.01'; 
metaData.bibkey.F1 = 'fishbase'; 
metaData.facts = struct('F1',F1);

%% Links
metaData.links.id_CoL = 'GV3J'; % Cat of Life
metaData.links.id_ITIS = '168826'; % ITIS
metaData.links.id_EoL = '46580709'; % Ency of Life
metaData.links.id_Wiki = 'Arripis'; % Wikipedia
metaData.links.id_ADW = 'Arripis_trutta'; % ADW
metaData.links.id_Taxo = '161813'; % Taxonomicon
metaData.links.id_WoRMS = '1577326'; % WoRMS
metaData.links.id_fishbase = 'Arripis-trutta'; % fishbase

%% References
bibkey = 'Wiki'; type = 'Misc'; bib = ...
'howpublished = {\url{http://en.wikipedia.org/wiki/wiki/Arripis}}';  
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 = 'StewHugh2011'; type = 'techreport'; bib = [ ...
'author = {John Stewart and Julian Hughes and Jaime McAllister and Jeremy Lyle and Murray MacDonald}, ' ...
'year = {2011}, ' ...
'title = {Australian salmon (\emph{Arripis trutta}): {P}opulation structure, reproduction, diet and composition of commercial and recreational catches}, ' ... 
'institution = {Industry \& Investment NSW (now incorporating NSW Department of Primary Industries)}, ' ...
'volume = {129}, '...
'pages = {pp 257}'];
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];
%
bibkey = 'fishbase'; type = 'Misc'; bib = ...
'howpublished = {\url{https://www.fishbase.se/summary/Arripis-trutta.html}}';  
metaData.biblist.(bibkey) = ['''@', type, '{', bibkey, ', ' bib, '}'';'];

