PSI calculations JRP


calculate the redox state of PSI following Klughammer and Schreider 2008. P700 (difference of intensities of 875 nm and 830 nm) phi1=
//============================================
// Macro for data evaluation on PhotosynQ.org
// created: 7/8/2017
//============================================

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

var a = MathMEAN(json.data_raw.slice(142,152));
var b = MathMEAN(json.data_raw.slice(341,351));
var c = MathMEAN(json.data_raw.slice(441,451));
var d = MathMEAN(json.data_raw.slice(641,651));


output["var a"] = a;
output["var b"] = b;
output["var c"] = c;
output["var d"] = d; 
output["p700"] = (b-a);
output["p700+"] = (a-c);
output["p700-"] = (d-b);
output["phi1"] = (b-a)/(d-c); 


//Return data
return output;
{
  "time_offset": 240,
  "time": 1469631117936,
  "device_version": "1",
  "device_id": "d4:f5:7f:ff:ff:ff",
  "device_battery": -16,
  "device_firmware": "1.05",
  "firmware_version": "1.05",
  "device_time": 1467904619,
  "sample": [
    {
      "time": 1469631117947,
      "protocol_id": 1,
      "averages": 32,
      "data_raw": [
        47579,
        47022,
        47017,
        47026,
        47034,
        47039,
        47049,
        47057,
        47059,
        47067,
        47079,
        47080,
        47084,
        47095,
        47097,
        47102,
        47106,
        47110,
        47112,
        47119,
        47122,
        47121,
        47129,
        47128,
        47130,
        47133,
        47133,
        47140,
        47139,
        47139,
        47143,
        47143,
        47147,
        47144,
        47147,
        47150,
        47146,
        47148,
        47150,
        47149,
        47151,
        47153,
        47149,
        47151,
        47152,
        47154,
        47151,
        47153,
        47153,
        47153,
        47151,
        47150,
        47120,
        47104,
        47090,
        47083,
        47073,
        47069,
        47064,
        47053,
        47046,
        47049,
        47043,
        47038,
        47036,
        47034,
        47034,
        47032,
        47028,
        47028,
        47029,
        47027,
        47022,
        47024,
        47024,
        47022,
        47019,
        47022,
        47018,
        47019,
        47021,
        47020,
        47018,
        47016,
        47016,
        47017,
        47017,
        47015,
        47017,
        47014,
        47013,
        47016,
        47013,
        47013,
        47012,
        47012,
        47016,
        47016,
        47013,
        47014,
        47011,
        47014,
        47012,
        47014,
        47014,
        47015,
        47015,
        47012,
        47012,
        47014,
        47014,
        47012,
        47012,
        47011,
        47012,
        47012,
        47011,
        47010,
        47012,
        47012,
        47013,
        47011,
        47014,
        47010,
        47010,
        47011,
        47012,
        47008,
        47012,
        47012,
        47010,
        47012,
        47011,
        47009,
        47010,
        47009,
        47009,
        47010,
        47011,
        47009,
        47010,
        47010,
        47011,
        47012,
        47010,
        47009,
        47014,
        47013,
        47010,
        47010,
        47010,
        46994,
        47006,
        47012,
        47019,
        47027,
        47034,
        47043,
        47049,
        47058,
        47061,
        47070,
        47072,
        47076,
        47086,
        47089,
        47094,
        47101,
        47100,
        47106,
        47111,
        47113,
        47119,
        47120,
        47121,
        47123,
        47128,
        47130,
        47129,
        47133,
        47134,
        47133,
        47133,
        47135,
        47136,
        47137,
        47141,
        47139,
        47138,
        47139,
        47139,
        47141,
        47143,
        47142,
        47143,
        47142,
        47144,
        47142,
        47144,
        47142,
        47145,
        47148,
        47145,
        47147,
        47148,
        47148,
        47146,
        47146,
        47146,
        47145,
        47148,
        47150,
        47146,
        47148,
        47149,
        47145,
        47145,
        47147,
        47147,
        47145,
        47147,
        47145,
        47147,
        47146,
        47148,
        47146,
        47149,
        47149,
        47149,
        47148,
        47147,
        47147,
        47150,
        47148,
        47148,
        47147,
        47144,
        47149,
        47151,
        47148,
        47147,
        47150,
        47149,
        47150,
        47150,
        47149,
        47149,
        47149,
        47151,
        47149,
        47148,
        46954,
        46813,
        46768,
        46755,
        46736,
        46730,
        46722,
        46715,
        46711,
        46707,
        46703,
        46700,
        46700,
        46696,
        46694,
        46691,
        46693,
        46689,
        46690,
        46689,
        46688,
        46688,
        46685,
        46684,
        46686,
        46682,
        46685,
        46680,
        46680,
        46679,
        46678,
        46678,
        46676,
        46676,
        46677,
        46677,
        46674,
        46674,
        46676,
        46678,
        46673,
        46674,
        46674,
        46675,
        46676,
        46673,
        46671,
        46672,
        46672,
        46674,
        46672,
        46670,
        46674,
        46673,
        46670,
        46675,
        46670,
        46667,
        46670,
        46668,
        46668,
        46668,
        46666,
        46669,
        46668,
        46665,
        46669,
        46667,
        46665,
        46667,
        46665,
        46666,
        46665,
        46668,
        46669,
        46663,
        46668,
        46666,
        46667,
        46666,
        46666,
        46665,
        46665,
        46663,
        46664,
        46666,
        46663,
        46667,
        46661,
        46662,
        46665,
        46662,
        46663,
        46663,
        46664,
        46661,
        46661,
        46660,
        46660,
        46663,
        46884,
        46956,
        46977,
        46990,
        46999,
        47009,
        47015,
        47023,
        47030,
        47040,
        47045,
        47053,
        47063,
        47064,
        47071,
        47077,
        47081,
        47091,
        47088,
        47093,
        47098,
        47102,
        47107,
        47106,
        47108,
        47111,
        47115,
        47116,
        47118,
        47119,
        47120,
        47125,
        47124,
        47124,
        47130,
        47128,
        47128,
        47131,
        47132,
        47133,
        47135,
        47135,
        47134,
        47133,
        47136,
        47134,
        47135,
        47136,
        47136,
        47137,
        47136,
        47138,
        47133,
        47136,
        47138,
        47139,
        47138,
        47140,
        47138,
        47137,
        47135,
        47137,
        47136,
        47135,
        47136,
        47138,
        47138,
        47137,
        47140,
        47141,
        47136,
        47134,
        47138,
        47137,
        47138,
        47137,
        47140,
        47137,
        47139,
        47140,
        47140,
        47139,
        47139,
        47139,
        47136,
        47139,
        47137,
        47135,
        47140,
        47139,
        47137,
        47138,
        47137,
        47137,
        47142,
        47137,
        47135,
        47138,
        47138,
        47137,
        43595,
        45523,
        45854,
        45883,
        45889,
        45880,
        45865,
        45862,
        45853,
        45846,
        45837,
        45840,
        45835,
        45831,
        45827,
        45822,
        45826,
        45817,
        45816,
        45821,
        45811,
        45814,
        45811,
        45808,
        45809,
        45808,
        45808,
        45805,
        45805,
        45799,
        45805,
        45800,
        45799,
        45798,
        45800,
        45793,
        45794,
        45798,
        45796,
        45797,
        45795,
        45794,
        45794,
        45793,
        45794,
        45792,
        45787,
        45789,
        45789,
        45784,
        45788,
        45790,
        45782,
        45789,
        45781,
        45784,
        45786,
        45785,
        45784,
        45782,
        45778,
        45776,
        45787,
        45772,
        45781,
        45780,
        45777,
        45780,
        45783,
        45776,
        45776,
        45781,
        45777,
        45778,
        45773,
        45777,
        45778,
        45772,
        45775,
        45775,
        45774,
        45769,
        45773,
        45775,
        45770,
        45780,
        45772,
        45774,
        45771,
        45770,
        45771,
        45770,
        45769,
        45771,
        45773,
        45765,
        45771,
        45772,
        45770,
        45791,
        46606,
        46621,
        46625,
        46618,
        46619,
        46618,
        46616,
        46617,
        46618,
        46620,
        46619,
        46619,
        46621,
        46621,
        46624,
        46620,
        46621,
        46626,
        46625,
        46624,
        46625,
        46626,
        46628,
        46627,
        46628,
        46627,
        46628,
        46628,
        46627,
        46629,
        46633,
        46630,
        46632,
        46633,
        46633,
        46632,
        46631,
        46635,
        46634,
        46634,
        46631,
        46631,
        46633,
        46633,
        46633,
        46634,
        46633,
        46637,
        46637,
        46636,
        46637,
        46640,
        46636,
        46641,
        46639,
        46639,
        46640,
        46638,
        46642,
        46642,
        46641,
        46641,
        46641,
        46642,
        46642,
        46638,
        46639,
        46645,
        46643,
        46640,
        46643,
        46644,
        46641,
        46642,
        46644,
        46642,
        46639,
        46643,
        46641,
        46644,
        46645,
        46642,
        46643,
        46641,
        46640,
        46642,
        46639,
        46640,
        46645,
        46641,
        46643,
        46644,
        46642,
        46642,
        46645,
        46641,
        46643,
        46641,
        46642,
        46641,
        46862,
        46937,
        46958,
        46967,
        46980,
        46990,
        46997,
        47007,
        47011,
        47021,
        47028,
        47034,
        47041,
        47049,
        47053,
        47059,
        47064,
        47068,
        47073,
        47079,
        47085,
        47086,
        47089,
        47091,
        47094,
        47094,
        47097,
        47101,
        47100,
        47103,
        47108,
        47106,
        47109,
        47110,
        47109,
        47111,
        47115,
        47109,
        47112,
        47113,
        47113,
        47113,
        47117,
        47115,
        47115,
        47117,
        47117,
        47116,
        47117,
        47117,
        47116,
        47116,
        47119,
        47121,
        47119,
        47118,
        47117,
        47119,
        47121,
        47119,
        47115,
        47119,
        47119,
        47120,
        47121,
        47121,
        47122,
        47123,
        47123,
        47122,
        47123,
        47121,
        47122,
        47123,
        47122,
        47125,
        47123,
        47125,
        47126,
        47124,
        47127,
        47125,
        47125,
        47126,
        47123,
        47127,
        47126,
        47125,
        47127,
        47128,
        47123,
        47125,
        47128,
        47122,
        47127,
        47126,
        47125,
        47125,
        47126
      ]
    }
  ],
  "app_os": "win",
  "app_name": "PhotosynQ",
  "app_version": "0.3.3",
  "app_device": "x86-32",
  "location": [
    "42.7223734",
    "-84.4745837"
  ],
  "notes": "850nm"
}
Default avatar
Created by

Jonathan R Pleban


Protocol connections:
1
Latest Update:
Jul 2017