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;//es para la luz 940 (For NIR 940nm)

//"ir_baseline_yint[5]" とかの値は、protocol上で recall されているので使えるのかな。
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]"];

if (!baseline || !json.recall["ir_baseline_yint[5]"] || sample_cal == 65535) {						// if it hasn't been calibrated or there's an error or it's maxed, set baseline == 0
  baseline = 0;
}

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

//Fv/Fmはカット。いきなりActinic 光を照射
//var F0 = MathMEAN(data.slice(35,40)) - baseline;
//var Fm_sort = data.slice(41,91).sort();
//var Fm = MathMEAN(Fm_sort.slice(45,49)) - baseline; // take the 4 largest values and average them
//var fvfm = (Fm-F0)/Fm;

// dark adapted values
//output ['F0'] = MathROUND(F0,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 \


// Fs values
var x = 0;
var Fs = {};
var desFs = {};

for (i = 1; i < 11; i++) {
    var x = 100 * i;
    Fs [i] = MathMEAN(data.slice(x-10,x-2)) - baseline;
    desFs [i] = MathSTDEVS(data.slice(x-10,x-2));
    output ["Fs "+ i ] = MathROUND(Fs[i],0);
}

var FmP = {};
var x = 0;
var med1 = [];



for (i = 1; i < 11 ; i++) {
    var x = 50 + 100 * i;
    //var sat_vals = data.slice(x-30,x-10).sort();  // sort the saturating light values from low to high (値を昇順で並べて、)
    //FmP [i] = MathMEAN(sat_vals.slice(45,50)) - baseline; // take the 5 largest values and average them (最も高い値から5つを平均)
    FmP [i] = MathMEAN(data.slice(x-30,x-2)) - baseline; //単純に平均
    output ["Fm' " + i ] = MathROUND(FmP [i],0);
}

var phi = {};

for (i = 1; i < 11; i++) {

  phi [i] = (FmP [i] - Fs [i]) / FmP [i];
  
  output ["Phi2 "+ i ] = MathROUND(phi[i],4);
  
}


var LEF = {};

for (i = 1; i < 11; i++) {

  LEF [i] = phi [i]*0.84*0.5*1000 ;
  
  output ["LEF "+ i ] = MathROUND(LEF [i],2);
  
}

output ["baseline"] = MathROUND(baseline,2) ;

output["order"] = ["LEF 2","LEF 4","LEF 6","LEF 8","LEF 10","Phi2 2","Phi2 4","Phi2 6","Phi2 8","Phi2 10"];
return output;
{
  "time_offset": -540,
  "time": 1493720449062,
  "device_name": "MultispeQ",
  "device_version": "1",
  "device_id": "01:12:52:58",
  "device_battery": 47,
  "device_firmware": 1.17,
  "sample": [
    {
      "time": 1493720449102,
      "protocol_id": 1,
      "detector_read1": 6142,
      "light_intensity": 6,
      "r": 1,
      "g": 1,
      "b": 0,
      "light_intensity_raw": 3,
      "temperature": 24.780001,
      "humidity": 34.285156,
      "pressure": 1018.727051,
      "temperature2": 24.59,
      "humidity2": 34.599609,
      "pressure2": 1018.33905,
      "contactless_temp": 23.29,
      "thickness": 0.14,
      "compass_direction": "E",
      "compass": "90.00",
      "angle": 4,
      "angle_direction": "E",
      "pitch": 0,
      "roll": 4,
      "recall": {
        "time": 1493720684911,
        "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": [
        61,
        54,
        57,
        50,
        58,
        56,
        57,
        49,
        55,
        52,
        49,
        47,
        53,
        57,
        46,
        55,
        53,
        47,
        58,
        53,
        52,
        45,
        55,
        56,
        47,
        54,
        57,
        50,
        54,
        59,
        48,
        53,
        56,
        48,
        54,
        52,
        59,
        55,
        46,
        56,
        58,
        47,
        55,
        55,
        59,
        54,
        49,
        54,
        53,
        53,
        2411,
        2411,
        2405,
        2410,
        2409,
        2409,
        2410,
        2406,
        2411,
        2407,
        2409,
        2410,
        2406,
        2407,
        2406,
        2409,
        2410,
        2405,
        2409,
        2405,
        2409,
        2407,
        2408,
        2409,
        2404,
        2407,
        2407,
        2409,
        2408,
        2405,
        2407,
        2405,
        2407,
        2409,
        2404,
        2408,
        2404,
        2407,
        2407,
        2408,
        2407,
        2404,
        2407,
        2405,
        2407,
        2408,
        2403,
        2406,
        2402,
        2407,
        2494,
        2513,
        2521,
        2528,
        2531,
        2535,
        2535,
        2541,
        2541,
        2543,
        2541,
        2537,
        2545,
        2542,
        2540,
        2544,
        2544,
        2543,
        2546,
        2542,
        2540,
        2543,
        2539,
        2542,
        2542,
        2537,
        2542,
        2538,
        2535,
        2543,
        2539,
        2534,
        2541,
        2540,
        2534,
        2539,
        2533,
        2537,
        2535,
        2532,
        2537,
        2535,
        2532,
        2535,
        2536,
        2531,
        2535,
        2534,
        2530,
        2533,
        2367,
        2367,
        2370,
        2363,
        2368,
        2363,
        2366,
        2367,
        2362,
        2369,
        2363,
        2369,
        2367,
        2363,
        2367,
        2362,
        2367,
        2368,
        2363,
        2367,
        2361,
        2367,
        2366,
        2364,
        2365,
        2361,
        2368,
        2367,
        2364,
        2365,
        2363,
        2366,
        2368,
        2369,
        2367,
        2361,
        2367,
        2366,
        2366,
        2367,
        2360,
        2367,
        2365,
        2365,
        2367,
        2362,
        2366,
        2367,
        2366,
        2366,
        2453,
        2474,
        2483,
        2487,
        2495,
        2500,
        2502,
        2499,
        2501,
        2505,
        2505,
        2506,
        2501,
        2503,
        2509,
        2509,
        2506,
        2507,
        2502,
        2503,
        2508,
        2507,
        2506,
        2506,
        2501,
        2502,
        2506,
        2504,
        2504,
        2503,
        2499,
        2502,
        2505,
        2503,
        2502,
        2499,
        2499,
        2503,
        2501,
        2502,
        2501,
        2497,
        2496,
        2501,
        2501,
        2500,
        2500,
        2494,
        2497,
        2500,
        2346,
        2343,
        2347,
        2346,
        2345,
        2343,
        2347,
        2345,
        2341,
        2347,
        2345,
        2342,
        2345,
        2347,
        2347,
        2343,
        2348,
        2345,
        2341,
        2348,
        2347,
        2347,
        2342,
        2348,
        2347,
        2342,
        2346,
        2345,
        2343,
        2341,
        2347,
        2346,
        2342,
        2346,
        2345,
        2342,
        2345,
        2345,
        2345,
        2342,
        2345,
        2345,
        2341,
        2347,
        2345,
        2347,
        2342,
        2345,
        2345,
        2341,
        2439,
        2459,
        2468,
        2475,
        2475,
        2479,
        2479,
        2487,
        2490,
        2490,
        2493,
        2493,
        2491,
        2492,
        2492,
        2493,
        2492,
        2488,
        2488,
        2487,
        2487,
        2489,
        2491,
        2491,
        2494,
        2490,
        2491,
        2491,
        2489,
        2490,
        2489,
        2490,
        2489,
        2489,
        2488,
        2485,
        2484,
        2481,
        2483,
        2485,
        2486,
        2488,
        2488,
        2487,
        2487,
        2484,
        2486,
        2486,
        2484,
        2485,
        2329,
        2333,
        2333,
        2331,
        2326,
        2328,
        2333,
        2331,
        2331,
        2327,
        2331,
        2332,
        2333,
        2331,
        2327,
        2329,
        2332,
        2331,
        2333,
        2327,
        2327,
        2333,
        2332,
        2331,
        2326,
        2328,
        2332,
        2333,
        2331,
        2327,
        2326,
        2334,
        2332,
        2330,
        2327,
        2326,
        2332,
        2330,
        2331,
        2327,
        2326,
        2333,
        2333,
        2330,
        2326,
        2326,
        2330,
        2332,
        2332,
        2327,
        2420,
        2449,
        2456,
        2466,
        2470,
        2473,
        2473,
        2476,
        2477,
        2480,
        2480,
        2481,
        2481,
        2481,
        2481,
        2482,
        2482,
        2481,
        2479,
        2479,
        2477,
        2477,
        2476,
        2475,
        2476,
        2474,
        2474,
        2474,
        2475,
        2476,
        2474,
        2472,
        2474,
        2473,
        2474,
        2473,
        2472,
        2472,
        2472,
        2471,
        2471,
        2470,
        2470,
        2470,
        2470,
        2470,
        2469,
        2469,
        2470,
        2468,
        2314,
        2314,
        2319,
        2320,
        2319,
        2318,
        2317,
        2317,
        2314,
        2313,
        2314,
        2319,
        2320,
        2317,
        2319,
        2317,
        2314,
        2311,
        2314,
        2316,
        2317,
        2317,
        2315,
        2319,
        2315,
        2311,
        2313,
        2312,
        2318,
        2316,
        2316,
        2315,
        2317,
        2313,
        2314,
        2315,
        2317,
        2317,
        2315,
        2317,
        2317,
        2313,
        2311,
        2312,
        2315,
        2316,
        2317,
        2316,
        2318,
        2315,
        2411,
        2431,
        2441,
        2451,
        2455,
        2458,
        2461,
        2466,
        2466,
        2469,
        2469,
        2471,
        2469,
        2471,
        2472,
        2470,
        2469,
        2468,
        2468,
        2470,
        2473,
        2470,
        2470,
        2472,
        2471,
        2471,
        2469,
        2467,
        2467,
        2466,
        2471,
        2469,
        2470,
        2471,
        2470,
        2469,
        2466,
        2465,
        2465,
        2467,
        2469,
        2468,
        2466,
        2468,
        2466,
        2467,
        2461,
        2463,
        2461,
        2466,
        2307,
        2305,
        2305,
        2305,
        2303,
        2304,
        2304,
        2301,
        2302,
        2300,
        2301,
        2302,
        2301,
        2303,
        2303,
        2305,
        2304,
        2303,
        2305,
        2306,
        2306,
        2307,
        2303,
        2303,
        2303,
        2305,
        2305,
        2305,
        2304,
        2300,
        2299,
        2300,
        2299,
        2300,
        2299,
        2303,
        2305,
        2304,
        2304,
        2304,
        2305,
        2304,
        2305,
        2304,
        2302,
        2303,
        2304,
        2304,
        2303,
        2303,
        2404,
        2428,
        2438,
        2445,
        2453,
        2456,
        2457,
        2455,
        2455,
        2463,
        2462,
        2466,
        2463,
        2459,
        2460,
        2464,
        2466,
        2465,
        2463,
        2461,
        2463,
        2466,
        2465,
        2465,
        2459,
        2461,
        2462,
        2463,
        2464,
        2465,
        2457,
        2458,
        2464,
        2461,
        2464,
        2461,
        2457,
        2458,
        2460,
        2460,
        2461,
        2457,
        2456,
        2459,
        2459,
        2460,
        2461,
        2454,
        2455,
        2457,
        2292,
        2293,
        2295,
        2293,
        2294,
        2290,
        2289,
        2287,
        2287,
        2286,
        2287,
        2287,
        2289,
        2287,
        2287,
        2289,
        2287,
        2287,
        2288,
        2287,
        2287,
        2288,
        2286,
        2288,
        2287,
        2288,
        2287,
        2287,
        2286,
        2287,
        2287,
        2287,
        2285,
        2286,
        2287,
        2286,
        2287,
        2287,
        2287,
        2285,
        2286,
        2286,
        2286,
        2287,
        2285,
        2288,
        2287,
        2287,
        2287,
        2287,
        2389,
        2413,
        2429,
        2437,
        2442,
        2447,
        2445,
        2447,
        2453,
        2454,
        2455,
        2451,
        2451,
        2458,
        2457,
        2461,
        2453,
        2459,
        2456,
        2458,
        2451,
        2459,
        2455,
        2459,
        2451,
        2457,
        2455,
        2458,
        2451,
        2455,
        2457,
        2456,
        2451,
        2454,
        2454,
        2455,
        2452,
        2450,
        2454,
        2454,
        2450,
        2450,
        2452,
        2453,
        2451,
        2448,
        2453,
        2452,
        2453,
        2446,
        2282,
        2277,
        2278,
        2275,
        2276,
        2279,
        2279,
        2281,
        2279,
        2281,
        2282,
        2282,
        2281,
        2282,
        2277,
        2277,
        2277,
        2278,
        2277,
        2280,
        2279,
        2280,
        2281,
        2279,
        2281,
        2280,
        2281,
        2282,
        2277,
        2276,
        2275,
        2277,
        2277,
        2280,
        2279,
        2279,
        2279,
        2279,
        2281,
        2279,
        2280,
        2278,
        2276,
        2275,
        2275,
        2275,
        2277,
        2277,
        2280,
        2279,
        2386,
        2409,
        2421,
        2428,
        2432,
        2438,
        2442,
        2443,
        2441,
        2447,
        2449,
        2445,
        2449,
        2449,
        2449,
        2447,
        2450,
        2452,
        2446,
        2451,
        2451,
        2449,
        2451,
        2451,
        2448,
        2447,
        2449,
        2451,
        2443,
        2450,
        2449,
        2446,
        2450,
        2450,
        2446,
        2444,
        2448,
        2449,
        2442,
        2448,
        2447,
        2443,
        2445,
        2445,
        2442,
        2443,
        2443,
        2446,
        2440,
        2446,
        2270,
        2272,
        2271,
        2267,
        2266,
        2266,
        2270,
        2271,
        2269,
        2273,
        2273,
        2268,
        2265,
        2266,
        2270,
        2273,
        2269,
        2273,
        2270,
        2268,
        2265,
        2266,
        2271,
        2271,
        2269,
        2271,
        2271,
        2267,
        2265,
        2266,
        2271,
        2271,
        2270,
        2271,
        2271,
        2264,
        2266,
        2266,
        2270,
        2269,
        2269,
        2271,
        2271,
        2266,
        2265,
        2267,
        2269,
        2268,
        2270,
        2271,
        2379,
        2398,
        2416,
        2422,
        2429,
        2428,
        2435,
        2439,
        2435,
        2442,
        2443,
        2437,
        2441,
        2443,
        2442,
        2444,
        2446,
        2441,
        2446,
        2447,
        2441,
        2445,
        2447,
        2440,
        2445,
        2441,
        2445,
        2445,
        2439,
        2444,
        2445,
        2438,
        2446,
        2444,
        2439,
        2442,
        2445,
        2440,
        2443,
        2438,
        2442,
        2441,
        2436,
        2441,
        2440,
        2436,
        2439,
        2441,
        2435,
        2437,
        2260,
        2262,
        2259,
        2256,
        2256,
        2261,
        2260,
        2261,
        2255,
        2255,
        2261,
        2260,
        2261,
        2262,
        2255,
        2257,
        2260,
        2261,
        2260,
        2255,
        2255,
        2260,
        2261,
        2263,
        2259,
        2253,
        2257,
        2261,
        2260,
        2260,
        2256,
        2256,
        2262,
        2257,
        2261,
        2260,
        2255,
        2255,
        2259,
        2258,
        2259,
        2257,
        2254,
        2257,
        2259,
        2260,
        2259,
        2254,
        2255,
        2259,
        2371,
        2396,
        2403,
        2415,
        2421,
        2421,
        2429,
        2433,
        2431,
        2436,
        2435,
        2436,
        2437,
        2434,
        2437,
        2438,
        2439,
        2440,
        2435,
        2439,
        2437,
        2439,
        2439,
        2436,
        2439,
        2437,
        2439,
        2441,
        2439,
        2439,
        2436,
        2439,
        2436,
        2439,
        2439,
        2434,
        2438,
        2435,
        2437,
        2438,
        2433,
        2436,
        2431,
        2435,
        2434,
        2435,
        2434,
        2430,
        2433,
        2433
      ]
    }
  ],
  "app_os": "win",
  "app_name": "PhotosynQ",
  "app_version": "0.3.6",
  "app_device": "x86-64",
  "location": [
    "35.1814464",
    "136.9063980"
  ],
  "ConsoleMacro": "311"
}
Default avatar
Created by

DS


Protocol connections:
5
Latest Update:
Jun 2017