F0 Fm YII LEF


Test
//============================================
// Macro for data evaluation on PhotosynQ.org
// created: 2017-05-04
//============================================

//Define the output object here
var output = {};

//Check if the key time exists in json
if (json.time !== undefined){

	//Add key time and value to output
	output["time"] = json.time;

// calculate F0 and Fm
  var fs = MathMEAN(json.data_raw.slice(1,19));
  var fmp = MathMEAN(json.data_raw.slice(67,69));
  var YII = (fmp - fs)/fmp;
  var LEF = YII * json.light_intensity * 0.4;
  output[`Fs`] = fs
  output[`Fm`] = fmp
  output[`YII`] = YII
  output[`LEF`] = LEF
}

//Return data
return output;
{
  "time_offset": -120,
  "time": 1493885481991,
  "device_name": "MultispeQ",
  "device_version": "1",
  "device_id": "01:06:11:89",
  "device_battery": 96,
  "device_firmware": 1.17,
  "sample": [
    {
      "time": 1493885482033,
      "protocol_id": 1,
      "light_intensity": 9,
      "r": 9,
      "g": 3,
      "b": 3,
      "light_intensity_raw": 13,
      "data_raw": [
        12325,
        12409,
        12479,
        12547,
        12608,
        12665,
        12711,
        12767,
        12815,
        12856,
        12886,
        12925,
        12965,
        12999,
        13025,
        13063,
        13095,
        13130,
        13157,
        13187,
        17785,
        18951,
        19679,
        20195,
        20570,
        20834,
        21048,
        21213,
        21357,
        21479,
        21599,
        21716,
        21822,
        21908,
        22001,
        22087,
        22163,
        22235,
        22297,
        22357,
        22403,
        22459,
        22505,
        22543,
        22590,
        22621,
        22666,
        22704,
        22737,
        22764,
        22787,
        22818,
        22834,
        22860,
        22877,
        22892,
        22910,
        22918,
        22940,
        22948,
        22974,
        22988,
        23005,
        23017,
        23028,
        23040,
        23053,
        23071,
        23073,
        23089,
        20979,
        19927,
        19250,
        18762,
        18404,
        18116,
        17887,
        17694,
        17521,
        17374,
        17245,
        17118,
        17013,
        16905,
        16810,
        16720,
        16635,
        16559,
        16485,
        16413
      ]
    }
  ],
  "app_os": "win",
  "app_name": "PhotosynQ",
  "app_version": "0.3.7",
  "app_device": "x86-32"
}
Worm kleptoplasty   20151009
Created by

Björn Lundin


Protocol connections:
0
Latest Update:
May 2017