Fv/Fm


Actinic 10
var data = json.data_raw;
var output = {};
var sample_cal = MathMEAN(data.slice(1,9));
var baseline;


var sample_cal = json.detector_read1;//This is for NIR 940nm

var shinyness = (sample_cal-json.recall["ir_baseline_yint[5]"])/json.recall["ir_baseline_slope[5]"]; // where 0 is dull black electrical tape, and 1 is shiny aluminum
var baseline = json.recall["ir_baseline_slope[3]"]*shinyness+json.recall["ir_baseline_yint[3]"]; //ベースラインをNIRで推定したShinynessと3に関する傾き・切片で決定(3パルス目とかではなさそうう)
if (!baseline || !json.recall["ir_baseline_yint[5]"] || sample_cal == 65535) {
  baseline = 0;
}

//var baseline = MathMEAN(data.slice(5,19));  // baseline を左のように単純に初期の値にしてはダメなものか?


var F0 = MathMEAN(data.slice(60,70)) - baseline;
//var Fm_sort = data.slice(71,121).sort(); // よく分からないからパルス時の終盤の蛍光値に↓
var Fm = MathMEAN(data.slice(71,121)) - baseline; //
var fvfm = (Fm-F0)/Fm;

// dark adapted values
output ["F0"] = MathROUND(F0,0); //小数点"0"位まで
output ["Fm"] = MathROUND(Fm,0);


output["Fv/Fm"] = MathROUND(fvfm,3); // if the top values are greater than 10% of the mean value of midle 20 data points, then the macro shows the mean of the midle group of values \

output ["baseline"] = MathROUND(baseline,2) ;
output ["shinyness"] = MathROUND(shinyness,3) ;
output["Thickness"] = json.thickness; //json.thickness_raw; 


//output ["ir_baseline_slope[4]"] = json.recall["ir_baseline_yint[1]"] ; //パラメータの意味を探索する用


output["order"] = ["F0","Fm","Fv/Fm","Thickness","baseline"];
return output;
{
  "time_offset": -540,
  "time": 1493458456708,
  "device_name": "MultispeQ",
  "device_version": "1",
  "device_id": "01:12:52:58",
  "device_battery": 86,
  "device_firmware": 1.17,
  "sample": [
    {
      "time": 1493458456724,
      "protocol_id": 1,
      "detector_read1": 7453,
      "light_intensity": 5,
      "r": 2,
      "g": 1,
      "b": 1,
      "light_intensity_raw": 3,
      "temperature": 24.690001,
      "humidity": 37.9375,
      "pressure": 1002.56842,
      "temperature2": 24.459999,
      "humidity2": 38.24707,
      "pressure2": 1002.096252,
      "contactless_temp": 26.18,
      "thickness": 0.25,
      "compass_direction": "E",
      "compass": "90.00",
      "angle": 1.77,
      "angle_direction": "SW",
      "pitch": 0.86,
      "roll": -1.55,
      "recall": {
        "time": 1493458468056,
        "colorcal_blank1[1]": 20978,
        "colorcal_blank1[2]": 25386,
        "colorcal_blank1[3]": 30262,
        "colorcal_blank1[4]": 34693.5,
        "colorcal_blank1[6]": 31865,
        "colorcal_blank1[8]": 26552,
        "colorcal_blank1[9]": 30009,
        "colorcal_blank1[10]": 33426,
        "colorcal_blank2[1]": 19350.5,
        "colorcal_blank2[2]": 18002.5,
        "colorcal_blank2[3]": 22659,
        "colorcal_blank2[4]": 17322,
        "colorcal_blank2[6]": 16254,
        "colorcal_blank2[8]": 17067.5,
        "colorcal_blank2[9]": 18651,
        "colorcal_blank2[10]": 16710,
        "colorcal_blank3[1]": 18454,
        "colorcal_blank3[2]": 9577.5,
        "colorcal_blank3[3]": 20198,
        "colorcal_blank3[4]": 12366,
        "colorcal_blank3[6]": 5797.5,
        "colorcal_blank3[8]": 6238,
        "colorcal_blank3[9]": 5510.5,
        "colorcal_blank3[10]": 6057,
        "colorcal_intensity1_slope[2]": 2.183,
        "colorcal_intensity1_yint[2]": 6.2,
        "colorcal_intensity2_slope[2]": 2.32,
        "colorcal_intensity2_yint[2]": 4.8,
        "colorcal_intensity3_slope[2]": 2.547,
        "colorcal_intensity3_yint[2]": -18,
        "ir_baseline_slope[5]": 6044,
        "ir_baseline_yint[5]": 9756,
        "ir_baseline_slope[3]": 686,
        "ir_baseline_yint[3]": 935
      },
      "data_raw": [
        50,
        56,
        42,
        53,
        51,
        43,
        58,
        50,
        49,
        59,
        50,
        49,
        43,
        53,
        49,
        57,
        51,
        44,
        55,
        52,
        2974,
        2995,
        3025,
        3046,
        3063,
        3091,
        3105,
        3126,
        3144,
        3157,
        3175,
        3187,
        3204,
        3219,
        3229,
        3245,
        3249,
        3265,
        3274,
        3285,
        3297,
        3303,
        3314,
        3319,
        3328,
        3331,
        3345,
        3347,
        3358,
        3361,
        3369,
        3367,
        3378,
        3378,
        3390,
        3388,
        3397,
        3397,
        3401,
        3401,
        3410,
        3409,
        3415,
        3415,
        3422,
        3421,
        3428,
        3429,
        3431,
        3435,
        3435,
        8973,
        9904,
        10307,
        10503,
        10615,
        10688,
        10735,
        10773,
        10806,
        10833,
        10851,
        10865,
        10879,
        10898,
        10910,
        10917,
        10932,
        10938,
        10948,
        10954,
        10961,
        10971,
        10976,
        10978,
        10983,
        10992,
        10995,
        10997,
        11006,
        11009,
        11009,
        11011,
        11021,
        11025,
        11027,
        11030,
        11031,
        11035,
        11037,
        11035,
        11038,
        11041,
        11043,
        11045,
        11044,
        11046,
        11042,
        11045,
        11048,
        10038,
        9296,
        8763,
        8357,
        8029,
        7763,
        7536,
        7353,
        7199,
        7055,
        6931,
        6829,
        6733,
        6647,
        6565,
        6501,
        6437,
        6376,
        6328,
        6281,
        6237,
        6192,
        6161,
        6121,
        6089,
        6055,
        6033,
        6007,
        5985,
        5958,
        5939,
        5921,
        5895,
        5875,
        5862,
        5847,
        5827,
        5805,
        5796,
        5781,
        5767,
        5748,
        5739,
        5725,
        5709,
        5695,
        5679,
        5671,
        5661,
        5649,
        5628,
        5621,
        5607,
        5593,
        5584,
        5567,
        5556,
        5548,
        5536,
        5521,
        5507,
        5498,
        5488,
        5478,
        5465,
        5450,
        5442,
        5435,
        5422,
        5413,
        5396,
        5386,
        5379,
        5368,
        5356,
        5344,
        5329,
        5320,
        5313,
        5304,
        5292,
        5281,
        5270,
        5253,
        5246,
        5239,
        5229,
        5218,
        5209,
        5193,
        5185,
        5181,
        5170,
        5158,
        5149,
        5142,
        5122,
        5110,
        5108,
        5096,
        5089,
        5079,
        5071,
        5059,
        5046,
        5035,
        5035,
        5025,
        5016,
        5007,
        4998,
        4991,
        4977,
        4966,
        4958,
        4953,
        4948,
        4938,
        4930,
        4919,
        4913,
        4905,
        4901,
        4886,
        4877,
        4869,
        4862,
        4855,
        4849,
        4841,
        4835,
        4828,
        4817,
        4811,
        4805,
        4795,
        4786,
        4780,
        4773,
        4766,
        4760,
        4757,
        4748,
        4743,
        4737,
        4732,
        4723,
        4715,
        4708,
        4704,
        4697,
        4692,
        4683,
        4677,
        4670,
        4663,
        4657,
        4651,
        4645,
        4641,
        4631,
        4629,
        4627,
        4620,
        4615,
        4607,
        4599,
        4598,
        4590,
        4584,
        4582,
        4575,
        4568,
        4564,
        4557,
        4554,
        4550,
        4545,
        4540,
        4532,
        4527,
        4523,
        4519,
        4517,
        4508,
        4506,
        4500,
        4495,
        4492,
        4487,
        4483,
        4478,
        4476,
        4471,
        4465,
        4462,
        4459,
        4453,
        4449,
        4448,
        4444,
        4437,
        4433,
        4431,
        4427,
        4421,
        4418,
        4413,
        4407,
        4403,
        4400,
        4396,
        4392,
        4388,
        4386,
        4381,
        4379,
        4376,
        4373,
        4368,
        4367,
        4363,
        4362,
        4359,
        4355,
        4353,
        4349,
        4346,
        4343,
        4341,
        4337,
        4334,
        4332,
        4325,
        4325,
        4324,
        4319,
        4317,
        4316,
        4308,
        4303,
        4300,
        4299,
        4295,
        4296,
        4294,
        4291,
        4290,
        4287,
        4285,
        4282,
        4280,
        4276,
        4271,
        4267,
        4267,
        4263,
        4260,
        4261,
        4260,
        4258,
        4253,
        4253,
        4251,
        4246,
        4245,
        4244,
        4235,
        4234,
        4233,
        4234,
        4233,
        4230,
        4228,
        4226,
        4225,
        4223,
        4214,
        4213,
        4212,
        4212,
        4211,
        4209,
        4207,
        4204,
        4202,
        4202,
        4199,
        4195,
        4194,
        4191,
        4193,
        4193,
        4189,
        4188,
        4187,
        4183,
        4178,
        4174,
        4173,
        4176,
        4175,
        4172,
        4171,
        4169,
        4167,
        4163,
        4164,
        4163,
        4164,
        4161,
        4159,
        4157,
        4155,
        4153,
        4150,
        4147,
        4150,
        4149,
        4145,
        4146,
        4143,
        4138,
        4137,
        4139,
        4139,
        4137,
        4136,
        4133,
        4130,
        4127,
        4132,
        4131,
        4127,
        4129,
        4123,
        4119,
        4121,
        4121,
        4122,
        4119,
        4116,
        4111,
        4112,
        4114,
        4112,
        4111,
        4111,
        4106,
        4103,
        4106,
        4105,
        4103,
        4103,
        4095,
        4093,
        4101,
        4097,
        4095,
        4093,
        4087,
        4087,
        4091,
        4087,
        4089,
        4085,
        4081,
        4086,
        4083,
        4082,
        4080,
        4078,
        4077,
        4074,
        4077,
        4078,
        4070,
        4069,
        4075,
        4070,
        4071,
        4070,
        4067,
        4068,
        4069,
        4069,
        4068,
        4059,
        4067,
        4063,
        4064,
        4061,
        4055,
        4061,
        4058,
        4059,
        4055,
        4055,
        4057,
        4054,
        4055,
        4048,
        4050,
        4053,
        4050,
        4051,
        4044,
        4049,
        4048,
        4049,
        4045,
        4041,
        4045,
        4042,
        4043,
        4038,
        4042,
        4040,
        4041,
        4037,
        4033,
        4038,
        4038,
        4038,
        4033,
        4038,
        4036,
        4037,
        4028,
        4031,
        4033,
        4033,
        4029,
        4025,
        4029,
        4029,
        4029,
        4023,
        4027,
        4025,
        4026,
        4021,
        4025,
        4023,
        4025,
        4018,
        4022,
        4020,
        4022,
        4014,
        4021,
        4019,
        4019,
        4012,
        4018,
        4015,
        4015,
        4010,
        4013,
        4013,
        4013,
        4009,
        4012,
        4010,
        4012,
        4007,
        4011,
        4007,
        4010,
        4003,
        4006,
        4007,
        4009,
        4003,
        4006,
        4005,
        4001,
        4003,
        4005,
        4005,
        4001,
        4000,
        4001,
        4003,
        3997,
        4002,
        4002,
        3999,
        3995,
        3999,
        3997,
        3995,
        3999,
        3997,
        3999,
        3993,
        3996,
        3997,
        3991,
        3995,
        3993,
        3993,
        3987,
        3992,
        3993,
        3990,
        3989,
        3990,
        3991,
        3986,
        3990,
        3991,
        3987,
        3984,
        3988,
        3989,
        3983,
        3988,
        3987,
        3981,
        3986,
        3987,
        3985,
        3984,
        3985,
        3984,
        3979,
        3986,
        3985,
        3979,
        3984,
        3982,
        3980,
        3979,
        3981,
        3983,
        3975,
        3981,
        3979,
        3975,
        3979,
        3981,
        3974,
        3978,
        3978,
        3977,
        3975,
        3977,
        3977,
        3973,
        3976,
        3975,
        3971,
        3976,
        3975,
        3970,
        3973,
        3973,
        3971,
        3975,
        3973,
        3970,
        3973,
        3973,
        3969,
        3973,
        3973,
        3969,
        3971,
        3972,
        3971,
        3971,
        3972,
        3969,
        3967,
        3971,
        3969,
        3966,
        3970,
        3969,
        3964,
        3970,
        3969,
        3967,
        3967,
        3967,
        3965,
        3969,
        3966,
        3967,
        3966,
        3965,
        3965,
        3963,
        3965,
        3963,
        3966,
        3963,
        3963,
        3964,
        3959,
        3963,
        3965,
        3960,
        3963,
        3963,
        3959,
        3964,
        3963,
        3958,
        3963,
        3961,
        3956,
        3961,
        3961,
        3957,
        3961,
        3963,
        3959,
        3959,
        3959,
        3961,
        3963,
        3955,
        3962,
        3959,
        3955,
        3960,
        3961,
        3955,
        3960,
        3955,
        3959,
        3960,
        3955,
        3959,
        3959,
        3956,
        3958,
        3959,
        3955,
        3956,
        3955,
        3958,
        3958,
        3953,
        3958,
        3958,
        3952,
        3957,
        3955,
        3957,
        3957,
        3953,
        3956,
        3955,
        3951,
        3957,
        3953,
        3956,
        3956,
        3951,
        3954,
        3958,
        3953,
        3954,
        3953,
        3955,
        3956,
        3951,
        3956,
        3951,
        3955,
        3956,
        3949,
        3955,
        3955,
        3950,
        3951,
        3951,
        3955,
        3955,
        3950,
        3953,
        3951,
        3955,
        3955,
        3950,
        3953,
        3954,
        3954,
        3954,
        3949,
        3954,
        3956,
        3950,
        3953,
        3950,
        3953,
        3955,
        3951,
        3955,
        3949,
        3953,
        3955,
        3950,
        3955,
        3950,
        3953,
        3952,
        3950,
        3955,
        3947,
        3951,
        3950,
        3955,
        3954,
        3949,
        3953,
        3952,
        3953,
        3953,
        3948,
        3953,
        3950,
        3955,
        3955,
        3949,
        3954,
        3948,
        3953,
        3953,
        3954,
        3953,
        3949,
        3954,
        3950,
        3953,
        3953,
        3953,
        3955,
        3949,
        3954,
        3950,
        3954,
        3953,
        3950,
        3956,
        3949,
        3955,
        3954,
        3953,
        3952,
        3949,
        3955,
        3949,
        3955,
        3955,
        3955,
        3957,
        3948,
        3955,
        3950,
        3954,
        3957,
        3953,
        3955,
        3951,
        3956,
        3950,
        3954,
        3954,
        3954,
        3956,
        3953,
        3955,
        3951,
        3953,
        3952,
        3956,
        3958,
        3954,
        3958,
        3951,
        3955,
        3951,
        3956,
        3954,
        3958,
        3957,
        3956,
        3957,
        3949,
        3958,
        3953,
        3957,
        3955,
        3957,
        3957,
        3959,
        3959,
        3951,
        3960,
        3954,
        3957,
        3953,
        3958,
        3954,
        3957,
        3958,
        3961,
        3959,
        3956,
        3959,
        3955,
        3958,
        3955,
        3959,
        3955,
        3959,
        3959,
        3959,
        3961,
        3960,
        3962,
        3957,
        3961,
        3956,
        3959,
        3960,
        3962,
        3957,
        3963,
        3962,
        3962,
        3963,
        3961,
        3962,
        3959,
        3962,
        3958,
        3964,
        3957,
        3963,
        3959,
        3964,
        3959,
        3965,
        3962,
        3964,
        3963,
        3965,
        3965,
        3966,
        3966,
        3966,
        3965,
        3968,
        3967,
        3963,
        3967,
        3963,
        3966,
        3962,
        3967,
        3965,
        3967,
        3963,
        3968,
        3963,
        3970,
        3965,
        3967,
        3965,
        3971,
        3967,
        3969,
        3967,
        3968,
        3968,
        3971,
        3968,
        3969,
        3971,
        3971,
        3972,
        3974,
        3973,
        3973,
        3973,
        3966,
        3973,
        3967,
        3973,
        3969,
        3972,
        3969,
        3973,
        3971,
        3975,
        3971,
        3975,
        3972,
        3974,
        3971,
        3976,
        3973,
        3974,
        3971,
        3973,
        3972,
        3975,
        3970,
        3977,
        3973,
        3978,
        3973,
        3975,
        3973,
        3978,
        3974,
        3978,
        3974,
        3979,
        3975,
        3980,
        3975,
        3979,
        3976,
        3979,
        3976,
        3979,
        3978,
        3981,
        3977,
        3984,
        3978,
        3982,
        3978,
        3985,
        3980,
        3985,
        3980,
        3985,
        3979,
        3985,
        3979,
        3987,
        3983,
        3986,
        3981,
        3987,
        3982,
        3987,
        3983,
        3986,
        3987,
        3991,
        3988,
        3990,
        3990,
        3991,
        3989,
        3991,
        3990,
        3986,
        3990,
        3984,
        3990,
        3985,
        3989,
        3986,
        3992,
        3988,
        3994,
        3988,
        3995,
        3992,
        3996,
        3993,
        3995,
        3996,
        3995,
        3995,
        3997,
        3996,
        3997,
        3997,
        3997,
        3998,
        3995,
        3999,
        3992,
        3999,
        3996,
        4001,
        3995,
        4001,
        3999,
        4003
      ]
    }
  ],
  "app_os": "win",
  "app_name": "PhotosynQ",
  "app_version": "0.3.6",
  "app_device": "x86-64",
  "location": [
    "35.1814464",
    "136.9063980"
  ],
  "ConsoleMacro": "209"
}
Default avatar
Created by

DS


Protocol connections:
1
Latest Update:
Jul 2018