TABLE = nan(15,6);

use = find(year(Monthly_date) == 2014);
TABLE(1,1) = sum(Precip_Monthly(use));
TABLE(1,2) = sum(ET_Monthly(use));
TABLE(1,4) = sum(NEE_solo_Monthly(use));
TABLE(1,5) = sum(GPP_solo_Monthly(use));
TABLE(1,6) = sum(ER_solo_Monthly(use));
use = find(Year_t == 2014);
TABLE(1,3) = mean(Ta(use));

use = find(year(Monthly_date) == 2015);
TABLE(6,1) = sum(Precip_Monthly(use));
TABLE(6,2) = sum(ET_Monthly(use));
TABLE(6,4) = sum(NEE_solo_Monthly(use));
TABLE(6,5) = sum(GPP_solo_Monthly(use));
TABLE(6,6) = sum(ER_solo_Monthly(use));
use = find(Year_t == 2015);
TABLE(6,3) = mean(Ta(use));

use = find(year(Monthly_date) == 2016);
TABLE(11,1) = sum(Precip_Monthly(use));
TABLE(11,2) = sum(ET_Monthly(use));
TABLE(11,4) = sum(NEE_solo_Monthly(use));
TABLE(11,5) = sum(GPP_solo_Monthly(use));
TABLE(11,6) = sum(ER_solo_Monthly(use));
use = find(Year_t == 2016);
TABLE(11,3) = mean(Ta(use));

% winter 
use = find(year(Monthly_date) == 2014 & month(Monthly_date) >= 6 & month(Monthly_date) <= 8);
TABLE(2,1) = sum(Precip_Monthly(use))
TABLE(2,2) = sum(ET_Monthly(use))
TABLE(2,4) = sum(NEE_solo_Monthly(use))
TABLE(2,5) = sum(GPP_solo_Monthly(use))
TABLE(2,6) = sum(ER_solo_Monthly(use))
use = find(Year_t == 2014 & Month_t >= 6 & Month_t <= 8);
TABLE(2,3) = mean(Ta(use))

use = find(year(Monthly_date) == 2015 & month(Monthly_date) >= 6 & month(Monthly_date) <= 8);
TABLE(7,1) = sum(Precip_Monthly(use))
TABLE(7,2) = sum(ET_Monthly(use))
TABLE(7,4) = sum(NEE_solo_Monthly(use))
TABLE(7,5) = sum(GPP_solo_Monthly(use))
TABLE(7,6) = sum(ER_solo_Monthly(use))
use = find(Year_t == 2015 & Month_t >= 6 & Month_t <= 8);
TABLE(7,3) = mean(Ta(use))

use = find(year(Monthly_date) == 2016 & month(Monthly_date) >= 6 & month(Monthly_date) <= 8);
TABLE(12,1) = sum(Precip_Monthly(use))
TABLE(12,2) = sum(ET_Monthly(use))
TABLE(12,4) = sum(NEE_solo_Monthly(use))
TABLE(12,5) = sum(GPP_solo_Monthly(use))
TABLE(12,6) = sum(ER_solo_Monthly(use))
use = find(Year_t == 2016 & Month_t >= 6 & Month_t <= 8);
TABLE(12,3) = mean(Ta(use))

% spring
use = find(year(Monthly_date) == 2014 & month(Monthly_date) >= 9 & month(Monthly_date) <= 11);
TABLE(3,1) = sum(Precip_Monthly(use))
TABLE(3,2) = sum(ET_Monthly(use))
TABLE(3,4) = sum(NEE_solo_Monthly(use))
TABLE(3,5) = sum(GPP_solo_Monthly(use))
TABLE(3,6) = sum(ER_solo_Monthly(use))
use = find(Year_t == 2014 & Month_t >= 9 & Month_t <= 11);
TABLE(3,3) = mean(Ta(use))

use = find(year(Monthly_date) == 2015 & month(Monthly_date) >= 9 & month(Monthly_date) <= 11);
TABLE(8,1) = sum(Precip_Monthly(use))
TABLE(8,2) = sum(ET_Monthly(use))
TABLE(8,4) = sum(NEE_solo_Monthly(use))
TABLE(8,5) = sum(GPP_solo_Monthly(use))
TABLE(8,6) = sum(ER_solo_Monthly(use))
use = find(Year_t == 2015 & Month_t >= 9 & Month_t <= 11);
TABLE(8,3) = mean(Ta(use))

use = find(year(Monthly_date) == 2016 & month(Monthly_date) >= 9 & month(Monthly_date) <= 11);
TABLE(13,1) = sum(Precip_Monthly(use))
TABLE(13,2) = sum(ET_Monthly(use))
TABLE(13,4) = sum(NEE_solo_Monthly(use))
TABLE(13,5) = sum(GPP_solo_Monthly(use))
TABLE(13,6) = sum(ER_solo_Monthly(use))
use = find(Year_t == 2016 & Month_t >= 9 & Month_t <= 11);
TABLE(13,3) = mean(Ta(use))

% summer
use = find(year(Monthly_date) == 2014 & (month(Monthly_date) >= 12 | month(Monthly_date) <= 2));
TABLE(4,1) = sum(Precip_Monthly(use))
TABLE(4,2) = sum(ET_Monthly(use))
TABLE(4,4) = sum(NEE_solo_Monthly(use))
TABLE(4,5) = sum(GPP_solo_Monthly(use))
TABLE(4,6) = sum(ER_solo_Monthly(use))
use = find(Year_t == 2014 & (Month_t >= 12 | Month_t <= 2));
TABLE(4,3) = mean(Ta(use))

use = find(year(Monthly_date) == 2015 & (month(Monthly_date) >= 12 | month(Monthly_date) <= 2));
TABLE(9,1) = sum(Precip_Monthly(use))
TABLE(9,2) = sum(ET_Monthly(use))
TABLE(9,4) = sum(NEE_solo_Monthly(use))
TABLE(9,5) = sum(GPP_solo_Monthly(use))
TABLE(9,6) = sum(ER_solo_Monthly(use))
use = find(Year_t == 2015 & (Month_t >= 12 | Month_t <= 2));
TABLE(9,3) = mean(Ta(use))

use = find(year(Monthly_date) == 2016 & (month(Monthly_date) >= 12 | month(Monthly_date) <= 2));
TABLE(14,1) = sum(Precip_Monthly(use))
TABLE(14,2) = sum(ET_Monthly(use))
TABLE(14,4) = sum(NEE_solo_Monthly(use))
TABLE(14,5) = sum(GPP_solo_Monthly(use))
TABLE(14,6) = sum(ER_solo_Monthly(use))
use = find(Year_t == 2016 & (Month_t >= 12 | Month_t <= 2));
TABLE(14,3) = mean(Ta(use))

% autumn
use = find(year(Monthly_date) == 2014 & month(Monthly_date) >= 3 & month(Monthly_date) <= 5);
TABLE(5,1) = sum(Precip_Monthly(use))
TABLE(5,2) = sum(ET_Monthly(use))
TABLE(5,4) = sum(NEE_solo_Monthly(use))
TABLE(5,5) = sum(GPP_solo_Monthly(use))
TABLE(5,6) = sum(ER_solo_Monthly(use))
use = find(Year_t == 2014 & Month_t >= 3 & Month_t <= 5);
TABLE(5,3) = mean(Ta(use))

use = find(year(Monthly_date) == 2015 & month(Monthly_date) >= 3 & month(Monthly_date) <= 5);
TABLE(10,1) = sum(Precip_Monthly(use))
TABLE(10,2) = sum(ET_Monthly(use))
TABLE(10,4) = sum(NEE_solo_Monthly(use))
TABLE(10,5) = sum(GPP_solo_Monthly(use))
TABLE(10,6) = sum(ER_solo_Monthly(use))
use = find(Year_t == 2015 & Month_t >= 3 & Month_t <= 5);
TABLE(10,3) = mean(Ta(use))

use = find(year(Monthly_date) == 2016 & month(Monthly_date) >= 3 & month(Monthly_date) <= 5);
TABLE(15,1) = sum(Precip_Monthly(use))
TABLE(15,2) = sum(ET_Monthly(use))
TABLE(15,4) = sum(NEE_solo_Monthly(use))
TABLE(15,5) = sum(GPP_solo_Monthly(use))
TABLE(15,6) = sum(ER_solo_Monthly(use))
use = find(Year_t == 2016 & Month_t >= 3 & Month_t <= 5);
TABLE(15,3) = mean(Ta(use))

