LichenspeQ Photosynthesis


This protocol is designed to be used on moss, using only the main board LED's
// CALCULATIONS FOR PROTON MOTIVE FORCE VIA ECS PORTION OF THE TRACE
//----------------------------

var output = {};

var fs = MathMEDIAN(json.data_raw.slice(2,8));
var Fs_std = MathSTDEV(json.data_raw.slice(2,8));

var fmp = MathMEDIAN(json.data_raw.slice(23,68));
var fmp_std = MathSTDEV(json.data_raw.slice(23,68));


var Phi2 = (fmp-fs)/fmp;
var LEF = (Phi2 * json.light_intensity * 0.45);
var IR = MathMEAN(json.data_raw.slice(92,118));

var b = json.b;
var r = json.r;
var g = json.g;


if (Fs_std > 100) {
	danger("noisy Fs", output);
}

if (fmp_std > 300) {
	danger("noisy FmPrime", output);
}



output["Phi2"] = MathROUND(Phi2,2);
output["LEF"] = MathROUND(LEF, 1);
output["FmPrime"] = MathROUND(fmp,3);
output["Fs"] = MathROUND(fs,1);
output["Light Intensity (PAR)"] = json.light_intensity;
output["Surface Temp"] = json.contactless_temp;
output["940 Reflection"] = MathROUND(IR,0);

output["order"] = ["Phi2","LEF", "Light Intensity (PAR)", "Surface Temp"];

maxvalue = MathMAX([json.r,json.g,json.b]);
output["R"] = Number(json.r);
output["G"] = Number(json.g);
output["B"] = Number(json.b);


return output;
{
  "time_offset": 240,
  "time": 1499271977628,
  "device_name": "MultispeQ",
  "device_version": "1",
  "device_id": "01:06:11:92",
  "device_battery": 103,
  "device_firmware": 1.17,
  "sample": [
    {
      "time": 1499271977650,
      "protocol_id": 1,
      "light_intensity": 7,
      "r": 4,
      "g": 2,
      "b": 1,
      "light_intensity_raw": 6,
      "contactless_temp": 24.57,
      "compass_direction": "E",
      "compass": "90.00",
      "angle": 1.9,
      "angle_direction": "S",
      "pitch": 1.79,
      "roll": -0.64,
      "data_raw": [
        8153,
        8367,
        8507,
        8624,
        8725,
        8819,
        8916,
        9003,
        9091,
        9178,
        9262,
        9356,
        9447,
        9540,
        9630,
        9723,
        9822,
        9918,
        10015,
        10101,
        17753,
        18274,
        18449,
        18542,
        18615,
        18663,
        18726,
        18770,
        18813,
        18847,
        18873,
        18895,
        18915,
        18930,
        18937,
        18946,
        18953,
        18959,
        18959,
        18961,
        18958,
        18958,
        18956,
        18946,
        18951,
        18940,
        18946,
        18936,
        18937,
        18934,
        18931,
        18926,
        18924,
        18919,
        18910,
        18911,
        18902,
        18903,
        18899,
        18892,
        18887,
        18878,
        18879,
        18870,
        18870,
        18865,
        18859,
        18854,
        18846,
        18846,
        16927,
        15975,
        15477,
        15174,
        14969,
        14809,
        14663,
        14545,
        14422,
        14303,
        14194,
        14082,
        13984,
        13877,
        13788,
        13701,
        13617,
        13543,
        13470,
        13400,
        34053,
        34022,
        34015,
        33988,
        34010,
        33983,
        34005,
        34006,
        34005,
        34003,
        33998,
        33975,
        34003,
        34015,
        34023,
        34005,
        34004,
        34013,
        33985,
        33982,
        34006,
        33982,
        33981,
        33995,
        33998,
        33979,
        33975,
        33975,
        33982,
        33983
      ]
    }
  ],
  "app_os": "win",
  "app_name": "PhotosynQ",
  "app_version": "0.3.8",
  "app_device": "x86-64",
  "location": [
    "42.7226219",
    "-84.4746562"
  ],
  "ConsoleMacro": "282"
}
Sam 0645   copy   copy  2
Created by

Dan TerAvest


Protocol connections:
1
Latest Update:
Jul 2017