RIDES_light_potential_ECS


Building a new RIDES_light_potential macro with integrated ECS. The concept for the protocol came out of discussions between myself and Gonzalo Estavillo during a PhotosynQ workshop (and subsequent beers). The idea is: what would be the instantaneous increase in LEF if the light intensity suddently increased to a certain point near saturation. To estmate this value, we started with RISES1_3_1 but in additiopn to the steady-state (ambient) light Fs valuies taken before the saturation pulse, we added a second, ~10-s illumination with 1000 uE. We assumed that the 10s was not sufficient change NPQ by a substantial amount, so that the Fv/FM' and NPQ parameters were taken with the sole saturation pulses. In this version, I added ECS measurements into the PAM fluorescence and P700 traces. The idea is to determine what the impact of suddenlyy increasing light on the pmf, which over the short interval should be moslty in the delta.PSI fraction. This is relevant to recent work in our lab on the FRIP (field-Recombination-Induced Photodamage), see (https://elifesciences.org/articles/16921 and tb.royalsocietypublishing.org/content/372/1730/20160381). Note: Special thanks to Sebastian Kuhlgert for the curve fitting routines! Some outputs are derived by fitting decay curves, e.g. the P700 and ECS data. The previous procedure, written by Kevin Bi and Greg Austic, though useful frequently failed. Fortunately, Sebastian added a really important new feature that allows for very flexible fitting that almost never fails.
/**
 * Macro for data evaluation of RIDES1_light_potential 
 * data on PhotosynQ.org
 * by: David M. Kramer
 * created: 2017-05-09 @ 18:15:27
 *
 * The concept for the protocol came out of discussions between myself
 * and Gonzalo Estavillo during a PhotosynQ workshop (and subsequent 
 * beers). The idea is: what would be the instantaneous increase in
 * LEF if the light intensity suddently increased to a certain point
 * near saturation. To estmate this value, we started with RISES1_3_1
 * but in additiopn to the steady-state (ambient) light Fs valuies
 * taken before the saturation pulse, we added a second, ~10-s
 * illumination with 1000 uE. We assumed that the 10s was not sufficient
 * change NPQ by a substantial amount, so that the Fv/FM' and NPQ
 * parameters were taken with the sole saturation pulses.

/* Note: Special thanks to Sebastian Kuhlgert for the curve fitting routines!
*  
* The following variables are for fitting the ECS decay curves when the 
* procedure written by Kevin and Greg often fails. Fortunately, Sebastian added 
* a really important new feature that allows for very flexible and useful 
* nonlinear curve fitting. 
*/

// Define the output object here
var output = {}; //dictionary to hold results
n_sets=json.set.length;
//output.n_sets=json.set.length;
var details=1;

// Define the protocol set numbers for each data set
// NOTE: these will be overwritten by the labels!

var ECS_LEFdset;
var P700_DIRK_set;
var PAM_set;  //the json set 8 contains the PAM and P700 traces
var SPAD_set;
var calib_set;

//Find the appropriate traces (or sub-protocols in the protocol set)
// using the labels provided in the label command

var labels=[]; //holds the labels found in the data sets

for (var i=1; i < n_sets; i++) {
  var temp=json.set[i].label; //store the label for sup-protocol n in temp
  labels.push(temp);

  if (temp=="DIRK_ECS"){ //if the label is 'DIRK_ECS' it is the ECS_LEFs trace 
  	//output.tt1=temp;
    ECS_LEFdset=i;
  }
  if (temp=="DIRK_P700"){ // if the label is 'DIRK_P700' ut us tge fluorescence DIRK trace 
  	//output.tt2=temp;
    var P700_DIRK_set=i;
  }
  if (temp=="PAM"){ //if the label is 'PAM' is is the trace with tboth the 
    				//fluorescence PAM and the P700 traces
  	//output.tt3=temp;
    PAM_set=i;
  }
  if (temp=="SPAD"){ //if the label is 'SPAD' it contains the SPAD traces
  	//output.tt4=temp;
    SPAD_set=i;
    calib_set=i;
  }
}

// Next DEFINE THE TRACES USEING LABEL INFO

// ECS DIRK trace definitions
var beginning_of_ECS=100; //Note the 100 pulses 
var length_of_ECS_subtrace=220; //The length of each subtrace. 
var number_of_ECS_subtraces=6; // number of ECS subtraces. There are currently 6 of them.
var length_of_ECS_baseline=100;  //there are 100 points in the baseline before the DIRK
var length_of_ECS_all_subtraces=beginning_of_ECS+(number_of_ECS_subtraces*length_of_ECS_subtrace);  
var ECS_averaged_trace=json.set[ECS_LEFdset].data_raw.slice(beginning_of_ECS,320);  
var begining_of_subtrace_for_linear_fit=75;
var end_of_subtrace_for_linear_fit=145;
var P700_begining_of_subtrace_for_linear_fit=55;
var P700_end_of_subtrace_for_linear_fit=170;

var beginning_of_LEFD=1421; //Note the 100 pulses 
var length_of_LEFd_subtrace=220; //The length of each subtrace. 
var length_of_LEFd_baseline=100;  //there are 100 points in the baseline before the DIRK
var LEFd_trace=json.set[ECS_LEFdset].data_raw.slice(beginning_of_LEFD,beginning_of_LEFD+length_of_LEFd_subtrace);  

// P700 DIRK trace definitions
var beginning_of_P700_DIRK=100; //Note the 100 pulses 
var length_of_P700_DIRK_subtrace=220; //The length of each subtrace. 
var number_of_P700_DIRK_subtraces=6; // number of ECS subtraces. There are currently 6 of them.
var length_of_P700_DIRK_baseline=100;  //there are 100 points in the baseline before the DIRK
var length_of_P700_DIRK_all_subtraces=beginning_of_P700_DIRK+(number_of_P700_DIRK_subtraces*length_of_P700_DIRK_subtrace);  
var P700_DIRK_averaged_trace=json.set[ECS_LEFdset].data_raw.slice(beginning_of_P700_DIRK,320);  


//reshape the PAM and P700 traces from alterrnating 1,2,1,2... to 1,1,1,1...2,2,2,2...

var length_of_PAM= json.set[PAM_set].data_raw.length;
//output.length_of_PAM=length_of_PAM;

var PAM_DATA= [];//take every 3rd point, starting with the first (i.e. point 0) 
				//for trace PSI_data
for (var i=0; i<length_of_PAM; i=i+3){
	PAM_DATA.push(json.set[PAM_set].data_raw[i]);
}
output.PAM_DATA=PAM_DATA;


var PSI_data=[]; //take every 3rd point, starting with the second (i.e. point 1) 
				//for trace PSI_data
for (var i=1; i<length_of_PAM+1; i=i+3){
	PSI_data.push(json.set[PAM_set].data_raw[i]);
}
output.PSI_data=PSI_data; //.slice(0,290);



var ECS_PAM_data=[]; //take every 3rd point, starting with the second (i.e. point 1) 
				//for trace PSI_data
for (var i=2; i<length_of_PAM+1; i=i+3){
	ECS_PAM_data.push(json.set[PAM_set].data_raw[i]);
}
output.ECS_PAM_data=ECS_PAM_data; //.slice(0,290);

//json.set[PAM_set].data_raw=PAM_DATA; //replace the old values wiht temp1

/*
//the following is a snippet of code for smoothing...
//I did not use it here, but it might be useful
var PSI_smoothed=[];
var smoothbox=10;
for (i=0; i<smoothbox;i++){
  PSI_smoothed.push(PSI_data[i]);
}

for (i=smoothbox; i<PSI_data.length-smoothbox;i=i+1){
  var temp_sum=0;
  
  for (var j=0; j<smoothbox;j++){
  		temp_sum=temp_sum+PSI_data[i+j];
	}

  PSI_smoothed.push(temp_sum/smoothbox);
  
}
output.PSI_smoothed=PSI_smoothed;

*/

// PAM fluorescence traces
//DEFINE THE STARTING AND ENDING POINTS TO USE FOR THE VARIOUS 
//PARAMETERS USED IN THE CALCULATIONS

// The Fs paramter for ambient light intensity
var Fs_begin=45; //the first point to use for Fs 
var Fs_end =90; //the end point to use  for Fs

// The Fs paramter for INCREASED light intensity
var high_Fs_begin=130; //the first point to use for Fs 
var high_Fs_end =200; //the end point to use  for Fs

// We will use the SAME Fv/FM' values for the ambient and
// increased light intensities.

//The Fv/FM' results will be calculated using the Avenson technique, wherein
//a series of different saturation pulse intensities are used and the 
//true saturation point is inferred by extrapolation to infinite
//intensities.

//The first FM value (Fm_1) is obtained with the highest intensity
var Fm_1_begin =201; //the first point to use for the FIRST Fmp
var Fm_1_end =230; //the end point to use  for the FIRST Fmp
var Fm_2_begin =231; //the first point to use for the FIRST Fmp
var Fm_2_end =245; //the end point to use  for the FIRST Fmp
var Fm_3_begin =246; //the first point to use for the FIRST Fmp
var Fm_3_end =260; //the end point to use  for the FIRST Fmp
var Fm_4_begin =261; //the first point to use for the FIRST Fmp
var Fm_4_end =275; //the end point to use  for the FIRST Fmp
var Fm_5_begin =276; //the first point to use for the FIRST Fmp
var Fm_5_end =290; //the end point to use  for the FIRST Fmp


//START AND STOP FOR F0'
var FoPrime_begin =507; //the first point to use for Fs 
var FoPrime_end =519; //the end point to use  for Fs


//SET THE INVERSE INTENSITIES FOR THE AVENSON INTENSITY RAMP
var inverse_intensity = [1/8000,1/7000,1/6000,1/5000];


//************************************************************************************************
  //Calculate the PAM fluorescence paramters
  
  //output.data_raw_PAM = json.set[PAM_set].data_raw.slice(0,310);
  data=PAM_DATA; //.slice(0,310);
  
// Set our Apparent FmPrime, 3 FmPrime steps, and Fs to calculate both traditional fv/fm and new Multi-phase flash fv/fm
//----------------------------

//get the values for representative Fs 
var baseline=0; //for the time being, do not use baseline

//GET THE VALUES FOR Fs
var Fs = MathROUND(MathMEAN(data.slice(Fs_begin,Fs_end)),4) - baseline; // take only the first 4 values in the Fs range, excluding the very first
var Fs_std = MathSTDEV(data.slice(Fs_begin,Fs_end)); // create standard deviation for this value for error checking

//output.Fs=Fs;

//GET THE VALUES FOR Fs after changing to higher illumination conditions
var high_Fs = MathROUND(MathMEAN(data.slice(high_Fs_begin,high_Fs_end)) - baseline,4); // take only the first 4 values in the Fs range, excluding the very first
var high_Fs_std = MathSTDEV(data.slice(high_Fs_begin,high_Fs_end)); // create standard deviation for this value for error checking



//GET THE VALUES FOR THE 5 Fm' ILLUMINATION CONDITIONS

var sat_vals = data.slice(Fm_1_begin,Fm_1_end).sort();  // sort the saturating light values from low to high
var AFmP = MathMEAN(sat_vals.slice(2,20)) - baseline; // take the 18 largest values and average them
var AFmP_std = MathSTDEV(sat_vals); // create standard deviation for this value for error checking
//output.AFmP=AFmP;
  
sat_vals = data.slice(Fm_5_begin,Fm_5_end).sort();  // sort the saturating light values from low to high
var FmP_end = MathMEAN(sat_vals.slice(2,23)) - baseline; // take the 21 largest values and average them
var FmP_end_std = MathSTDEV(sat_vals); // create standard deviation for this value for error checking
//output.FmP_end=FmP_end;
  
sat_vals = data.slice(Fm_2_begin,Fm_2_end).sort();  // sort the saturating light values from low to high
var FmP_step1 = MathMEAN(sat_vals.slice(2,6)) - baseline; // take the 4 largest values and average them
var FmP_step1_std = MathSTDEV(sat_vals); // create standard deviation for this value for error checking
//output.FmP_step1=FmP_step1;
  
sat_vals = data.slice(Fm_3_begin,Fm_3_end).sort();  // sort the saturating light values from low to high
var FmP_step2 = MathMEAN(sat_vals.slice(2,6)) - baseline; // take the 4 largest values and average them
var FmP_step2_std = MathSTDEV(sat_vals); // create standard deviation for this value for error checking
//output.FmP_step2=FmP_step2;
  
sat_vals = data.slice(Fm_4_begin,Fm_4_end).sort();  // sort the saturating light values from low to high
var FmP_step3 = MathMEAN(sat_vals.slice(2,6)) - baseline; // take the 4 largest values and average them
var FmP_step3_std = MathSTDEV(sat_vals); // create standard deviation for this value for error checking
//output.FmP_ste32=FmP_step3;


// Calculations for F0'
// ----------------------------
var FoPrime_values =   data.slice(FoPrime_begin,FoPrime_end).sort();
//output.FoPrime_values=FoPrime_values;
//var FoPrime = MathMEAN(FoPrime_values.slice(5,10)) - baseline;
var FoPrime = MathMIN(FoPrime_values);
var FoPrime_std = MathSTDEV(FoPrime_values); // create standard deviation for this value for error checking

//output.FoPrime_values=FoPrime_values;
  
// Calculations for corrected FmPrime using multi-phase flash
// ----------------------------
var reg = MathLINREG(inverse_intensity, [AFmP,FmP_step1,FmP_step2,FmP_step3]);

// Calculate Phi2 w/ and w/out multi-phase flash
// ----------------------------
var fvfm_noMPF = (AFmP-Fs)/AFmP;
var fvfm_MPF = (reg.b-Fs)/reg.b;

//output.fvfm_MPF=fvfm_MPF;
//output.fvfm_noMPF=fvfm_noMPF;

//output.regb=reg.b;
//output.FoPrime=FoPrime;
// Calculate NPQt, PhiNPQ, PhiNO, qL w/ and w/out multi-phase flash
// ----------------------------
var npqt_MPF = (4.88 / ((reg.b / FoPrime) -1) )-1;
var npqt_noMPF = (4.88 / ((AFmP / FoPrime) -1) )-1;
//output.npqt_noMPF=npqt_noMPF;

var qL_MPF = ((reg.b - Fs)*FoPrime)/((reg.b-FoPrime)*Fs);
var qL_noMPF = ((AFmP - Fs)*FoPrime)/((AFmP-FoPrime)*Fs);
var PhiNO_MPF = 1/(npqt_MPF + 1 + qL_MPF*4.88); //based on equation 52 in Kramer et al., 2004 PRES
var PhiNO_noMPF = 1/(npqt_noMPF + 1 + qL_noMPF*4.88); //based on equation 52 in Kramer et al., 2004 PRES
var PhiNPQ_MPF = 1-fvfm_MPF-PhiNO_MPF; //based on equation 53 in Kramer et al., 2004 PRES 
var PhiNPQ_noMPF = 1-fvfm_noMPF-PhiNO_noMPF; //based on equation 53 in Kramer et al., 2004 PRES 
var qP_MPF = (reg.b - Fs)/(reg.b - FoPrime);
var qP_noMPF = (FmPrime - Fs)/(FmPrime - FoPrime);
var FvP_FmP_MPF = (reg.b-FoPrime)/reg.b;
var FvP_FmP_noMPF = (AFmP-FoPrime)/AFmP;

// Create the variables to be printed (assume to use the MPF values unless there is a good reason not to)
// ----------------------------
var fvfm = fvfm_MPF;
var npqt = npqt_MPF;
var PhiNO = PhiNO_MPF;
var PhiNPQ = PhiNPQ_MPF;
var qL = qL_MPF;
var FmPrime = reg.b;
var qP = qP_MPF;
var FvP_FmP = FvP_FmP_MPF;

var light_intensity=json.set[ECS_LEFdset].light_intensity;
output.light_intensity= MathROUND(light_intensity,1); 
output.O="________________________PSII________________________________";
var Phi2=fvfm_MPF;
//output.Phi2=Phi2;
output.Phi2=MathROUND(Phi2,4);

var high_fvfm_noMPF = (AFmP-high_Fs)/AFmP;
var high_fvfm_MPF = (reg.b-high_Fs)/reg.b;

var high_Phi2_MPF = MathROUND(high_fvfm_MPF,4);
output.high_Phi2=high_Phi2_MPF;
var high_Phi2_no_MPF = MathROUND(high_fvfm_noMPF,3);
//output.high_Phi2_no_MPF=high_Phi2_no_MPF;




/* *******************make bar graphs for Phi2 ***********
var Phi2_bar ="0: ";
for (var i=0; i< (10*Phi2); i++){
  Phi2_bar+="█";
}
for (var i=10*Phi2; i< 10; i++){
  Phi2_bar+="░";
}
Phi2_bar+=" :1.0 (";
Phi2_bar+=output.Phi2;
Phi2_bar+=")";
output.Phi2_bar=Phi2_bar;
*/

  var LEF=MathROUND((Phi2  * 0.45 * light_intensity),1);
  output.LEF= LEF; //MathROUND((fvfm  * 0.45 * light_intensity),3);

	output.Phi2_high=high_Phi2_MPF;

	var LEF_high=MathROUND((high_Phi2_MPF  * 0.45 * 1000),1); //assume that high light is 1000

  output.LEF_high= LEF_high; //MathROUND((3  * 0.45 * light_intensity),3);

  output.delta_LEF= MathROUND(LEF_high-LEF, 1); //MathROUND((3  * 0.45 * light_intensity),3);
	output.Fs=Fs;
	output["Fs_high/Fs"]=MathROUND(high_Fs/Fs);
output.P="________________________NPQ________________________________";

output.NPQt=MathROUND(npqt_MPF,2);
output.qL=MathROUND(qL_MPF,2);
output.PhiNO=MathROUND(PhiNO_MPF,2);
output.PhiNPQ=MathROUND(PhiNPQ_MPF,2);



//PSI saturation pulse parameters:
//Calculation of the DIRK delta_A_ECS 
  //output.data_raw_ECS_DIRK = json.set[ECS_LEFdset].data_raw.slice(0,1420);
output.A="________________________FRIP______________________________";

var FRIP_data_absorbance=[];
var ECS_PAM_data_dark=MathMEAN(ECS_PAM_data.slice(20.50));
for (var i=0; i<ECS_PAM_data.length; i++){
         FRIP_data_absorbance.push(MathLOG(ECS_PAM_data_dark/ECS_PAM_data[i]));
}

output.FRIP_data_absorbance=FRIP_data_absorbance;
var SPIKE_low_to_high = MathROUND(1000*MathMAX(FRIP_data_absorbance.slice(100,160)),3);
output.SPIKE_low_to_high=SPIKE_low_to_high;

var SPIKE_dark_to_sat = MathROUND(1000*MathMAX(FRIP_data_absorbance.slice(500,540)) - MathMIN(FRIP_data_absorbance.slice(500,540)),3);
output.SPIKE_dark_to_sat=SPIKE_dark_to_sat;

                               
output.R="_________________________PSI_______________________________";

var PSI_ss_beg=1; //beginning of the trace for P700 steady-state
var PSI_ss_end=100; //end of the trace for P700 steady-state

var PSI_high_beg=101;//beginning of the trace for P700 at elevated light
var PSI_high_end=199; //end of the trace for P700 at elevated light

var PSI_sat1_beg=200; //beginning of the trace for P700 first saturation pulse
var PSI_sat1_end=235; //end of the trace for P700 first saturation pulse
var PSI_dark_beg=298; //beginning of the trace for P700 steady-state
var PSI_dark_end=300; //end of the trace for P700 steady-state
var PSI_sat2_beg=530; //beginning of the trace for P700 second saturation pulse
var PSI_sat2_end=570; //end of the trace for P700 second saturation pulse

 //ANALYZE THE PHI-PSI DATA  

 var PSI_trace_beg=0; //310;
 var PSI_trace_end=PSI_data.length; //615;
 var PSI_trace_length=PSI_trace_end-PSI_trace_beg;
 
// PSI_dark_beg=0;
 
 //var PSI_data=json.set[PAM_set].data_raw.slice(PSI_trace_beg,PSI_trace_end);
 var PSI_dark_raw=MathMEAN(PSI_data.slice(PSI_dark_beg,PSI_dark_end));
  output.PSI_dark_raw=PSI_dark_raw;

var PSI_data_absorbance=[];
 
 for (var i=0; i<PSI_data.length; i++){
         PSI_data_absorbance.push(MathLOG(PSI_dark_raw/PSI_data[i]));
   }
output.PSI_data_absorbance=PSI_data_absorbance;
   var PSI_dark=1000*MathMEAN(PSI_data_absorbance.slice(PSI_dark_beg,PSI_dark_end));
   var PSI_ss=1000*MathMEAN(PSI_data_absorbance.slice(PSI_ss_beg,PSI_ss_end));
   var PSI_high=1000*MathMEAN(PSI_data_absorbance.slice(PSI_high_beg,PSI_high_end));
   
   var PSI_sat1_vals = PSI_data_absorbance.slice(PSI_sat1_beg,PSI_sat1_end).sort();  // sort the saturating light values from low to high
   var length_of_sat1=PSI_sat1_end-PSI_sat1_beg;
   var top_20_percent=(length_of_sat1*0.8);

   var PSI_sat1 = 1000*MathMEAN(PSI_sat1_vals.slice(top_20_percent,length_of_sat1)); // take the top 20% largest values and average them
   var PSI_sat2_vals = PSI_data_absorbance.slice(PSI_sat2_beg,PSI_sat2_end).sort();  // sort the saturating light values from low to high
   var length_of_sat2=PSI_sat2_end-PSI_sat2_beg;
   var top_20_percent=(length_of_sat2*0.8);
   var PSI_sat2 = 1000*MathMEAN(PSI_sat2_vals.slice(top_20_percent,length_of_sat2)); // take the top 20% largest values and average them
   
   var PSI_ox=PSI_ss/PSI_sat2;
   var PSI_ox_high=PSI_high/PSI_sat2;

   var PSI_act=PSI_sat2;
   var PSI_open=(PSI_sat1-PSI_ss)/PSI_sat2;
   var PSI_or=1-PSI_sat1/PSI_sat2;
   //output.PSI_data_absorbance=PSI_data_absorbance;
   output.PSI_act=MathROUND(PSI_act, 3);
   output.PSI_open =MathROUND(PSI_open, 3);
   output.PSI_or =MathROUND(PSI_or, 3);
   output.PSI_ox =MathROUND(PSI_ox, 3);


   output.PSI_ox_high =MathROUND(PSI_ox_high, 3);

     //output.PSI_dark=PSI_dark;
   //output.PSI_ss = PSI_ss; //MathROUND(PSI_ss, 3);
   //output.PSI_sat1 =MathROUND(PSI_sat1, 3);
   //output.PSI_sat2 =MathROUND(PSI_sat2, 3);
 
     //output.data_raw_PSI =PSI_data;
    //output.PSI_dark_beg=PSI_dark_beg;
    //output.PSI_dark_end=PSI_dark_end;
 

//ECS trace analysis:

var i, j;
  for (i = 1; i < number_of_ECS_subtraces; i++) {
      var temp=json.set[ECS_LEFdset].data_raw.slice(i*length_of_ECS_subtrace+beginning_of_ECS,
                                         (i+1)*length_of_ECS_subtrace+beginning_of_ECS);
		for (j = 0; j < length_of_ECS_subtrace; j++) {
    		ECS_averaged_trace[j]=ECS_averaged_trace[j]+temp[j];
    }}

//make up a time axis. the assumption is that all the points are equally spaced in time.
   var fake_time_axis = [];
	for (var i = 1; i <= length_of_ECS_subtrace; i++) {
      ii=i.toFixed(4);
   	fake_time_axis.push(i);
  }
  //Find the best fit line to the baseline points.
  	var reg=MathLINREG(fake_time_axis.slice(begining_of_subtrace_for_linear_fit, end_of_subtrace_for_linear_fit),ECS_averaged_trace.slice(begining_of_subtrace_for_linear_fit, end_of_subtrace_for_linear_fit));
  
  //Generate a line based on the baseline linear regression over the range of values for the full trace.   
  var baseline_offset=[];
  for (j = 0; j < length_of_ECS_subtrace; j++) {
    	jj=j.toFixed(4);
		baseline_offset.push(jj*MathROUND(reg.m, 3) + MathROUND(reg.b));
  }
  
  //output.baseline_offset=baseline_offset;
   //Calculate the deltaI/I0 and convertto approximate delta_A 
	for (j = 0; j < length_of_ECS_subtrace; j++) {
    var rat= ECS_averaged_trace[j]/baseline_offset[j];
	ECS_averaged_trace[j]=-1*MathLOG(rat); //((rat-1)/-2.3);
    }


ECS_averaged_trace[120]=ECS_averaged_trace[119]; //eliminate the spike artifact at end of trace

output.S="________________________ECS_DIRK_______________________________";

output.ECS_averaged_trace=ECS_averaged_trace.slice(80,150);

var begin_trace_index=100;
var end_trace_index=120;
var number_of_points_to_fit=end_trace_index-begin_trace_index;
var expData=ECS_averaged_trace.slice(begin_trace_index,end_trace_index);

// Here I assume that the time difference between points was constant

var time_per_point=1.5; //enter the delta time between points (only work with constant delta time) 

// Obtain best fit results for ECS decay using non-linear least squares fitting
var tdata=[];
for (i in expData) {
	tdata.push([i*time_per_point, expData[i]]);
}

var a = 1;
var b = 1;
var c = 1;
try{
	var fit = NonLinearRegression(tdata,{
	   equation: 'b + a * e(- x / c)',
	   initial: [ a, b, c ]
	});

	a= fit.parameters[0].value;
	b= fit.parameters[1].value;
	c = fit.parameters[2].value;

	var outdata=[];
	for (i in expData) {
		outdata.push(b + a*Math.exp(-1*i/c));
	}

	//output.fitinput=expData;
	//output.outdata=outdata;

	// Available for all parameters
	//output.p1_name = fit.parameters[0].name;
	output.ECSt_mAU = MathROUND(fit.parameters[0].value, 5);
	//output.offset = fit.parameters[1].value;
	output.tECS = MathROUND(0.001*fit.parameters[2].value, 4);
	output.gHplus = MathROUND(1000/fit.parameters[2].value, 3);
	var vHplus = output.ECSt_mAU *  output.gHplus;
	output.vHplus = MathROUND(vHplus, 3);

}
catch(e){}


//Calculaiton of the DIRK delta_P850 

  //output.data_raw_P700_DIRK = json.set[P700_DIRK_set].data_raw.slice(0,1420);
  //Get sum of all subtraces
  var i, j;
  for (i = 1; i < number_of_P700_DIRK_subtraces; i++) {
      var temp=json.set[P700_DIRK_set].data_raw.slice(i*length_of_P700_DIRK_subtrace+beginning_of_P700_DIRK,
                                         (i+1)*length_of_P700_DIRK_subtrace+beginning_of_P700_DIRK);
      
		for (j = 0; j < length_of_P700_DIRK_subtrace; j++) {
    		P700_DIRK_averaged_trace[j]=P700_DIRK_averaged_trace[j]+temp[j];
    }
  }

  //make up a time axis. the assumption is that all the points are equally spaced in time.
   var fake_time_axis = [];
	for (var i = 1; i <= length_of_P700_DIRK_subtrace; i++) {
      ii=i.toFixed(4);
   	fake_time_axis.push(i);
  }
  //Find the best fit line to the baseline points.
  	var reg=MathLINREG(fake_time_axis,P700_DIRK_averaged_trace);
  
  //Generate a line based on the baseline linear regression over the range of values for the full trace.   
  var baseline_offset=[];
  for (j = 0; j < length_of_P700_DIRK_subtrace; j++) {
    	jj=j.toFixed(4);
		baseline_offset.push(jj*MathROUND(reg.m, 3) + MathROUND(reg.b));
  }
  
	for (j = 0; j < length_of_P700_DIRK_subtrace; j++) {
    var rat= P700_DIRK_averaged_trace[j]/baseline_offset[j];
      
	P700_DIRK_averaged_trace[j]=-1*MathLOG(rat); //((rat-1)/-2.3);
    }

//replace the artifactual data at positon 120 with the prior value
//the point has no real value in the calculation, so this is just 
//a way to better visualize the results.

P700_DIRK_averaged_trace[100]=(P700_DIRK_averaged_trace[99]+P700_DIRK_averaged_trace[101])/2; 
P700_DIRK_averaged_trace[120]=(P700_DIRK_averaged_trace[119]+P700_DIRK_averaged_trace[121])/2; 

output.T="________________________P700_DIRK_______________________________";

output.P700_DIRK_averaged_trace=P700_DIRK_averaged_trace; //slice(P700_begining_of_subtrace_for_linear_fit, P700_end_of_subtrace_for_linear_fit);

var begin_trace_index=100;
var end_trace_index=120;
var number_of_points_to_fit=end_trace_index-begin_trace_index;
var P700expData=P700_DIRK_averaged_trace.slice(begin_trace_index,end_trace_index);

var P700_time_per_point=1.5; //entger the delta time between points (only work with constant delta time) 

// Obtain best fit results for P700 decay using non-linear least squares fitting
var P700tdata=[];
for (i in expData) {
	P700tdata.push([i*time_per_point, P700expData[i]]);
}


var a = 1;
var b = 1;
var c = 1;

try{
	var fit = NonLinearRegression(P700tdata,{
	   equation: 'b + a * e(- x / c)',
	   initial: [ a, b, c ]
	});

	a= fit.parameters[0].value;
	b= fit.parameters[1].value;
	c = fit.parameters[2].value;

	var P700_outdata=[];
	for (i in expData) {
		P700_outdata.push(b + a*Math.exp(-1*i/c));
	}

	//output.P700_fitinput=P700_outdata;
	//output.P700_outdata=outdata;

	// Available for all parameters
	output.P700_DIRK_ampl = MathROUND(a, 5);

	output.tP700 = MathROUND(0.001*c, 4);
	output.kP700 = MathROUND(1000/c, 4);
	var v_initial_P700 = output.P700_DIRK_ampl *  output.kP700;
	output.v_initial_P700 = MathROUND(v_initial_P700, 4);
}
catch(e){}

// Display the DIRKf results and calculate LEFd
output.U="______________________LEF_DIRK_____________________________";

  output.LEFd_trace = LEFd_trace;

  // Display of PAM result and calculation of the fluorescence parameters


output.V="__________________ENVIRONMENTAL_________________________";
/****************OUTPUT VALUES FROM MACRO *******************/


// Calculate Standard Deviation for Warning or Danger flags (out of bounds measurement)
// ----------------------------

if (Fs_std > 100	) {
//  	output.flag.danger.push("noisy Fs");
	output["danger 1"] = "noisy Fs";
}
if (AFmP_std > 200) {
//  	output.flag.danger.push("noisy FmPrime");
	output["danger 2"] = "noisy FmPrime";
}
if (FmP_step1_std > 60 | FmP_step2_std > 60 | FmP_step3_std > 60 | FmP_end_std > 200) {
//  	output.flag.danger.push("noisy multi-phase flash steps");
	output["danger 3"] = "noisy  multi-phase flash steps";
}
if (FoPrime_std > 150) {
//  	output.flag.danger.push("noisy FoPrime");
	output["danger 4"] = "noisy FoPrime";
}
  
// Humidity changes
    var humidity_kinetics=[
                        json.set[ECS_LEFdset].humidity,
                        json.set[P700_DIRK_set].humidity,
                        json.set[PAM_set].humidity
                       ];
  	//output.humidity_K=humidity_kinetics;
  	output.humidity_T=humidity_kinetics.join(", ");

    var humidity2_kinetics=[
                        json.set[ECS_LEFdset].humidity2,
                        json.set[P700_DIRK_set].humidity2,
                        json.set[PAM_set].humidity2
                       ];

	//output.humidity2_K=humidity2_kinetics;
  	output.humidity2_T=humidity2_kinetics.join(", ");


   // changes in leaf contactless_temp
  
    var air_temp_kinetics=[
                                json.set[ECS_LEFdset].temperature, 
                                json.set[P700_DIRK_set].temperature, 
                                json.set[PAM_set].temperature 
                       ];
    
     var contactless_temp_kinetics=[
                                json.set[ECS_LEFdset].contactless_temp,
                                json.set[P700_DIRK_set].contactless_temp,
                                json.set[PAM_set].contactless_temp
                       ];


  //output.air_temp_kinetics=air_temp_kinetics;
  
  //output.LEAF_temp=contactless_temp_kinetics;
  output.LEAF_temp=contactless_temp_kinetics.join(", ");

//var air_flow=new Array();

//for (var i=1; i<12 ; i++){
//  	air_flow.push(json.set[i].air_flow);
//}

//output.air_flow=air_flow;


  var ambient_temperature=json.set[2].temperature;
  output.ambient_temperature=ambient_temperature;
  //var leaf_RH=json.set[1].humidity2;
  //output.leaf_RH=MathROUND(leaf_RH, 2);
  leaf_temperature = json.set[ECS_LEFdset].contactless_temp;
  output.leaf_temperature=leaf_temperature;
  var leaf_air_difference_temperature = leaf_temperature-ambient_temperature;
  output.leaf_air_difference_temperature=MathROUND(leaf_air_difference_temperature,3);


output.W="___________________ABSORBANCE_&_SPAD________________________";

// CALCULATIONS FOR ABSORBANCE / SPAD PORTION OF THE TRACE
//----------------------------
var abs_starts = 0; //1180; // when does the Phi2 measurement start
var data = json.set[SPAD_set].data_raw;
var lights = [1,2,3,4,6,8,9,10];// define the lights to have absorbance measured
var wavelengths = ["530","650","605","420","940","850","730","880"];// define the lights to have absorbance measured
var raw_at_blank1 = [0,0,0,0,0,0,0,0];
var raw_at_blank2 = [0,0,0,0,0,0,0,0];
var raw_at_blank3 = [0,0,0,0,0,0,0,0];
var abs_at_blank1 = [0,0,0,0,0,0,0,0];
var abs_at_blank2 = [0,0,0,0,0,0,0,0];
var abs_at_blank3 = [0,0,0,0,0,0,0,0];
var trans_at_blank1 = [0,0,0,0,0,0,0,0];
var trans_at_blank2 = [0,0,0,0,0,0,0,0];
var trans_at_blank3 = [0,0,0,0,0,0,0,0];
var spad_at_blank1 = [0,0,0,0,0,0,0,0];
var spad_at_blank2 = [0,0,0,0,0,0,0,0];
var spad_at_blank3 = [0,0,0,0,0,0,0,0];
var minolta_spad1 = 0;
var minolta_spad2 = 0;
var minolta_spad3 = 0;
var minolta_spad = 0;
var minolta_spad_averages = 0;
var choose = 0;
var light;
var wavelengthString;
var pulses = 10;// number of pulses in a cycle

/* // this is what the recall object looks like --> 
"recall":{"colorcal_blank1[1]":0.000000,"colorcal_blank1[2]":0.000000,"colorcal_blank1[3]":0.000000,"colorcal_blank1[4]":0.00000
0,"colorcal_blank1[6]":0.000000,"colorcal_blank1[8]":0.000000,"colorcal_blank1[9]":0.000000,"colorcal_blank1[10]":0.000000,"colo
rcal_blank2[1]":0.000000,"colorcal_blank2[2]":0.000000,"colorcal_blank2[3]":0.000000,"colorcal_blank2[4]":0.000000,"colorcal_bla
nk2[6]":0.000000,"colorcal_blank2[8]":0.000000,"colorcal_blank2[9]":0.000000,"colorcal_blank2[10]":0.000000,"colorcal_blank3[1]"
:0.000000,"colorcal_blank3[2]":0.000000,"colorcal_blank3[3]":0.000000,"colorcal_blank3[4]":0.000000,"colorcal_blank3[6]":0.00000
0,"colorcal_blank3[8]":0.000000,"colorcal_blank3[9]":0.000000,"colorcal_blank3[10]":0.000000},
*/

/*
** Loop through the lights.  If it's zero, skip it.  If it's not in the acceptable range (>500 but <65534 (max)) skip it.
** Then choose the first blank (starting with 1 moving to 3) which fulfills this criteria
** Otherwise, calculate absorbance and transmittance and a 'spad'-like value using LED 6 (940 on clamp) to calibrate thickness
*/
//----------------------------
for (var i = 0;i<lights.length;i++) { // loop through and save one averaged 'point' for each of the cycles
  light = lights[i]; //json.set[PAM_set].data_raw[1];
  wavelengthString = wavelengths[i];                                                    
  //var value1 = MathMEDIAN(json.set[PAM_set].data_raw.slice((abs_starts + i*pulses+2),(abs_starts + i*pulses+8)));
  var value1 = MathMEDIAN(json.set[SPAD_set].data_raw.slice((abs_starts + i*pulses+2),(abs_starts + i*pulses+8)));
  var value2 = MathMEDIAN(json.set[SPAD_set].data_raw.slice((abs_starts + i*pulses+82),(abs_starts + i*pulses+88)));
  var value3 = MathMEDIAN(json.set[SPAD_set].data_raw.slice((abs_starts + i*pulses+162),(abs_starts + i*pulses+168)));
  raw_at_blank1[light] = value1;
  raw_at_blank2[light] = value2;
  raw_at_blank3[light] = value3;
  
// output.value1=value1;
// output.value2=value2;
// output.value3=value3;
  
// output.lights_length=lights.length;
 raw_at_blank1[light] = value1;
 raw_at_blank2[light] = value2;
 raw_at_blank3[light] = value3;
  
  if (json.set[calib_set].recall["colorcal_blank1["+light+"]"] != 0 && raw_at_blank1[light] > 500 && raw_at_blank1[light] < 65534) {
    abs_at_blank1[light] = MathROUND(-1*MathLOG(raw_at_blank1[light]/json.set[calib_set].recall["colorcal_blank1["+light+"]"]),3);
//    trans_at_blank1[light] = MathROUND(raw_at_blank1[light]/json.set[calib_set].recall["colorcal_blank1["+light+"]"],3);
//	output ["light".concat(light.toString(),"_transmittance")]  = trans_at_blank1[light];
    output ["absorbance_".concat(wavelengthString)]  = abs_at_blank1[light];
//	output ["light".concat(light.toString(),"_blank1")]  = json.set[calib_set].recall["colorcal_blank1["+light+"]"];
  }
  
}

//output.test= json.set[12].data_raw; //MathMEAN(json.set[PAM_set].data_raw.slice(10,20)); //(abs_starts + i*pulses+2),(abs_starts + i*pulses+8)));

// so the raw value needs to be >~2000, while the 940 needs to be greater than ~5000, otherwise it's out of range
// the acceptable range is different for each blank (1,2,3) thus a separate if statement for each blank.
// once you hit an intensity which is within the acceptable range, then keep that value and skip the rest


for (var i = 0;i<8;i++) { // loop through and save one averaged SPAD value for each of the cycles.  If we have additional calibration values (like minolta spad) use those and output that value
  light = lights[i];
  wavelengthString = wavelengths[i];
  spad_at_blank2[light] = MathROUND(100*MathLOG((raw_at_blank2[6] / json.set[calib_set].recall["colorcal_blank2[6]"])/(raw_at_blank2[light] / json.set[calib_set].recall["colorcal_blank2["+light+"]"])),2);
  spad_at_blank1[light] = MathROUND(100*MathLOG((raw_at_blank1[6] / json.set[calib_set].recall["colorcal_blank1[6]"])/(raw_at_blank1[light] / json.set[calib_set].recall["colorcal_blank1["+light+"]"])),2);
  spad_at_blank3[light] = MathROUND(100*MathLOG((raw_at_blank3[6] / json.set[calib_set].recall["colorcal_blank3[6]"])/(raw_at_blank3[light] / json.set[calib_set].recall["colorcal_blank3["+light+"]"])),2);
  if (light == 2) { // if it's the red light, the also calculate minolta spad
    //output ["light".concat(light.toString(),"_raw1")]  = raw_at_blank1[light];
    //output ["light6_raw1"]  = raw_at_blank1[6];
    //output ["spad_raw1"]  = spad_at_blank1[2];
    //output ["light".concat(light.toString(),"_raw2")]  = raw_at_blank2[light];
    //output ["light6_raw2"]  = raw_at_blank2[6];
    //output ["spad_raw2"]  = spad_at_blank2[2];
    //output ["light".concat(light.toString(),"_raw3")]  = raw_at_blank3[light];
    //output ["light6_raw3"]  = raw_at_blank3[6];
    //output ["spad_raw3"]  = spad_at_blank3[2];
  }
                                                                
  if (json.set[calib_set].recall["colorcal_blank1["+light+"]"] != 0 && raw_at_blank1[light] > 30 && raw_at_blank1[light] < 65534 
      && raw_at_blank1[6] > 4500 && raw_at_blank1[6] < 65534) {
    if (light == 2) { // if it's the red light, the also calculate minolta spad
      minolta_spad = (spad_at_blank1[2] - json.set[calib_set].recall["colorcal_intensity1_yint[2]"]) / json.set[calib_set].recall["colorcal_intensity1_slope[2]"];	
      //output ["SPAD_".concat(wavelengthString)]  = MathROUND(minolta_spad,2);
      //output ["SPAD_".concat(wavelengthString,"_intensity")]  = 1;
        choose = 1;
      continue;
    }
    else if (light != 6) {
      //output ["SPAD_".concat(wavelengthString)] = MathROUND(spad_at_blank1[light],2);
      //output ["SPAD_".concat(wavelengthString,"_intensity")] = 1;
//      output ["SPAD1_".concat(wavelengthString)] = MathROUND(spad_at_blank1[light],2);
//      output ["SPAD1_".concat(wavelengthString,"_intensity")] = 1;
      continue;
    }
  }
  if (json.set[calib_set].recall["colorcal_blank2["+light+"]"] != 0 && raw_at_blank2[light] > 500 && raw_at_blank2[light] < 65534 
      && raw_at_blank2[6] > 3000 && raw_at_blank2[6] < 65534) {
    if (light == 2) { // if it's the red light, the also calculate minolta spad
      minolta_spad = (spad_at_blank2[2] - json.set[calib_set].recall["colorcal_intensity2_yint[2]"]) / json.set[calib_set].recall["colorcal_intensity2_slope[2]"];
      //output ["SPAD_".concat(wavelengthString)] = MathROUND(minolta_spad,2);
      //output ["SPAD_".concat(wavelengthString,"_intensity")] = 2;
        choose = 2;
      continue;
    }
    else if (light != 6) {
      //output ["SPAD_".concat(wavelengthString)] = MathROUND(spad_at_blank2[light],2);
      //output ["SPAD_".concat(wavelengthString,"_intensity")] = 2;
//      output ["SPAD2_".concat(wavelengthString)] = MathROUND(spad_at_blank2[light],2);
//      output ["SPAD2_".concat(wavelengthString,"_intensity")] = 2;
      continue;
    }
  }

  output.SPAD=MathROUND(minolta_spad, 2);
  if (json.set[calib_set].recall["colorcal_blank3["+light+"]"] != 0 && raw_at_blank3[light] > 750 && raw_at_blank3[light] < 65534 
      && raw_at_blank3[6] > 3000 && raw_at_blank3[6] < 65534) {
    if (light == 2) { // if it's the red light, the also calculate minolta spad
      minolta_spad = (spad_at_blank3[2] - json.set[calib_set].recall["colorcal_intensity3_yint[2]"]) / json.set[calib_set].recall["colorcal_intensity3_slope[2]"];
      //output ["SPAD_".concat(wavelengthString)]  = MathROUND(minolta_spad,2);
      //output ["SPAD_".concat(wavelengthString,"_intensity")]  = 3;
      choose = 3;
      continue;
    }
    else if (light != 6) {
      //output ["SPAD_".concat(wavelengthString)] = MathROUND(spad_at_blank3[light],2);
      //output ["SPAD_".concat(wavelengthString,"_intensity")] = 3;
//      output ["SPAD3_".concat(wavelengthString)] = MathROUND(spad_at_blank3[light],2);
//      output ["SPAD3_".concat(wavelengthString,"_intensity")] = 3;
      continue;
    }
  }
}

if (choose == 0) {
//  output ["SPAD_650"]  = 0;
  danger("Chlorophyll content SPAD is outside the acceptable range.  The leaf may be too thick, too thin, or have holes in it.", output);
}
else if (minolta_spad <= 2) {
  danger("Chlorophyll Content SPAD is very low.  If leaf is visibly green, ensure leaf completely covers the light guide and retry.  If still too low, consider recalibrating device.", output);
}
else if (minolta_spad >= 100) {
  danger("Chlorophyll Content SPAD is very high.  If this value is associated with a typical leaf, consider recalibrating device.", output);
}

output.X="___________________LEAF_THICKNESS_______________________";

//output.thick2=json.set[ECS_LEFdset].thickness;
//output.thick3=json.set[PAM_set].thickness;
output.leaf_thickness=json.set[calib_set].thickness;

output["order"] = ["Phi2", "high_Phi2", "light_intensity", "LEF", "high_LEF", "NPQt", "SPAD", "PSI_act", "PSI_open", "tP700", "PSI_or", "PSI_ox", "ambient_temperture"];
//output.LEF=output.light_intensity *output.Phi2;

return output;
{
  "time": 1514332810590,
  "device_name": "MultispeQ",
  "device_version": "1",
  "device_id": "01:12:37:34",
  "device_battery": 98,
  "device_firmware": 1.252,
  "sample": [
    [
      {
        "time": 1514332810590,
        "protocol_id": 1,
        "set": [
          {
            "time": 1514332810600,
            "label": "no_leaf_baseline",
            "light_intensity": 130.884,
            "r": 154,
            "g": 92,
            "b": 50,
            "light_intensity_raw": 292,
            "w": 51374,
            "temperature": 28.5,
            "humidity": 12.188,
            "pressure": 998.544,
            "temperature2": 28.46,
            "humidity2": 13.272,
            "pressure2": 999.802,
            "contactless_temp": 27.71,
            "compass_direction": "E",
            "compass": 90,
            "angle": 1.96,
            "angle_direction": "E",
            "pitch": 0.19,
            "roll": 1.95,
            "data_raw": [

            ]
          },
          {
            "time": 1514332813042,
            "label": "DIRK_ECS",
            "light_intensity": 677.226,
            "r": 807,
            "g": 484,
            "b": 265,
            "light_intensity_raw": 1536,
            "w": 239395,
            "temperature": 28.5,
            "humidity": 12.143,
            "pressure": 998.538,
            "temperature2": 28.45,
            "humidity2": 13.227,
            "pressure2": 999.831,
            "contactless_temp": 27.39,
            "thickness": 0.16,
            "data_raw": [
              49059,
              49025,
              49031,
              49033,
              49031,
              49027,
              49033,
              49030,
              49035,
              49034,
              49031,
              49033,
              49033,
              49042,
              49031,
              49039,
              49037,
              49033,
              49043,
              49046,
              49036,
              49031,
              49043,
              49038,
              49031,
              49041,
              49033,
              49033,
              49045,
              49042,
              49033,
              49041,
              49041,
              49032,
              49042,
              49044,
              49043,
              49045,
              49046,
              49043,
              49045,
              49042,
              49036,
              49041,
              49045,
              49035,
              49037,
              49042,
              49037,
              49037,
              49044,
              49048,
              49038,
              49049,
              49048,
              49039,
              49043,
              49048,
              49040,
              49043,
              49043,
              49040,
              49043,
              49046,
              49043,
              49041,
              49046,
              49054,
              49047,
              49055,
              49057,
              49055,
              49055,
              49057,
              49047,
              49055,
              49059,
              49053,
              49054,
              49050,
              49051,
              49043,
              49051,
              49046,
              49043,
              49046,
              49046,
              49039,
              49045,
              49043,
              49043,
              49050,
              49047,
              49037,
              49042,
              49042,
              49037,
              49039,
              49046,
              49039,
              49037,
              49043,
              49046,
              49043,
              49044,
              49044,
              49040,
              49047,
              49043,
              49041,
              49043,
              49050,
              49047,
              49049,
              49051,
              49046,
              49047,
              49048,
              49047,
              49051,
              49051,
              49051,
              49044,
              49054,
              49052,
              49046,
              49051,
              49047,
              49049,
              49045,
              49053,
              49048,
              49054,
              49055,
              49047,
              49054,
              49055,
              49061,
              49043,
              49053,
              49054,
              49051,
              49053,
              49058,
              49050,
              49055,
              49058,
              49059,
              49060,
              49063,
              49063,
              49061,
              49063,
              49055,
              49046,
              49047,
              49051,
              49046,
              49055,
              49059,
              49051,
              49060,
              49054,
              49051,
              49050,
              49060,
              49051,
              49051,
              49061,
              49055,
              49057,
              49059,
              49063,
              49050,
              49060,
              49058,
              49047,
              49051,
              49055,
              49053,
              49060,
              49047,
              49045,
              49063,
              49063,
              49059,
              49056,
              49063,
              49063,
              49063,
              49070,
              49070,
              49061,
              49067,
              49067,
              49058,
              49057,
              49055,
              49047,
              49057,
              49063,
              49075,
              49088,
              49093,
              49101,
              49101,
              49107,
              49120,
              49114,
              49124,
              49135,
              49133,
              49143,
              49147,
              49139,
              49146,
              49151,
              49155,
              49163,
              49153,
              49159,
              49109,
              49102,
              49090,
              49077,
              49082,
              49083,
              49061,
              49060,
              49060,
              49049,
              49048,
              49055,
              49047,
              49050,
              49054,
              49043,
              49046,
              49051,
              49046,
              49051,
              49056,
              49049,
              49043,
              49043,
              49042,
              49037,
              49043,
              49047,
              49034,
              49045,
              49048,
              49045,
              49044,
              49049,
              49043,
              49052,
              49050,
              49041,
              49035,
              49035,
              49043,
              49037,
              49045,
              49039,
              49040,
              49048,
              49057,
              49041,
              49050,
              49055,
              49041,
              49050,
              49053,
              49046,
              49040,
              49055,
              49053,
              49049,
              49059,
              49055,
              49048,
              49056,
              49059,
              49042,
              49047,
              49046,
              49042,
              49047,
              49046,
              49042,
              49048,
              49046,
              49043,
              49051,
              49055,
              49060,
              49047,
              49047,
              49049,
              49047,
              49043,
              49051,
              49040,
              49051,
              49051,
              49045,
              49046,
              49054,
              49055,
              49054,
              49051,
              49053,
              49039,
              49046,
              49057,
              49049,
              49062,
              49057,
              49056,
              49067,
              49063,
              49052,
              49067,
              49061,
              49059,
              49055,
              49057,
              49055,
              49053,
              49061,
              49062,
              49058,
              49071,
              49069,
              49063,
              49068,
              49063,
              49059,
              49067,
              49063,
              49055,
              49055,
              49070,
              49063,
              49071,
              49067,
              49069,
              49059,
              49064,
              49067,
              49057,
              49064,
              49069,
              49073,
              49078,
              49071,
              49065,
              49071,
              49066,
              49059,
              49062,
              49063,
              49054,
              49057,
              49067,
              49073,
              49072,
              49077,
              49067,
              49063,
              49070,
              49070,
              49057,
              49063,
              49082,
              49071,
              49073,
              49069,
              49057,
              49069,
              49067,
              49063,
              49059,
              49066,
              49076,
              49071,
              49078,
              49075,
              49063,
              49069,
              49076,
              49061,
              49077,
              49068,
              49063,
              49065,
              49071,
              49066,
              49062,
              49067,
              49067,
              49055,
              49063,
              49065,
              49062,
              49073,
              49076,
              49071,
              49069,
              49069,
              49060,
              49062,
              49067,
              49059,
              49061,
              49063,
              49066,
              49071,
              49074,
              49077,
              49077,
              49098,
              49108,
              49103,
              49116,
              49125,
              49121,
              49125,
              49125,
              49126,
              49131,
              49134,
              49147,
              49147,
              49163,
              49163,
              49159,
              49162,
              49165,
              49171,
              49122,
              49103,
              49083,
              49078,
              49067,
              49071,
              49071,
              49066,
              49059,
              49051,
              49055,
              49047,
              49039,
              49045,
              49051,
              49055,
              49053,
              49057,
              49038,
              49047,
              49051,
              49031,
              49039,
              49047,
              49047,
              49045,
              49047,
              49035,
              49038,
              49043,
              49034,
              49030,
              49055,
              49049,
              49042,
              49043,
              49047,
              49038,
              49040,
              49039,
              49036,
              49041,
              49053,
              49035,
              49041,
              49035,
              49029,
              49039,
              49053,
              49050,
              49046,
              49046,
              49047,
              49034,
              49043,
              49043,
              49040,
              49055,
              49050,
              49041,
              49049,
              49047,
              49036,
              49031,
              49041,
              49039,
              49047,
              49058,
              49055,
              49041,
              49047,
              49053,
              49039,
              49047,
              49054,
              49051,
              49058,
              49052,
              49047,
              49044,
              49048,
              49038,
              49042,
              49047,
              49041,
              49039,
              49051,
              49051,
              49054,
              49062,
              49060,
              49043,
              49049,
              49055,
              49049,
              49052,
              49055,
              49041,
              49045,
              49046,
              49051,
              49047,
              49056,
              49057,
              49044,
              49053,
              49057,
              49042,
              49049,
              49054,
              49047,
              49048,
              49057,
              49055,
              49057,
              49055,
              49050,
              49047,
              49051,
              49049,
              49044,
              49051,
              49052,
              49037,
              49044,
              49046,
              49042,
              49051,
              49059,
              49052,
              49049,
              49057,
              49042,
              49047,
              49054,
              49048,
              49043,
              49052,
              49052,
              49044,
              49047,
              49046,
              49034,
              49051,
              49048,
              49049,
              49063,
              49066,
              49057,
              49055,
              49055,
              49047,
              49043,
              49053,
              49051,
              49046,
              49053,
              49050,
              49041,
              49050,
              49051,
              49040,
              49047,
              49053,
              49046,
              49054,
              49055,
              49051,
              49057,
              49063,
              49059,
              49062,
              49057,
              49061,
              49048,
              49061,
              49063,
              49048,
              49054,
              49061,
              49047,
              49047,
              49055,
              49046,
              49055,
              49059,
              49055,
              49051,
              49062,
              49062,
              49057,
              49064,
              49057,
              49054,
              49062,
              49058,
              49045,
              49059,
              49062,
              49054,
              49075,
              49084,
              49083,
              49107,
              49112,
              49107,
              49106,
              49127,
              49123,
              49121,
              49127,
              49147,
              49131,
              49139,
              49150,
              49147,
              49151,
              49157,
              49146,
              49161,
              49097,
              49090,
              49082,
              49082,
              49073,
              49066,
              49071,
              49057,
              49050,
              49061,
              49050,
              49047,
              49059,
              49051,
              49038,
              49042,
              49043,
              49041,
              49042,
              49044,
              49044,
              49051,
              49046,
              49041,
              49039,
              49043,
              49037,
              49043,
              49048,
              49044,
              49041,
              49045,
              49047,
              49035,
              49039,
              49038,
              49035,
              49039,
              49045,
              49046,
              49050,
              49051,
              49049,
              49043,
              49043,
              49043,
              49039,
              49042,
              49050,
              49033,
              49046,
              49054,
              49049,
              49058,
              49053,
              49046,
              49051,
              49051,
              49046,
              49043,
              49051,
              49045,
              49042,
              49049,
              49051,
              49051,
              49060,
              49059,
              49051,
              49059,
              49063,
              49049,
              49054,
              49057,
              49049,
              49059,
              49053,
              49042,
              49041,
              49049,
              49045,
              49049,
              49059,
              49056,
              49058,
              49067,
              49065,
              49063,
              49066,
              49065,
              49063,
              49068,
              49068,
              49063,
              49063,
              49068,
              49053,
              49063,
              49061,
              49060,
              49055,
              49063,
              49065,
              49046,
              49058,
              49063,
              49062,
              49071,
              49074,
              49060,
              49063,
              49063,
              49060,
              49067,
              49063,
              49058,
              49059,
              49067,
              49064,
              49061,
              49067,
              49053,
              49047,
              49063,
              49069,
              49069,
              49074,
              49076,
              49063,
              49067,
              49063,
              49059,
              49066,
              49064,
              49065,
              49060,
              49063,
              49065,
              49071,
              49078,
              49067,
              49061,
              49069,
              49071,
              49059,
              49063,
              49076,
              49073,
              49076,
              49074,
              49065,
              49062,
              49073,
              49060,
              49061,
              49066,
              49063,
              49062,
              49082,
              49075,
              49063,
              49070,
              49071,
              49065,
              49065,
              49073,
              49062,
              49071,
              49063,
              49066,
              49071,
              49081,
              49077,
              49078,
              49079,
              49072,
              49071,
              49076,
              49074,
              49060,
              49070,
              49081,
              49072,
              49066,
              49083,
              49074,
              49069,
              49079,
              49071,
              49063,
              49083,
              49075,
              49078,
              49079,
              49071,
              49069,
              49078,
              49075,
              49065,
              49082,
              49109,
              49109,
              49119,
              49127,
              49121,
              49128,
              49134,
              49126,
              49130,
              49139,
              49143,
              49152,
              49170,
              49161,
              49147,
              49169,
              49170,
              49174,
              49183,
              49203,
              49127,
              49109,
              49103,
              49092,
              49085,
              49089,
              49084,
              49080,
              49077,
              49071,
              49067,
              49069,
              49066,
              49054,
              49061,
              49067,
              49067,
              49075,
              49073,
              49062,
              49059,
              49065,
              49061,
              49057,
              49071,
              49060,
              49051,
              49070,
              49062,
              49057,
              49061,
              49063,
              49055,
              49055,
              49073,
              49065,
              49063,
              49065,
              49059,
              49063,
              49065,
              49055,
              49054,
              49065,
              49061,
              49068,
              49062,
              49060,
              49060,
              49067,
              49069,
              49063,
              49065,
              49066,
              49055,
              49062,
              49067,
              49061,
              49075,
              49074,
              49068,
              49071,
              49075,
              49071,
              49066,
              49071,
              49062,
              49070,
              49072,
              49075,
              49065,
              49070,
              49067,
              49062,
              49071,
              49082,
              49074,
              49078,
              49073,
              49065,
              49069,
              49074,
              49067,
              49059,
              49079,
              49078,
              49071,
              49073,
              49084,
              49072,
              49072,
              49075,
              49076,
              49079,
              49085,
              49071,
              49063,
              49075,
              49069,
              49067,
              49073,
              49087,
              49083,
              49087,
              49084,
              49083,
              49087,
              49087,
              49067,
              49081,
              49078,
              49075,
              49074,
              49074,
              49076,
              49086,
              49092,
              49083,
              49079,
              49087,
              49082,
              49078,
              49079,
              49087,
              49081,
              49082,
              49087,
              49083,
              49092,
              49095,
              49092,
              49093,
              49090,
              49083,
              49081,
              49085,
              49083,
              49081,
              49086,
              49073,
              49076,
              49082,
              49098,
              49083,
              49094,
              49095,
              49084,
              49086,
              49090,
              49083,
              49082,
              49086,
              49082,
              49071,
              49079,
              49075,
              49086,
              49098,
              49095,
              49095,
              49093,
              49095,
              49085,
              49090,
              49091,
              49078,
              49087,
              49089,
              49079,
              49083,
              49087,
              49090,
              49095,
              49097,
              49095,
              49089,
              49091,
              49095,
              49087,
              49089,
              49097,
              49091,
              49090,
              49091,
              49087,
              49086,
              49087,
              49087,
              49093,
              49094,
              49095,
              49094,
              49095,
              49095,
              49085,
              49091,
              49095,
              49087,
              49090,
              49095,
              49093,
              49112,
              49127,
              49131,
              49145,
              49153,
              49150,
              49143,
              49157,
              49154,
              49163,
              49164,
              49175,
              49175,
              49189,
              49196,
              49190,
              49192,
              49192,
              49213,
              49150,
              49129,
              49107,
              49095,
              49105,
              49101,
              49101,
              49096,
              49094,
              49087,
              49089,
              49089,
              49071,
              49078,
              49078,
              49070,
              49087,
              49087,
              49079,
              49075,
              49078,
              49071,
              49071,
              49074,
              49065,
              49068,
              49079,
              49075,
              49072,
              49085,
              49086,
              49071,
              49077,
              49086,
              49073,
              49081,
              49074,
              49067,
              49074,
              49087,
              49079,
              49081,
              49075,
              49077,
              49079,
              49077,
              49079,
              49073,
              49083,
              49079,
              49073,
              49075,
              49081,
              49075,
              49084,
              49093,
              49085,
              49087,
              49089,
              49080,
              49086,
              49087,
              49077,
              49075,
              49087,
              49082,
              49079,
              49086,
              49083,
              49075,
              49082,
              49095,
              49089,
              49095,
              49094,
              49090,
              49088,
              49092,
              49075,
              49090,
              49089,
              49082,
              49078,
              49087,
              49091,
              49092,
              49099,
              49103,
              49091,
              49091,
              49093,
              49087,
              49090,
              49082,
              49082,
              49086,
              49094,
              49092,
              49089,
              49095,
              49098,
              49095,
              49101,
              49099,
              49091,
              49098,
              49095,
              49091,
              49095,
              49095,
              49090,
              49091,
              49090,
              49080,
              49085,
              49095,
              49087,
              49098,
              49102,
              49098,
              49100,
              49105,
              49106,
              49098,
              49103,
              49106,
              49099,
              49096,
              49098,
              49095,
              49091,
              49099,
              49089,
              49091,
              49097,
              49093,
              49085,
              49095,
              49095,
              49093,
              49103,
              49108,
              49107,
              49114,
              49110,
              49099,
              49107,
              49105,
              49095,
              49093,
              49095,
              49095,
              49098,
              49109,
              49109,
              49106,
              49107,
              49108,
              49099,
              49109,
              49111,
              49095,
              49109,
              49105,
              49091,
              49099,
              49103,
              49095,
              49109,
              49111,
              49106,
              49105,
              49107,
              49107,
              49105,
              49110,
              49107,
              49094,
              49107,
              49110,
              49091,
              49102,
              49101,
              49100,
              49114,
              49115,
              49106,
              49103,
              49109,
              49105,
              49105,
              49109,
              49107,
              49100,
              49095,
              49109,
              49099,
              49107,
              49118,
              49109,
              49127,
              49141,
              49138,
              49143,
              49163,
              49161,
              49156,
              49167,
              49167,
              49166,
              49181,
              49195,
              49191,
              49199,
              49205,
              49198,
              49204,
              49207,
              49199,
              49230,
              49153,
              49127,
              49121,
              49122,
              49110,
              49116,
              49115,
              49111,
              49101,
              49107,
              49106,
              49095,
              49101,
              49103,
              49091,
              49091,
              49089,
              49077,
              49083,
              49089,
              49093,
              49095,
              49095,
              49092,
              49090,
              49091,
              49092,
              49091,
              49092,
              49095,
              49082,
              49087,
              49086,
              49081,
              49087,
              49093,
              49092,
              49093,
              49099,
              49087,
              49088,
              49093,
              49088,
              49091,
              49088,
              49090,
              49083,
              49094,
              49106,
              49096,
              49100,
              49097,
              49093,
              49095,
              49095,
              49088,
              49089,
              49095,
              49091,
              49102,
              49104,
              49104,
              49093,
              49099,
              49100,
              49093,
              49103,
              49095,
              49089,
              49094,
              49095,
              49095,
              49098,
              49099,
              49093,
              49097,
              49107,
              49102,
              49103,
              49109,
              49111,
              49099,
              49105,
              49105,
              49095,
              49104,
              49102,
              49098,
              49099,
              49101,
              49095,
              49096,
              49095,
              49099,
              49103,
              49111,
              49109,
              49099,
              49103,
              6831,
              6825,
              6825,
              6826,
              6823,
              6828,
              6826,
              6823,
              6823,
              6823,
              6821,
              6821,
              6825,
              6824,
              6819,
              6824,
              6826,
              6823,
              6823,
              6825,
              6818,
              6823,
              6823,
              6821,
              6823,
              6825,
              6816,
              6818,
              6823,
              6819,
              6819,
              6821,
              6821,
              6815,
              6823,
              6821,
              6817,
              6818,
              6821,
              6817,
              6823,
              6823,
              6817,
              6815,
              6820,
              6816,
              6815,
              6817,
              6816,
              6811,
              6821,
              6816,
              6814,
              6815,
              6817,
              6810,
              6816,
              6817,
              6815,
              6820,
              6813,
              6810,
              6812,
              6815,
              6810,
              6811,
              6814,
              6812,
              6807,
              6814,
              6818,
              6811,
              6814,
              6811,
              6809,
              6815,
              6812,
              6806,
              6812,
              6813,
              6807,
              6807,
              6811,
              6807,
              6804,
              6811,
              6810,
              6806,
              6810,
              6809,
              6802,
              6809,
              6813,
              6803,
              6807,
              6807,
              6803,
              6807,
              6807,
              6804,
              6741,
              6679,
              6610,
              6559,
              6518,
              6471,
              6420,
              6389,
              6350,
              6309,
              6278,
              6245,
              6203,
              6174,
              6142,
              6104,
              6081,
              6051,
              6013,
              5992,
              6262,
              6362,
              6445,
              6502,
              6535,
              6567,
              6595,
              6615,
              6627,
              6648,
              6659,
              6665,
              6687,
              6693,
              6696,
              6705,
              6713,
              6714,
              6725,
              6727,
              6727,
              6735,
              6737,
              6738,
              6745,
              6750,
              6751,
              6749,
              6753,
              6759,
              6758,
              6761,
              6763,
              6761,
              6767,
              6769,
              6766,
              6773,
              6773,
              6766,
              6768,
              6774,
              6773,
              6771,
              6774,
              6778,
              6771,
              6780,
              6780,
              6776,
              6781,
              6783,
              6775,
              6782,
              6785,
              6777,
              6783,
              6782,
              6779,
              6781,
              6785,
              6780,
              6778,
              6788,
              6787,
              6780,
              6786,
              6787,
              6777,
              6786,
              6785,
              6783,
              6787,
              6782,
              6779,
              6787,
              6784,
              6778,
              6783,
              6785,
              6782,
              6781,
              6786,
              6785,
              6781,
              6785,
              6785,
              6781,
              6786,
              6786,
              6775,
              6787,
              6784,
              6782,
              6787,
              6785,
              6781,
              6779,
              6780,
              6780
            ]
          },
          {
            "time": 1514332820571,
            "label": "DIRK_P700",
            "light_intensity": 677.2,
            "r": 807,
            "g": 484,
            "b": 265,
            "light_intensity_raw": 1536,
            "temperature": 28.51,
            "humidity": 12.143,
            "pressure": 998.573,
            "temperature2": 28.45,
            "humidity2": 13.158,
            "pressure2": 999.841,
            "contactless_temp": 27.57,
            "compass_direction": "E",
            "compass": 90,
            "angle": 1.323,
            "angle_direction": "S",
            "pitch": 1.32,
            "roll": 0,
            "data_raw": [
              46637,
              46562,
              46496,
              46467,
              46446,
              46435,
              46434,
              46438,
              46434,
              46422,
              46415,
              46417,
              46418,
              46407,
              46399,
              46425,
              46427,
              46398,
              46405,
              46430,
              46395,
              46393,
              46398,
              46389,
              46402,
              46405,
              46399,
              46405,
              46417,
              46415,
              46391,
              46398,
              46376,
              46398,
              46413,
              46383,
              46406,
              46391,
              46393,
              46382,
              46411,
              46399,
              46408,
              46407,
              46385,
              46395,
              46385,
              46387,
              46407,
              46379,
              46391,
              46386,
              46377,
              46389,
              46371,
              46400,
              46391,
              46397,
              46393,
              46405,
              46376,
              46400,
              46413,
              46368,
              46391,
              46383,
              46374,
              46401,
              46386,
              46391,
              46385,
              46413,
              46397,
              46380,
              46384,
              46367,
              46395,
              46387,
              46375,
              46399,
              46381,
              46395,
              46378,
              46395,
              46383,
              46417,
              46407,
              46382,
              46418,
              46391,
              46405,
              46382,
              46414,
              46377,
              46373,
              46402,
              46391,
              46369,
              46381,
              46407,
              46385,
              46387,
              46373,
              46383,
              46374,
              46399,
              46394,
              46385,
              46367,
              46373,
              46385,
              46381,
              46377,
              46407,
              46383,
              46381,
              46375,
              46375,
              46387,
              46381,
              46386,
              46375,
              46386,
              46395,
              46385,
              46380,
              46368,
              46377,
              46358,
              46379,
              46381,
              46375,
              46355,
              46351,
              46375,
              46366,
              46386,
              46371,
              46391,
              46378,
              46383,
              46369,
              46354,
              46370,
              46367,
              46365,
              46352,
              46398,
              46407,
              46404,
              46382,
              46382,
              46382,
              46367,
              46396,
              46397,
              46378,
              46392,
              46379,
              46377,
              46374,
              46365,
              46372,
              46407,
              46387,
              46378,
              46376,
              46402,
              46407,
              46389,
              46405,
              46391,
              46383,
              46405,
              46377,
              46384,
              46392,
              46374,
              46391,
              46391,
              46403,
              46397,
              46408,
              46377,
              46413,
              46413,
              46384,
              46374,
              46403,
              46407,
              46383,
              46373,
              46380,
              46371,
              46377,
              46407,
              46365,
              46381,
              46402,
              46397,
              46344,
              46378,
              46406,
              46413,
              46435,
              46433,
              46429,
              46437,
              46428,
              46431,
              46445,
              46419,
              46427,
              46457,
              46447,
              46479,
              46443,
              46438,
              46434,
              46439,
              46947,
              46441,
              46440,
              46409,
              46410,
              46415,
              46386,
              46387,
              46379,
              46400,
              46399,
              46425,
              46403,
              46389,
              46404,
              46387,
              46389,
              46387,
              46401,
              46390,
              46396,
              46386,
              46370,
              46363,
              46397,
              46363,
              46366,
              46387,
              46361,
              46398,
              46391,
              46387,
              46405,
              46391,
              46365,
              46372,
              46374,
              46370,
              46355,
              46374,
              46356,
              46360,
              46396,
              46373,
              46375,
              46365,
              46345,
              46381,
              46363,
              46362,
              46367,
              46380,
              46373,
              46397,
              46383,
              46407,
              46387,
              46374,
              46371,
              46402,
              46406,
              46389,
              46390,
              46391,
              46370,
              46379,
              46382,
              46414,
              46390,
              46407,
              46386,
              46383,
              46393,
              46401,
              46367,
              46376,
              46374,
              46367,
              46403,
              46370,
              46364,
              46386,
              46397,
              46375,
              46399,
              46385,
              46391,
              46383,
              46407,
              46377,
              46403,
              46394,
              46391,
              46371,
              46367,
              46377,
              46367,
              46379,
              46367,
              46371,
              46371,
              46407,
              46391,
              46407,
              46413,
              46375,
              46379,
              46378,
              46382,
              46359,
              46402,
              46398,
              46354,
              46385,
              46393,
              46383,
              46394,
              46421,
              46369,
              46394,
              46406,
              46367,
              46394,
              46393,
              46369,
              46370,
              46383,
              46370,
              46376,
              46377,
              46386,
              46371,
              46405,
              46375,
              46380,
              46397,
              46379,
              46398,
              46403,
              46375,
              46403,
              46392,
              46356,
              46374,
              46371,
              46370,
              46386,
              46380,
              46393,
              46393,
              46383,
              46389,
              46367,
              46374,
              46400,
              46362,
              46385,
              46414,
              46386,
              46407,
              46379,
              46351,
              46403,
              46401,
              46411,
              46398,
              46399,
              46383,
              46379,
              46393,
              46375,
              46391,
              46398,
              46382,
              46380,
              46396,
              46401,
              46404,
              46393,
              46412,
              46402,
              46383,
              46396,
              46385,
              46396,
              46389,
              46383,
              46404,
              46383,
              46407,
              46393,
              46411,
              46379,
              46407,
              46380,
              46398,
              46395,
              46411,
              46399,
              46396,
              46345,
              46404,
              46423,
              46402,
              46419,
              46423,
              46418,
              46419,
              46434,
              46440,
              46409,
              46444,
              46446,
              46430,
              46441,
              46443,
              46445,
              46426,
              46446,
              46462,
              47143,
              46450,
              46418,
              46413,
              46432,
              46430,
              46421,
              46381,
              46397,
              46391,
              46402,
              46403,
              46395,
              46391,
              46378,
              46397,
              46388,
              46406,
              46370,
              46398,
              46409,
              46379,
              46386,
              46401,
              46403,
              46387,
              46373,
              46373,
              46415,
              46387,
              46397,
              46401,
              46413,
              46403,
              46395,
              46390,
              46399,
              46385,
              46421,
              46386,
              46375,
              46388,
              46397,
              46413,
              46384,
              46406,
              46375,
              46393,
              46399,
              46403,
              46416,
              46388,
              46386,
              46398,
              46401,
              46400,
              46378,
              46394,
              46395,
              46383,
              46407,
              46403,
              46396,
              46390,
              46373,
              46389,
              46402,
              46401,
              46410,
              46398,
              46362,
              46395,
              46399,
              46384,
              46377,
              46381,
              46375,
              46387,
              46395,
              46395,
              46395,
              46395,
              46415,
              46407,
              46402,
              46395,
              46383,
              46415,
              46391,
              46398,
              46421,
              46424,
              46401,
              46414,
              46407,
              46399,
              46400,
              46390,
              46382,
              46398,
              46375,
              46403,
              46375,
              46390,
              46377,
              46373,
              46400,
              46385,
              46409,
              46391,
              46398,
              46374,
              46387,
              46401,
              46404,
              46406,
              46413,
              46392,
              46407,
              46391,
              46386,
              46390,
              46393,
              46389,
              46383,
              46401,
              46383,
              46375,
              46387,
              46371,
              46383,
              46383,
              46381,
              46399,
              46415,
              46413,
              46387,
              46391,
              46401,
              46423,
              46418,
              46411,
              46411,
              46407,
              46399,
              46382,
              46403,
              46392,
              46370,
              46415,
              46382,
              46391,
              46406,
              46411,
              46391,
              46430,
              46407,
              46383,
              46383,
              46407,
              46406,
              46401,
              46415,
              46391,
              46396,
              46415,
              46397,
              46406,
              46407,
              46398,
              46413,
              46411,
              46375,
              46398,
              46412,
              46399,
              46371,
              46404,
              46385,
              46385,
              46399,
              46407,
              46389,
              46399,
              46371,
              46379,
              46395,
              46378,
              46375,
              46390,
              46399,
              46407,
              46415,
              46393,
              46407,
              46388,
              46387,
              46378,
              46393,
              46399,
              46334,
              46428,
              46407,
              46415,
              46429,
              46443,
              46440,
              46452,
              46439,
              46458,
              46454,
              46450,
              46459,
              46433,
              46467,
              46449,
              46463,
              46457,
              46465,
              46441,
              47051,
              46455,
              46443,
              46438,
              46436,
              46391,
              46407,
              46419,
              46399,
              46417,
              46418,
              46412,
              46417,
              46404,
              46398,
              46410,
              46419,
              46407,
              46407,
              46417,
              46399,
              46424,
              46413,
              46417,
              46401,
              46387,
              46389,
              46401,
              46384,
              46400,
              46401,
              46397,
              46393,
              46385,
              46371,
              46422,
              46395,
              46371,
              46372,
              46398,
              46375,
              46387,
              46375,
              46395,
              46386,
              46379,
              46379,
              46369,
              46369,
              46383,
              46406,
              46403,
              46384,
              46389,
              46397,
              46402,
              46398,
              46397,
              46394,
              46392,
              46373,
              46373,
              46389,
              46373,
              46395,
              46397,
              46395,
              46375,
              46389,
              46391,
              46381,
              46385,
              46405,
              46391,
              46375,
              46368,
              46383,
              46388,
              46379,
              46379,
              46411,
              46393,
              46393,
              46389,
              46387,
              46386,
              46397,
              46382,
              46379,
              46388,
              46379,
              46386,
              46415,
              46379,
              46399,
              46389,
              46388,
              46378,
              46415,
              46384,
              46391,
              46389,
              46396,
              46404,
              46405,
              46377,
              46406,
              46402,
              46389,
              46395,
              46378,
              46396,
              46375,
              46365,
              46391,
              46372,
              46371,
              46402,
              46379,
              46369,
              46403,
              46394,
              46374,
              46375,
              46407,
              46367,
              46395,
              46382,
              46378,
              46387,
              46386,
              46403,
              46389,
              46385,
              46387,
              46383,
              46375,
              46369,
              46395,
              46389,
              46373,
              46355,
              46369,
              46387,
              46382,
              46385,
              46406,
              46377,
              46382,
              46361,
              46361,
              46390,
              46384,
              46383,
              46391,
              46392,
              46403,
              46395,
              46399,
              46383,
              46381,
              46391,
              46399,
              46391,
              46414,
              46388,
              46396,
              46377,
              46367,
              46398,
              46391,
              46407,
              46385,
              46402,
              46403,
              46422,
              46406,
              46384,
              46377,
              46391,
              46351,
              46378,
              46375,
              46407,
              46393,
              46372,
              46378,
              46381,
              46372,
              46366,
              46358,
              46405,
              46391,
              46366,
              46389,
              46363,
              46362,
              46375,
              46379,
              46384,
              46279,
              46397,
              46389,
              46391,
              46401,
              46402,
              46407,
              46423,
              46431,
              46426,
              46441,
              46446,
              46438,
              46431,
              46442,
              46431,
              46445,
              46458,
              46471,
              46459,
              47131,
              46445,
              46432,
              46425,
              46390,
              46406,
              46388,
              46411,
              46414,
              46387,
              46371,
              46377,
              46383,
              46385,
              46403,
              46399,
              46407,
              46387,
              46401,
              46417,
              46406,
              46421,
              46407,
              46402,
              46414,
              46412,
              46385,
              46408,
              46399,
              46396,
              46398,
              46397,
              46393,
              46409,
              46431,
              46426,
              46423,
              46412,
              46400,
              46415,
              46411,
              46412,
              46397,
              46399,
              46430,
              46389,
              46413,
              46407,
              46399,
              46407,
              46399,
              46389,
              46386,
              46400,
              46405,
              46384,
              46389,
              46387,
              46398,
              46417,
              46407,
              46405,
              46405,
              46402,
              46418,
              46403,
              46375,
              46403,
              46417,
              46418,
              46383,
              46411,
              46410,
              46403,
              46406,
              46367,
              46396,
              46399,
              46411,
              46385,
              46381,
              46387,
              46401,
              46398,
              46407,
              46407,
              46407,
              46396,
              46390,
              46415,
              46379,
              46380,
              46419,
              46398,
              46381,
              46399,
              46387,
              46373,
              46407,
              46386,
              46375,
              46386,
              46389,
              46411,
              46383,
              46375,
              46403,
              46403,
              46398,
              46395,
              46380,
              46383,
              46389,
              46399,
              46407,
              46414,
              46391,
              46383,
              46385,
              46375,
              46388,
              46388,
              46373,
              46375,
              46399,
              46398,
              46380,
              46376,
              46373,
              46395,
              46386,
              46401,
              46375,
              46389,
              46401,
              46382,
              46407,
              46393,
              46401,
              46383,
              46395,
              46402,
              46379,
              46375,
              46375,
              46396,
              46419,
              46407,
              46383,
              46415,
              46420,
              46386,
              46406,
              46387,
              46399,
              46409,
              46405,
              46410,
              46407,
              46403,
              46417,
              46398,
              46380,
              46401,
              46407,
              46407,
              46394,
              46387,
              46393,
              46418,
              46407,
              46391,
              46386,
              46395,
              46403,
              46399,
              46405,
              46390,
              46379,
              46383,
              46401,
              46397,
              46392,
              46381,
              46382,
              46390,
              46397,
              46396,
              46405,
              46402,
              46397,
              46388,
              46398,
              46388,
              46415,
              46407,
              46396,
              46407,
              46398,
              46407,
              46314,
              46399,
              46393,
              46439,
              46424,
              46421,
              46443,
              46436,
              46445,
              46446,
              46450,
              46425,
              46458,
              46438,
              46439,
              46437,
              46472,
              46455,
              46459,
              46474,
              47232,
              46447,
              46435,
              46423,
              46423,
              46413,
              46403,
              46397,
              46421,
              46431,
              46410,
              46411,
              46429,
              46417,
              46411,
              46386,
              46387,
              46407,
              46411,
              46409,
              46421,
              46393,
              46389,
              46383,
              46395,
              46397,
              46414,
              46398,
              46402,
              46403,
              46422,
              46414,
              46407,
              46397,
              46394,
              46399,
              46388,
              46391,
              46402,
              46389,
              46394,
              46393,
              46415,
              46419,
              46407,
              46399,
              46399,
              46393,
              46427,
              46390,
              46377,
              46385,
              46405,
              46373,
              46411,
              46389,
              46379,
              46406,
              46407,
              46384,
              46396,
              46411,
              46413,
              46430,
              46424,
              46375,
              46386,
              46411,
              46381,
              46392,
              46382,
              46375,
              46381,
              46369,
              46365,
              46371,
              46389,
              46383,
              46386,
              46385,
              46415,
              46359,
              46372,
              46391,
              46395,
              46395,
              46401,
              46409,
              46403,
              46389,
              46391,
              46384,
              46385,
              46398,
              46387,
              46393,
              46391,
              46399,
              46381,
              46394,
              46375,
              46379,
              46394,
              46387,
              46391,
              46397,
              46383,
              46395,
              46393,
              46373,
              46406,
              46388,
              46404,
              46383,
              46389,
              46383,
              46406,
              46381,
              46407,
              46406,
              46402,
              46404,
              46406,
              46388,
              46375,
              46409,
              46381,
              46383,
              46391,
              46390,
              46405,
              46397,
              46381,
              46375,
              46375,
              46372,
              46372,
              46405,
              46391,
              46391,
              46377,
              46363,
              46371,
              46405,
              46378,
              46381,
              46375,
              46407,
              46383,
              46410,
              46363,
              46371,
              46370,
              46397,
              46394,
              46371,
              46399,
              46395,
              46382,
              46404,
              46390,
              46386,
              46410,
              46391,
              46402,
              46431,
              46424,
              46394,
              46418,
              46406,
              46387,
              46414,
              46402,
              46391,
              46411,
              46387,
              46407,
              46389,
              46410,
              46399,
              46405,
              46395,
              46387,
              46388,
              46399,
              46403,
              46407,
              46401,
              46398,
              46400,
              46386,
              46383,
              46365,
              46409,
              46403,
              46399,
              46384,
              46398,
              46379,
              46398,
              46261,
              46398,
              46423,
              46413,
              46437,
              46445,
              46439,
              46434,
              46443,
              46445,
              46450,
              46469,
              46458,
              46441,
              46457,
              46443,
              46453,
              46460,
              46443,
              46443,
              47485,
              46469,
              46460,
              46433,
              46417,
              46421,
              46410,
              46416,
              46403,
              46409,
              46423,
              46389,
              46403,
              46417,
              46417,
              46426,
              46419,
              46428,
              46431,
              46429,
              46431,
              46415,
              46435,
              46415,
              46421,
              46413,
              46442,
              46406,
              46413,
              46405,
              46423,
              46417,
              46446,
              46405,
              46405,
              46414,
              46407,
              46429,
              46427,
              46410,
              46444,
              46415,
              46403,
              46435,
              46410,
              46410,
              46394,
              46403,
              46434,
              46399,
              46395,
              46381,
              46407,
              46393,
              46391,
              46407,
              46432,
              46434,
              46401,
              46407,
              46401,
              46403,
              46398,
              46437,
              46421,
              46399,
              46405,
              46415,
              46440,
              46437,
              46417,
              46397,
              46415,
              46401,
              46426,
              46402,
              46435,
              46425,
              46423,
              46417,
              46411,
              46420,
              46423,
              46410,
              46410,
              46407,
              46419,
              46427,
              46426,
              46395,
              46389,
              46390,
              46411,
              46413,
              46390,
              46404,
              46399,
              46403,
              46398,
              46379,
              46389,
              46388,
              46381,
              46388,
              46390,
              46405,
              46412,
              46398,
              46399,
              46419,
              46417,
              46394,
              46410,
              46414,
              46402,
              46416,
              46418,
              46397,
              46402,
              46383,
              46397,
              46425,
              46403,
              46391,
              46413,
              46443,
              46421,
              46412,
              46395,
              46392,
              46418,
              46416,
              46438,
              46414,
              46406,
              46405,
              46399,
              46418,
              46422,
              46389,
              46387,
              46410,
              46403,
              46407,
              46389,
              46383,
              46439,
              46393,
              46407,
              46405,
              46402,
              46404,
              46389,
              46377,
              46397,
              46404,
              46391,
              46378,
              46393,
              46427,
              46387,
              46396,
              46399,
              46415,
              46391,
              46391,
              46393,
              46416,
              46395,
              46405,
              46388,
              46387,
              46399,
              46393,
              46412,
              46375,
              46402,
              46410,
              46391,
              46393,
              46397,
              46399,
              46407,
              46387,
              46387,
              46381,
              46407,
              46398,
              46413,
              46425,
              46414,
              46410,
              46397,
              46396,
              46393,
              46392,
              46412,
              46407,
              46413,
              46398,
              46212,
              46404,
              46413,
              46417,
              46429,
              46442,
              46440,
              46433,
              46421,
              46426,
              46434,
              46427,
              46448,
              46455,
              46441,
              46432,
              46437,
              46455,
              46465,
              46455,
              47375,
              46455,
              46427,
              46422,
              46406,
              46417,
              46441,
              46410,
              46407,
              46411,
              46410,
              46435,
              46421,
              46413,
              46416,
              46418,
              46413,
              46419,
              46418,
              46415,
              46399,
              46409,
              46397,
              46399,
              46386,
              46386,
              46392,
              46382,
              46389,
              46388,
              46357,
              46398,
              46381,
              46387,
              46373,
              46397,
              46397,
              46389,
              46391,
              46378,
              46398,
              46383,
              46389,
              46405,
              46403,
              46414,
              46401,
              46431,
              46387,
              46413,
              46407,
              46411,
              46411,
              46394,
              46393,
              46409,
              46394,
              46410,
              46394,
              46403,
              46381,
              46407,
              46379,
              46387,
              46375,
              46381,
              46391,
              46375,
              46369,
              46388,
              46371,
              46396,
              46387,
              46390,
              46410,
              46387,
              46399,
              46395,
              46389,
              46366,
              46379,
              46406,
              46411,
              46387,
              46399,
              46385,
              46386,
              46431,
              46412,
              46389,
              46407,
              46402,
              46381,
              46407,
              46405,
              46421,
              46413,
              46426,
              46398,
              46404
            ]
          },
          {
            "time": 1514332823157,
            "label": "PAM",
            "light_intensity": 677.2,
            "r": 807,
            "g": 484,
            "b": 265,
            "light_intensity_raw": 1536,
            "temperature": 28.5,
            "humidity": 12.12,
            "pressure": 998.586,
            "temperature2": 28.45,
            "humidity2": 13.204,
            "pressure2": 999.839,
            "contactless_temp": 27.57,
            "thickness": 0.18,
            "compass_direction": "E",
            "compass": 90,
            "angle": 0.866,
            "angle_direction": "S",
            "pitch": 0.87,
            "roll": 0,
            "data_raw": [
              1483,
              46499,
              49279,
              2091,
              46437,
              49207,
              2157,
              46412,
              49179,
              2183,
              46399,
              49170,
              2199,
              46426,
              49163,
              2205,
              46418,
              49150,
              2214,
              46422,
              49153,
              2216,
              46437,
              49146,
              2219,
              46446,
              49146,
              2222,
              46411,
              49153,
              2223,
              46407,
              49147,
              2223,
              46407,
              49140,
              2225,
              46407,
              49151,
              2226,
              46411,
              49148,
              2223,
              46412,
              49152,
              2223,
              46395,
              49149,
              2227,
              46407,
              49154,
              2225,
              46427,
              49149,
              2227,
              46407,
              49149,
              2223,
              46394,
              49145,
              2223,
              46432,
              49151,
              2222,
              46410,
              49158,
              2222,
              46395,
              49159,
              2221,
              46393,
              49166,
              2222,
              46400,
              49146,
              2220,
              46410,
              49158,
              2221,
              46403,
              49157,
              2218,
              46406,
              49159,
              2221,
              46413,
              49167,
              2219,
              46411,
              49160,
              2217,
              46407,
              49163,
              2219,
              46386,
              49159,
              2217,
              46418,
              49161,
              2215,
              46422,
              49157,
              2216,
              46411,
              49165,
              2215,
              46387,
              49164,
              2214,
              46407,
              49159,
              2215,
              46411,
              49163,
              2214,
              46409,
              49161,
              2215,
              46415,
              49170,
              2214,
              46396,
              49167,
              2213,
              46407,
              49159,
              2213,
              46416,
              49172,
              2213,
              46406,
              49175,
              2213,
              46396,
              49162,
              2211,
              46393,
              49167,
              2210,
              46392,
              49171,
              2207,
              46416,
              49167,
              2206,
              46420,
              49165,
              2206,
              46409,
              49166,
              2205,
              46420,
              49164,
              2203,
              46403,
              49171,
              2202,
              46386,
              49167,
              2201,
              46403,
              49171,
              2202,
              46399,
              49163,
              2199,
              46415,
              49164,
              2196,
              46412,
              49161,
              2197,
              46410,
              49169,
              2196,
              46435,
              49165,
              2198,
              46395,
              49167,
              2197,
              46421,
              49161,
              2198,
              46409,
              49159,
              2197,
              46415,
              49154,
              2195,
              46421,
              49171,
              2197,
              46398,
              49165,
              2195,
              46411,
              49172,
              2193,
              46405,
              49177,
              2193,
              46399,
              49184,
              2191,
              46419,
              49166,
              2193,
              46412,
              49171,
              2193,
              46411,
              49170,
              2195,
              46438,
              49174,
              2194,
              46415,
              49173,
              2195,
              46426,
              49159,
              2195,
              46413,
              49159,
              2192,
              46429,
              49161,
              2191,
              46425,
              49165,
              2195,
              46451,
              49163,
              2191,
              46428,
              49159,
              2189,
              46427,
              49158,
              2191,
              46418,
              49171,
              2191,
              46407,
              49172,
              2189,
              46414,
              49165,
              2190,
              46421,
              49168,
              2186,
              46431,
              49166,
              2186,
              46407,
              49167,
              2185,
              46379,
              49160,
              2186,
              46422,
              49166,
              2186,
              46430,
              49165,
              2185,
              46411,
              49163,
              2183,
              46415,
              49168,
              2183,
              46407,
              49165,
              2183,
              46405,
              49166,
              2182,
              46407,
              49175,
              2182,
              46411,
              49168,
              2183,
              46406,
              49165,
              2180,
              46433,
              49167,
              2181,
              46416,
              49174,
              2180,
              46420,
              49175,
              2179,
              46410,
              49164,
              2189,
              46403,
              49150,
              2199,
              46417,
              49155,
              2203,
              46414,
              49165,
              2203,
              46384,
              49172,
              2203,
              46431,
              49161,
              2201,
              46421,
              49166,
              2202,
              46408,
              49156,
              2201,
              46402,
              49163,
              2201,
              46435,
              49169,
              2202,
              46405,
              49165,
              2200,
              46411,
              49160,
              2200,
              46409,
              49172,
              2203,
              46422,
              49181,
              2199,
              46378,
              49173,
              2202,
              46407,
              49173,
              2198,
              46399,
              49175,
              2199,
              46395,
              49169,
              2197,
              46389,
              49170,
              2197,
              46425,
              49171,
              2194,
              46404,
              49175,
              2196,
              46413,
              49169,
              2198,
              46407,
              49166,
              2195,
              46409,
              49171,
              2194,
              46393,
              49167,
              2196,
              46407,
              49175,
              2191,
              46421,
              49166,
              2191,
              46404,
              49166,
              2191,
              46398,
              49175,
              2191,
              46413,
              49175,
              2190,
              46425,
              49175,
              2190,
              46422,
              49177,
              2191,
              46426,
              49173,
              2190,
              46391,
              49173,
              2188,
              46394,
              49174,
              2186,
              46433,
              49174,
              2186,
              46412,
              49183,
              2185,
              46383,
              49181,
              2184,
              46411,
              49175,
              2186,
              46404,
              49161,
              2183,
              46393,
              49179,
              2182,
              46415,
              49182,
              2183,
              46416,
              49185,
              2181,
              46398,
              49171,
              2180,
              46396,
              49176,
              2182,
              46402,
              49185,
              2180,
              46402,
              49186,
              2179,
              46401,
              49179,
              2177,
              46415,
              49183,
              2176,
              46398,
              49182,
              2177,
              46430,
              49179,
              2173,
              46438,
              49191,
              2173,
              46415,
              49191,
              2171,
              46418,
              49185,
              2171,
              46423,
              49183,
              2172,
              46415,
              49189,
              2169,
              46429,
              49190,
              2171,
              46394,
              49179,
              2169,
              46401,
              49180,
              2171,
              46399,
              49183,
              2169,
              46425,
              49176,
              2169,
              46415,
              49189,
              2167,
              46437,
              49191,
              2165,
              46395,
              49182,
              2167,
              46429,
              49183,
              2166,
              46417,
              49173,
              2164,
              46409,
              49183,
              2162,
              46394,
              49176,
              2161,
              46426,
              49169,
              2165,
              46398,
              49174,
              2160,
              46429,
              49174,
              2161,
              46434,
              49178,
              2157,
              46415,
              49178,
              2159,
              46387,
              49186,
              2156,
              46413,
              49179,
              2157,
              46436,
              49177,
              2156,
              46422,
              49175,
              2156,
              46418,
              49178,
              2152,
              46434,
              49184,
              2153,
              46406,
              49177,
              2154,
              46439,
              49179,
              2153,
              46414,
              49178,
              2151,
              46399,
              49188,
              2151,
              46437,
              49187,
              2153,
              46407,
              49184,
              2150,
              46399,
              49186,
              2151,
              46406,
              49182,
              2151,
              46382,
              49181,
              2149,
              46415,
              49179,
              2149,
              46417,
              49181,
              2147,
              46401,
              49183,
              2146,
              46403,
              49172,
              2147,
              46423,
              49174,
              2147,
              46395,
              49177,
              2146,
              46431,
              49182,
              2146,
              46433,
              49181,
              2143,
              46443,
              49182,
              2143,
              46441,
              49183,
              2141,
              46413,
              49181,
              2142,
              46434,
              49183,
              2141,
              46412,
              49186,
              2175,
              46426,
              49143,
              2183,
              46427,
              49143,
              2185,
              46422,
              49155,
              2190,
              46437,
              49165,
              2187,
              46403,
              49175,
              2183,
              46399,
              49183,
              2190,
              46413,
              49181,
              2186,
              46403,
              49191,
              2181,
              46407,
              49177,
              2186,
              46426,
              49183,
              2183,
              46428,
              49198,
              2178,
              46415,
              49198,
              2182,
              46410,
              49185,
              2181,
              46415,
              49192,
              2179,
              46428,
              49199,
              2181,
              46419,
              49197,
              2173,
              46394,
              49209,
              2172,
              46407,
              49196,
              2179,
              46403,
              49198,
              2169,
              46386,
              49210,
              2175,
              46403,
              49203,
              2174,
              46391,
              49202,
              2167,
              46423,
              49199,
              2173,
              46409,
              49207,
              2173,
              46421,
              49208,
              2165,
              46409,
              49211,
              2169,
              46419,
              49204,
              2167,
              46418,
              49207,
              2161,
              46397,
              49211,
              2167,
              46415,
              49198,
              2164,
              46399,
              49199,
              2157,
              46395,
              49205,
              2161,
              46407,
              49198,
              2162,
              46422,
              49207,
              2153,
              46396,
              49213,
              2159,
              46390,
              49197,
              2157,
              46397,
              49194,
              2153,
              46413,
              49197,
              2154,
              46406,
              49204,
              2154,
              46381,
              49199,
              2153,
              46359,
              49200,
              2149,
              46402,
              49200,
              2152,
              46399,
              49203,
              2154,
              46419,
              49212,
              2149,
              46389,
              49198,
              2148,
              46394,
              49191,
              2151,
              46406,
              49196,
              2148,
              46395,
              49201,
              2141,
              46391,
              49197,
              2146,
              46371,
              49192,
              2146,
              46403,
              49187,
              2141,
              46403,
              49197,
              2139,
              46416,
              49205,
              2143,
              46367,
              49195,
              2141,
              46387,
              49203,
              2143,
              46387,
              49196,
              2135,
              46389,
              49193,
              2139,
              46370,
              49183,
              2138,
              46381,
              49198,
              2133,
              46366,
              49194,
              2132,
              46374,
              49202,
              2136,
              46369,
              49194,
              2134,
              46375,
              49198,
              2130,
              46385,
              49195,
              2126,
              46371,
              49192,
              2130,
              46373,
              49191,
              2128,
              46394,
              49181,
              2127,
              46401,
              49190,
              2123,
              46375,
              49190,
              2123,
              46385,
              49196,
              2125,
              46385,
              49188,
              2125,
              46375,
              49191,
              2126,
              46395,
              49204,
              2119,
              46388,
              49193,
              2118,
              46369,
              49189,
              2119,
              46365,
              49189,
              2119,
              46370,
              49186,
              2119,
              46367,
              49191,
              2111,
              46390,
              49191,
              2113,
              46374,
              49191,
              2117,
              46396,
              49189,
              2115,
              46379,
              49185,
              2116,
              46366,
              49191,
              2111,
              46374,
              49194,
              2106,
              46375,
              49180,
              2109,
              46407,
              49178,
              2109,
              46393,
              49183,
              2111,
              46358,
              49186,
              2113,
              46387,
              49183,
              2107,
              46343,
              49189,
              2041,
              46395,
              49263,
              1903,
              46431,
              49293,
              1782,
              46474,
              49321,
              1675,
              46478,
              49331,
              1591,
              46493,
              49355,
              1521,
              46479,
              49363,
              1473,
              46485,
              49383,
              1431,
              46490,
              49404,
              1403,
              46512,
              49433,
              1381,
              46518,
              49447,
              1363,
              46543,
              49471,
              1349,
              46535,
              49494,
              1337,
              46535,
              49514,
              1331,
              46526,
              49526,
              1322,
              46551,
              49541,
              1315,
              46535,
              49387,
              1410,
              46476,
              49290,
              1419,
              46439,
              49237,
              1415,
              46433,
              49208,
              1415,
              46427,
              49180,
              1412,
              46451,
              49151,
              1417,
              46469,
              49137,
              1415,
              46439,
              49131,
              1414,
              46445,
              49124,
              1418,
              46438,
              49109,
              1421,
              46455,
              49095,
              1415,
              46441,
              49084,
              1420,
              46438,
              49086,
              1417,
              46471,
              49083,
              1418,
              46442,
              49086,
              1425,
              46439,
              49080,
              1423,
              46443,
              49075,
              1417,
              46473,
              49081,
              1421,
              46447,
              49074,
              1420,
              46439,
              49078,
              1415,
              46422,
              49077,
              1417,
              46457,
              49075,
              1415,
              46458,
              49072,
              1411,
              46449,
              49067,
              1413,
              46429,
              49071,
              1412,
              46431,
              49063,
              1406,
              46446,
              49053,
              1414,
              46446,
              49075,
              1407,
              46424,
              49063,
              1403,
              46426,
              49075,
              1407,
              46425,
              49067,
              1406,
              46419,
              49066,
              1402,
              46421,
              49059,
              1401,
              46403,
              49074,
              1402,
              46426,
              49078,
              1394,
              46407,
              49061,
              1395,
              46427,
              49073,
              1398,
              46427,
              49067,
              1393,
              46427,
              49063,
              1389,
              46442,
              49061,
              1393,
              46412,
              49066,
              1391,
              46443,
              49055,
              1383,
              46427,
              49051,
              1386,
              46397,
              49065,
              1387,
              46404,
              49063,
              1381,
              46379,
              49063,
              1386,
              46419,
              49065,
              1383,
              46419,
              49063,
              1376,
              46407,
              49047,
              1380,
              46407,
              49070,
              1377,
              46405,
              49063,
              1375,
              46432,
              49047,
              1372,
              46412,
              49063,
              1373,
              46382,
              49056,
              1366,
              46395,
              49059,
              1367,
              46398,
              49057,
              1369,
              46413,
              49065,
              1365,
              46406,
              49051,
              1362,
              46435,
              49045,
              1365,
              46421,
              49059,
              1364,
              46407,
              49057,
              1356,
              46404,
              49062,
              1361,
              46418,
              49065,
              1356,
              46395,
              49055,
              1356,
              46407,
              49052,
              1351,
              46413,
              49050,
              1355,
              46382,
              49045,
              1348,
              46395,
              49036,
              1350,
              46387,
              49052,
              1350,
              46413,
              49059,
              1347,
              46419,
              49046,
              1340,
              46427,
              49046,
              1348,
              46402,
              49042,
              1341,
              46425,
              49042,
              1343,
              46403,
              49044,
              1345,
              46418,
              49039,
              1335,
              46407,
              49045,
              1335,
              46393,
              49031,
              1341,
              46404,
              49043,
              1335,
              46409,
              49035,
              1330,
              46415,
              49040,
              1331,
              46411,
              49045,
              1333,
              46404,
              49043,
              1327,
              46387,
              49034,
              1333,
              46395,
              49048,
              1327,
              46427,
              49046,
              1324,
              46406,
              49034,
              1322,
              46397,
              49046,
              1325,
              46433,
              49043,
              1318,
              46398,
              49035,
              1318,
              46411,
              49035,
              1319,
              46417,
              49035,
              1318,
              46369,
              49030,
              1313,
              46381,
              49039,
              1315,
              46391,
              49031,
              1317,
              46383,
              49046,
              1310,
              46415,
              49042,
              1314,
              46376,
              49035,
              1311,
              46396,
              49044,
              1304,
              46391,
              49031,
              1309,
              46387,
              49043,
              1308,
              46414,
              49041,
              1299,
              46399,
              49031,
              1304,
              46378,
              49038,
              1303,
              46371,
              49047,
              1297,
              46398,
              49028,
              1299,
              46375,
              49036,
              1298,
              46381,
              49033,
              1293,
              46375,
              49031,
              1287,
              46371,
              49045,
              1299,
              46401,
              49034,
              1292,
              46398,
              49031,
              1288,
              46371,
              49036,
              1291,
              46396,
              49039,
              1292,
              46391,
              49030,
              1286,
              46376,
              49024,
              1292,
              46401,
              49032,
              1286,
              46377,
              49041,
              1280,
              46405,
              49039,
              1283,
              46381,
              49043,
              1281,
              46406,
              49041,
              1278,
              46373,
              49029,
              1279,
              46385,
              49034,
              1279,
              46376,
              49032,
              1278,
              46375,
              49031,
              1276,
              46395,
              49037,
              1278,
              46405,
              49034,
              1275,
              46402,
              49021,
              1271,
              46411,
              49039,
              1279,
              46385,
              49033,
              1273,
              46393,
              49046,
              1271,
              46394,
              49031,
              1273,
              46369,
              49029,
              1268,
              46390,
              49040,
              1262,
              46415,
              49027,
              1269,
              46389,
              49031,
              1265,
              46393,
              49037,
              1261,
              46373,
              49036,
              1267,
              46391,
              49035,
              1267,
              46383,
              49036,
              1259,
              46390,
              49040,
              1260,
              46399,
              49034,
              1262,
              46430,
              49035,
              1257,
              46393,
              49022,
              1257,
              46370,
              49032,
              1261,
              46423,
              49045,
              1259,
              46407,
              49039,
              1250,
              46402,
              49034,
              1256,
              46389,
              49033,
              1255,
              46411,
              49031,
              1250,
              46381,
              49030,
              1254,
              46397,
              49033,
              1254,
              46396,
              49035,
              1248,
              46399,
              49031,
              1249,
              46396,
              49037,
              1249,
              46414,
              49039,
              1246,
              46424,
              49031,
              1241,
              46398,
              49027,
              1249,
              46431,
              49030,
              1247,
              46422,
              49039,
              1242,
              46401,
              49033,
              1247,
              46396,
              49043,
              1242,
              46433,
              49046,
              1235,
              46406,
              49031,
              1244,
              46403,
              49032,
              1241,
              46419,
              49047,
              1237,
              46418,
              49031,
              1241,
              46407,
              49031,
              1241,
              46407,
              49038,
              1234,
              46391,
              49031,
              1233,
              46399,
              49027,
              1238,
              46401,
              49039,
              1234,
              46370,
              49025,
              1227,
              46380,
              49035,
              1235,
              46419,
              49033,
              1235,
              46409,
              49032,
              1231,
              46407,
              49027,
              1235,
              46395,
              49037,
              1233,
              46385,
              49039,
              1226,
              46394,
              49036,
              1233,
              46399,
              49035,
              1230,
              46397,
              49039,
              1227,
              46380,
              49041,
              1228,
              46403,
              49036,
              1228,
              46398,
              49039,
              1224,
              46387,
              49044,
              1227,
              46399,
              49039,
              1223,
              46398,
              49047,
              1223,
              46421,
              49031,
              1222,
              46395,
              49031,
              1223,
              46395,
              49046,
              1223,
              46412,
              49035,
              1219,
              46404,
              49030,
              1222,
              46397,
              49041,
              1220,
              46407,
              49031,
              1222,
              46397,
              49025,
              1221,
              46410,
              49043,
              1221,
              46405,
              49053,
              1217,
              46426,
              49035,
              1220,
              46391,
              49044,
              1219,
              46357,
              49070,
              1166,
              46380,
              49105,
              1140,
              46412,
              49127,
              1115,
              46455,
              49165,
              1090,
              46478,
              49186,
              1071,
              46471,
              49206,
              1047,
              46455,
              49234,
              1029,
              46500,
              49247,
              1012,
              46503,
              49261,
              1000,
              46502,
              49281,
              989,
              46501,
              49309,
              980,
              46519,
              49329,
              969,
              46535,
              49335,
              963,
              46552,
              49357,
              953,
              46535,
              49380,
              946,
              46537,
              48843,
              1830,
              46419,
              48811,
              1907,
              46358,
              48890,
              1935,
              46339,
              48950,
              1951,
              46325,
              48994,
              1954,
              46378,
              49033,
              1950,
              46359,
              49072,
              1954,
              46315,
              49087,
              1956,
              46311,
              49102,
              1953,
              46349,
              49121,
              1955,
              46339,
              49126,
              1955,
              46311,
              49137,
              1949,
              46335,
              49141,
              1953,
              46323,
              49139,
              1957,
              46343,
              49150,
              1949,
              46331,
              49154,
              1953,
              46342,
              49141,
              1953,
              46348,
              49155,
              1945,
              46335,
              49159,
              1951,
              46341,
              49163,
              1951,
              46373,
              49162,
              1943,
              46329,
              49162,
              1951,
              46339,
              49163,
              1950,
              46351,
              49167,
              1943,
              46345,
              49163,
              1948,
              46359,
              49154,
              1947,
              46375,
              49167,
              1942,
              46359,
              49162,
              1945,
              46349,
              49151,
              1945,
              46358,
              49169,
              1935,
              46346,
              49163,
              1943,
              46346,
              49149,
              1942,
              46342,
              49151,
              1938,
              46346,
              49150,
              1932,
              46365,
              49161,
              1938,
              46371,
              49153,
              1935,
              46360,
              49151,
              1930,
              46351,
              49165,
              1931,
              46367,
              49154,
              1936,
              46353,
              49139,
              1935,
              46359,
              49165,
              1931,
              46373,
              49151,
              1929,
              46362,
              49153,
              1931,
              46367,
              49147,
              1931,
              46366,
              49163,
              1925,
              46355,
              49166,
              1921,
              46379,
              49154,
              1927,
              46372,
              49145,
              1925,
              46359,
              49143,
              1926,
              46345,
              49141,
              1926,
              46346,
              49143,
              1919,
              46335,
              49144,
              1916,
              46342,
              49147,
              1922,
              46349,
              49138,
              1921,
              46349,
              49140,
              1922,
              46355,
              49142,
              1919,
              46370,
              49139,
              1916,
              46346,
              49137,
              1914,
              46384,
              49146,
              1918,
              46365,
              49140,
              1918,
              46367,
              49139,
              1915,
              46389,
              49139,
              1911,
              46345,
              49142,
              1910,
              46351,
              49150,
              1907,
              46347,
              49142,
              1907,
              46343,
              49142,
              1911,
              46372,
              49131,
              1914,
              46366,
              49140,
              1909,
              46374,
              49135,
              1911,
              46375,
              49135,
              1908,
              46349,
              49151,
              1906,
              46361,
              49135,
              1905,
              46343,
              49143,
              1903,
              46359,
              49135,
              1909,
              46357,
              49127,
              1887,
              46375,
              49159,
              1865,
              46367,
              49151,
              1857,
              46381,
              49151,
              1849,
              46387,
              49159,
              1845,
              46399,
              49145,
              1842,
              46366,
              49141,
              1840,
              46386,
              49131,
              1839,
              46395,
              49126,
              1838,
              46407,
              49125,
              1835,
              46391,
              49121,
              1838,
              46397,
              49127,
              1835,
              46378,
              49118,
              1835,
              46390,
              49122,
              1834,
              46386,
              49122,
              1831,
              46357,
              49120
            ]
          },
          {
            "time": 1514332832435,
            "label": "SPAD",
            "detector_read1": 9110,
            "detector_read2": 6028,
            "light_intensity": 24.345,
            "r": 30,
            "g": 13,
            "b": 8,
            "light_intensity_raw": 50,
            "w": 239445,
            "temperature": 28.5,
            "humidity": 12.097,
            "pressure": 998.555,
            "temperature2": 28.43,
            "humidity2": 13.227,
            "pressure2": 999.802,
            "contactless_temp": 27.61,
            "thickness": 0.18,
            "compass_direction": "E",
            "compass": 90,
            "angle": 1.559,
            "angle_direction": "S",
            "pitch": 1.56,
            "roll": 0,
            "recall": {
              "time": 1514332832722,
              "colorcal_blank1[1]": 17666.5,
              "colorcal_blank1[2]": 29033,
              "colorcal_blank1[3]": 30180,
              "colorcal_blank1[4]": 40829,
              "colorcal_blank1[6]": 35468,
              "colorcal_blank1[8]": 34492,
              "colorcal_blank1[9]": 30726,
              "colorcal_blank1[10]": 37960,
              "colorcal_blank2[1]": 20807,
              "colorcal_blank2[2]": 19841,
              "colorcal_blank2[3]": 22810.5,
              "colorcal_blank2[4]": 19876.5,
              "colorcal_blank2[6]": 16296.5,
              "colorcal_blank2[8]": 17811,
              "colorcal_blank2[9]": 18014.5,
              "colorcal_blank2[10]": 16179,
              "colorcal_blank3[1]": 19234.5,
              "colorcal_blank3[2]": 10919,
              "colorcal_blank3[3]": 20140.5,
              "colorcal_blank3[4]": 14690,
              "colorcal_blank3[6]": 5906,
              "colorcal_blank3[8]": 6671.5,
              "colorcal_blank3[9]": 5417,
              "colorcal_blank3[10]": 6003,
              "colorcal_intensity1_slope[2]": 2.264,
              "colorcal_intensity1_yint[2]": 3.5,
              "colorcal_intensity2_slope[2]": 2.281,
              "colorcal_intensity2_yint[2]": 6,
              "colorcal_intensity3_slope[2]": 2.534,
              "colorcal_intensity3_yint[2]": -17.3,
              "ir_baseline_slope[5]": 8877,
              "ir_baseline_yint[5]": 13781,
              "ir_baseline_slope[3]": 524.5,
              "ir_baseline_yint[3]": 711
            },
            "data_raw": [
              1723,
              1495,
              1499,
              1475,
              1490,
              1501,
              1510,
              1485,
              1491,
              1502,
              639,
              594,
              590,
              595,
              590,
              591,
              589,
              593,
              590,
              595,
              3015,
              1718,
              1699,
              1701,
              1697,
              1699,
              1699,
              1697,
              1699,
              1693,
              98,
              213,
              215,
              213,
              215,
              212,
              215,
              212,
              218,
              213,
              32835,
              11988,
              11837,
              11819,
              11812,
              11814,
              11803,
              11805,
              11791,
              11795,
              14450,
              14189,
              14183,
              14176,
              14189,
              14179,
              14179,
              14176,
              14177,
              14172,
              24995,
              16931,
              16842,
              16827,
              16826,
              16825,
              16826,
              16823,
              16815,
              16821,
              18379,
              14706,
              14659,
              14659,
              14650,
              14653,
              14648,
              14650,
              14648,
              14646,
              14659,
              17769,
              17790,
              17789,
              17789,
              17779,
              17800,
              17791,
              17797,
              17786,
              2757,
              3497,
              3499,
              3505,
              3500,
              3505,
              3500,
              3506,
              3501,
              3509,
              9927,
              12687,
              12701,
              12706,
              12706,
              12697,
              12704,
              12699,
              12701,
              12697,
              722,
              902,
              909,
              901,
              908,
              902,
              910,
              906,
              909,
              908,
              36774,
              46101,
              46145,
              46161,
              46154,
              46157,
              46160,
              46164,
              46153,
              46159,
              44783,
              57543,
              57650,
              57649,
              57647,
              57649,
              57663,
              57647,
              57662,
              57662,
              43575,
              56907,
              56999,
              57007,
              57001,
              57019,
              57006,
              57021,
              57015,
              57006,
              35061,
              48779,
              48845,
              48830,
              48825,
              48809,
              48805,
              48787,
              48785,
              48774,
              62719,
              65366,
              65535,
              65170,
              65535,
              65535,
              65382,
              65535,
              65535,
              65182,
              6305,
              7801,
              7815,
              7814,
              7819,
              7815,
              7823,
              7815,
              7826,
              7823,
              45035,
              64156,
              64226,
              64218,
              64195,
              64194,
              64168,
              64163,
              64155,
              64147,
              2415,
              3277,
              3290,
              3286,
              3293,
              3285,
              3292,
              3287,
              3293,
              3287,
              46154,
              46139,
              46146,
              46143,
              46141,
              46150,
              46140,
              46149,
              46148,
              46151,
              57634,
              57631,
              57622,
              57629,
              57621,
              57620,
              57629,
              57617,
              57629,
              57631,
              57027,
              57027,
              57024,
              57031,
              57021,
              57023,
              57019,
              57027,
              57019,
              57025,
              48999,
              48844,
              48826,
              48807,
              48797,
              48779,
              48781,
              48762,
              48758,
              48747
            ]
          }
        ],
        "data_raw": [

        ]
      }
    ]
  ],
  "app_os": "darwin-16.7.0",
  "app_name": "PhotosynQ",
  "app_version": "0.0.31",
  "app_device": "x64",
  "location": [
    "42.7224033",
    "-84.4746487"
  ],
  "time_offset": "America/Detroit"
}
Dave in cap img 4615
Created by

David M. Kramer


Protocol connections:
3
Latest Update:
Feb 2018