v1 - ECSst single Flash


single flash ECS
// The measures DIRK ECS using on-off-on actinic, with actinic pulled from the PAR sensor.  This measurement smooths out the dark period by using a 2 layer smoothing.
// should I calibrate this to a 940 signal, to estimate thickness?

var output = {};
var spad;

var vhplus;
var tau;
var ECSt;
var quality_flag = 0;
var i = 0;
var j = 0;
var h = 0;
var k = 0;

var dark = MathMEAN(json.data_raw.slice(200,300));
var min = MathMIN(json.data_raw.slice(302,310));
var delta = dark - min;
var deltaabs = MathLOG(dark/min);
var next = MathROUND(deltaabs,5);
output ["delta flash"] = MathROUND(deltaabs,5);
output ["n"] = next;



return output;
{
  "time_offset": 180,
  "time": 1497199629695,
  "device_name": "MultispeQ",
  "device_version": "1",
  "device_id": "01:06:11:88",
  "device_battery": 21,
  "device_firmware": 1.17,
  "sample": [
    {
      "time": 1497199629773,
      "protocol_id": 1,
      "averages": 3,
      "data_raw": [
        28183,
        30034,
        30064,
        30067,
        30059,
        30061,
        30064,
        30065,
        30061,
        30065,
        30060,
        30055,
        30060,
        30056,
        30063,
        30065,
        30060,
        30059,
        30063,
        30060,
        30060,
        30066,
        30063,
        30060,
        30062,
        30064,
        30061,
        30060,
        30066,
        30062,
        30059,
        30062,
        30061,
        30055,
        30062,
        30059,
        30060,
        30064,
        30059,
        30058,
        30058,
        30059,
        30058,
        30057,
        30059,
        30060,
        30057,
        30059,
        30057,
        30055,
        30059,
        30054,
        30057,
        30057,
        30051,
        30053,
        30056,
        30053,
        30056,
        30054,
        30052,
        30053,
        30050,
        30058,
        30054,
        30054,
        30053,
        30053,
        30052,
        30053,
        30056,
        30050,
        30050,
        30056,
        30047,
        30051,
        30052,
        30045,
        30054,
        30053,
        30046,
        30052,
        30050,
        30046,
        30056,
        30053,
        30052,
        30053,
        30051,
        30053,
        30054,
        30049,
        30057,
        30054,
        30048,
        30053,
        30053,
        30050,
        30051,
        30047,
        30051,
        30051,
        30051,
        30050,
        30049,
        30052,
        30051,
        30050,
        30051,
        30049,
        30047,
        30053,
        30050,
        30050,
        30049,
        30043,
        30051,
        30052,
        30053,
        30048,
        30051,
        30050,
        30046,
        30049,
        30047,
        30049,
        30052,
        30046,
        30050,
        30049,
        30049,
        30050,
        30048,
        30053,
        30053,
        30049,
        30049,
        30045,
        30051,
        30049,
        30046,
        30050,
        30054,
        30049,
        30050,
        30049,
        30051,
        30051,
        30056,
        30052,
        30053,
        30052,
        30051,
        30051,
        30051,
        30047,
        30052,
        30049,
        30054,
        30049,
        30052,
        30053,
        30053,
        30053,
        30054,
        30052,
        30053,
        30053,
        30055,
        30055,
        30056,
        30052,
        30054,
        30050,
        30053,
        30055,
        30054,
        30055,
        30055,
        30056,
        30051,
        30055,
        30053,
        30053,
        30052,
        30052,
        30054,
        30054,
        30054,
        30052,
        30051,
        30053,
        30050,
        30052,
        30052,
        30053,
        30058,
        30050,
        30054,
        30052,
        30050,
        30050,
        30049,
        30053,
        30052,
        30048,
        30049,
        30055,
        30050,
        30051,
        30056,
        30055,
        30052,
        30053,
        30050,
        30049,
        30053,
        30047,
        30051,
        30051,
        30051,
        30051,
        30050,
        30054,
        30054,
        30054,
        30052,
        30054,
        30051,
        30048,
        30051,
        30056,
        30058,
        30058,
        30061,
        30053,
        30059,
        30054,
        30052,
        30052,
        30051,
        30054,
        30055,
        30053,
        30053,
        30054,
        30052,
        30053,
        30055,
        30053,
        30058,
        30048,
        30054,
        30056,
        30048,
        30051,
        30052,
        30049,
        30053,
        30055,
        30052,
        30052,
        30050,
        30050,
        30049,
        30050,
        30055,
        30051,
        30055,
        30053,
        30049,
        30054,
        30053,
        30052,
        30051,
        30056,
        30057,
        30051,
        30055,
        30051,
        30047,
        30053,
        30054,
        30051,
        30058,
        30052,
        30052,
        30054,
        30055,
        30053,
        30053,
        30053,
        30053,
        30051,
        30056,
        30057,
        30057,
        30056,
        30059,
        30057,
        29942,
        29895,
        29909,
        29919,
        29934,
        29937,
        29941,
        29952,
        29956,
        29961,
        29966,
        29972,
        29968,
        29971,
        29976,
        29983,
        29985,
        29981,
        29987,
        29996,
        29992,
        29996,
        29998,
        30003,
        30000,
        30006,
        30009,
        30012,
        30008,
        30014,
        30016,
        30016,
        30021,
        30022,
        30020,
        30030,
        30023,
        30024,
        30026,
        30031,
        30036,
        30032,
        30028,
        30033,
        30030,
        30025,
        30034,
        30038,
        30037,
        30039,
        30038,
        30043,
        30040,
        30038,
        30042,
        30041,
        30038,
        30044,
        30042,
        30041,
        30046,
        30044,
        30050,
        30044,
        30046,
        30053,
        30048,
        30048,
        30051,
        30047,
        30047,
        30051,
        30047,
        30057,
        30053,
        30049,
        30050,
        30051,
        30046,
        30053,
        30051,
        30046,
        30048,
        30049,
        30051,
        30052,
        30051,
        30051,
        30047,
        30052,
        30057,
        30049,
        30051,
        30054,
        30048,
        30051,
        30051,
        30049,
        30053,
        30056,
        30046,
        30052,
        30060,
        30051,
        30052,
        30058,
        30049,
        30048,
        30052,
        30051,
        30051,
        30052,
        30050,
        30050,
        30056,
        30053,
        30056,
        30058,
        30053,
        30056,
        30055,
        30054,
        30056,
        30054,
        30050,
        30053,
        30057,
        30051,
        30049,
        30050,
        30049,
        30048,
        30052,
        30054,
        30049,
        30053,
        30053,
        30052,
        30051,
        30052,
        30052,
        30053,
        30051,
        30057,
        30051,
        30051,
        30051,
        30050,
        30054,
        30052,
        30049,
        30054,
        30050,
        30056,
        30055,
        30045,
        30051,
        30055,
        30049,
        30053,
        30057,
        30056,
        30051,
        30053,
        30049,
        30047,
        30055,
        30056,
        30051,
        30049,
        30051,
        30045,
        30052,
        30047,
        30054,
        30051,
        30045,
        30050,
        30048,
        30043,
        30048,
        30052,
        30048,
        30052,
        30055,
        30045,
        30047,
        30049,
        30046,
        30049,
        30053,
        30047,
        30046,
        30049,
        30045,
        30048,
        30052,
        30050,
        30050,
        30049,
        30052,
        30049,
        30050,
        30058,
        30045,
        30049,
        30055,
        30052,
        30049,
        30052,
        30047,
        30048,
        30049,
        30046,
        30046,
        30048,
        30045,
        30046,
        30047,
        30051,
        30048,
        30049,
        30046,
        30047,
        30048,
        30049,
        30051,
        30052,
        30045,
        30043,
        30047,
        30046,
        30045,
        30051,
        30046,
        30045,
        30048,
        30042,
        30048,
        30048,
        30045,
        30049,
        30045,
        30046,
        30047,
        30046,
        30046,
        30049,
        30046,
        30043,
        30045,
        30045,
        30046,
        30048,
        30041,
        30047,
        30047,
        30044,
        30048,
        30049,
        30042,
        30052,
        30051,
        30047,
        30043,
        30046,
        30043,
        30048,
        30042,
        30045,
        30049,
        30041,
        30043,
        30046,
        30046,
        30043,
        30049,
        30049,
        30040,
        30047,
        30045,
        30043,
        30049,
        30046,
        30042,
        30048,
        30050,
        30047,
        30047,
        30045,
        30050,
        30048,
        30049,
        30049,
        30049,
        30047,
        30045,
        30047,
        30051,
        30043,
        30068,
        30038,
        30037,
        30035,
        30045,
        30041,
        30035,
        30033,
        30045,
        30039,
        30036,
        30039,
        30042,
        30035,
        30039,
        30043,
        30040,
        30043,
        30041,
        30039,
        30040,
        30039,
        30047,
        30043,
        30044,
        30043,
        30042,
        30046,
        30044,
        30045,
        30046,
        30040,
        30043,
        30045,
        30047,
        30052,
        30048,
        30051,
        30048,
        30046,
        30045,
        30048,
        30048,
        30045,
        30044,
        30050,
        30043,
        30046,
        30046,
        30042,
        30042,
        30046,
        30049,
        30047,
        30044,
        30047,
        30047,
        30040,
        30047,
        30047,
        30045,
        30043,
        30046,
        30043,
        30044,
        30043,
        30041,
        30045,
        30046,
        30042,
        30047,
        30044,
        30047,
        30045,
        30047,
        30048,
        30044,
        30052,
        30051,
        30045,
        30046,
        30045,
        30050,
        30046,
        30044,
        30045,
        30046,
        30044,
        30048,
        30050,
        30044,
        30041,
        30041,
        30046,
        30048,
        30045,
        30046,
        30048,
        30044,
        30039,
        30039,
        30042,
        30046,
        30044,
        30044,
        30046,
        30046,
        30045,
        30047,
        30047,
        30045,
        30046,
        30046,
        30050,
        30042,
        30045,
        30042,
        30047,
        30046,
        30046,
        30046,
        30049,
        30049,
        30047,
        30050,
        30048,
        30044,
        30044,
        30042,
        30042,
        30049,
        30048,
        30045,
        30048,
        30041,
        30038,
        30047,
        30050,
        30045,
        30050,
        30052,
        30041,
        30049,
        30048,
        30042,
        30047,
        30043,
        30045,
        30045,
        30046,
        30047,
        30046,
        30045,
        30041,
        30048,
        30047,
        30042,
        30050,
        30044,
        30042,
        30045,
        30044,
        30046,
        30047,
        30045,
        30043,
        30042,
        30047,
        30044,
        30041,
        30047,
        30043,
        30042,
        30052,
        30048,
        30041,
        30048,
        30049,
        30045,
        30048,
        30049,
        30050,
        30053,
        30051,
        30046,
        30051,
        30048,
        30045,
        30049,
        30049,
        30044,
        30049,
        30046,
        30045,
        30044,
        30044,
        30039,
        30046,
        30048,
        30044,
        30049,
        30047,
        30044,
        30045,
        30047,
        30042,
        30046,
        30040,
        30046,
        30047,
        30040,
        30042,
        30044,
        30046,
        30042,
        30046,
        30044,
        30038,
        30048,
        30048,
        30042,
        30044,
        30046,
        30044,
        30043,
        30047,
        30042,
        30044,
        30046,
        30046,
        30047,
        30046,
        30042,
        30045,
        30048,
        30042,
        30044,
        30046,
        30046,
        30043,
        30044,
        30046,
        30044,
        30051,
        30041,
        30044,
        30048,
        30043,
        30049,
        30047,
        30048,
        30043,
        30050,
        30051,
        30044,
        30049,
        30047,
        30046,
        30047,
        30049,
        30048,
        30047,
        30049,
        30045,
        30046,
        30046,
        30043,
        30049,
        30049,
        30042,
        30044,
        30045,
        30044,
        30044,
        30046,
        30045,
        30045,
        30041,
        30043,
        30044,
        30046,
        30039,
        30042,
        30046,
        30040,
        30045,
        30044,
        30048,
        30041,
        30046,
        30048,
        30040,
        30043,
        30049,
        30045,
        30047,
        30046,
        30047,
        30046,
        30041
      ]
    }
  ],
  "app_os": "win",
  "app_name": "PhotosynQ",
  "app_version": "0.3.8",
  "app_device": "x86-32",
  "location": [
    "-32.9685385",
    "-60.6568252"
  ],
  "ConsoleMacro": "285"
}
Img 20171030 190259
Created by

Rodrigo Gomez


Protocol connections:
1
Latest Update:
Feb 2018