Actinic_20記録数減


記録数減
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;
}

//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 < 21; 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 < 21 ; 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 < 21; i++) {

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








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

return output;
{
  "time_offset": -540,
  "time": 1493715907425,
  "device_name": "MultispeQ",
  "device_version": "1",
  "device_id": "01:12:52:58",
  "device_battery": 51,
  "device_firmware": 1.17,
  "sample": [
    [
      {
        "time": 1493715907446,
        "protocol_id": 1,
        "detector_read1": 6150,
        "light_intensity": 12,
        "r": 9,
        "g": 4,
        "b": 3,
        "light_intensity_raw": 15,
        "temperature": 25.549999,
        "humidity": 31.731445,
        "pressure": 1017.463623,
        "temperature2": 25.34,
        "humidity2": 32.102539,
        "pressure2": 1016.990967,
        "contactless_temp": 24.81,
        "thickness": 0.15,
        "compass_direction": "E",
        "compass": "90.00",
        "angle": 4.02,
        "angle_direction": "E",
        "pitch": 0,
        "roll": 4.02,
        "recall": {
          "time": 1493715963456,
          "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": [
          56,
          48,
          57,
          58,
          53,
          55,
          49,
          54,
          48,
          57,
          55,
          51,
          55,
          46,
          57,
          58,
          50,
          54,
          59,
          51,
          55,
          60,
          51,
          54,
          49,
          53,
          52,
          47,
          51,
          54,
          57,
          51,
          55,
          57,
          51,
          57,
          58,
          47,
          57,
          55,
          47,
          51,
          55,
          58,
          50,
          59,
          55,
          59,
          49,
          56,
          3367,
          3365,
          3365,
          3364,
          3367,
          3366,
          3363,
          3365,
          3359,
          3364,
          3358,
          3363,
          3357,
          3362,
          3362,
          3359,
          3359,
          3355,
          3359,
          3353,
          3357,
          3352,
          3355,
          3351,
          3353,
          3355,
          3354,
          3352,
          3351,
          3352,
          3347,
          3350,
          3345,
          3347,
          3346,
          3347,
          3347,
          3347,
          3347,
          3345,
          3346,
          3342,
          3346,
          3340,
          3343,
          3339,
          3341,
          3335,
          3340,
          3335,
          3492,
          3515,
          3538,
          3545,
          3555,
          3553,
          3551,
          3555,
          3553,
          3550,
          3549,
          3551,
          3551,
          3545,
          3549,
          3546,
          3543,
          3541,
          3544,
          3541,
          3539,
          3535,
          3537,
          3537,
          3532,
          3531,
          3531,
          3529,
          3526,
          3527,
          3527,
          3525,
          3520,
          3525,
          3522,
          3522,
          3513,
          3519,
          3517,
          3515,
          3507,
          3511,
          3509,
          3504,
          3503,
          3503,
          3503,
          3496,
          3499,
          3501,
          2885,
          2882,
          2877,
          2882,
          2880,
          2875,
          2881,
          2879,
          2876,
          2874,
          2877,
          2877,
          2871,
          2874,
          2873,
          2871,
          2870,
          2873,
          2869,
          2866,
          2871,
          2867,
          2867,
          2861,
          2866,
          2866,
          2859,
          2864,
          2864,
          2862,
          2859,
          2862,
          2861,
          2856,
          2859,
          2858,
          2858,
          2853,
          2858,
          2855,
          2851,
          2855,
          2854,
          2855,
          2847,
          2853,
          2851,
          2847,
          2851,
          2850,
          2964,
          2980,
          2990,
          3007,
          3010,
          3013,
          3014,
          3015,
          3017,
          3014,
          3012,
          3011,
          3011,
          3011,
          3013,
          3014,
          3014,
          3011,
          3012,
          3009,
          3010,
          3009,
          3007,
          3006,
          3005,
          3003,
          3002,
          3001,
          2999,
          3001,
          2998,
          2999,
          2996,
          2997,
          2997,
          2993,
          2993,
          2987,
          2986,
          2983,
          2983,
          2983,
          2983,
          2983,
          2983,
          2981,
          2982,
          2981,
          2982,
          2979,
          2606,
          2605,
          2603,
          2599,
          2601,
          2605,
          2603,
          2603,
          2604,
          2599,
          2598,
          2600,
          2602,
          2602,
          2599,
          2601,
          2598,
          2599,
          2599,
          2599,
          2600,
          2600,
          2598,
          2595,
          2593,
          2599,
          2600,
          2598,
          2597,
          2599,
          2594,
          2594,
          2595,
          2597,
          2596,
          2595,
          2597,
          2591,
          2593,
          2595,
          2595,
          2595,
          2593,
          2595,
          2589,
          2588,
          2594,
          2593,
          2593,
          2592,
          2695,
          2716,
          2722,
          2728,
          2733,
          2736,
          2738,
          2742,
          2743,
          2745,
          2745,
          2748,
          2753,
          2752,
          2753,
          2752,
          2751,
          2753,
          2751,
          2751,
          2747,
          2746,
          2746,
          2745,
          2747,
          2749,
          2749,
          2746,
          2748,
          2750,
          2747,
          2743,
          2742,
          2740,
          2739,
          2739,
          2742,
          2743,
          2741,
          2741,
          2744,
          2741,
          2741,
          2734,
          2732,
          2732,
          2732,
          2733,
          2735,
          2736,
          2489,
          2486,
          2486,
          2487,
          2486,
          2485,
          2486,
          2483,
          2480,
          2480,
          2481,
          2482,
          2482,
          2486,
          2486,
          2484,
          2485,
          2485,
          2485,
          2485,
          2485,
          2484,
          2485,
          2484,
          2483,
          2484,
          2481,
          2477,
          2479,
          2481,
          2479,
          2478,
          2482,
          2481,
          2484,
          2483,
          2483,
          2482,
          2482,
          2483,
          2481,
          2480,
          2481,
          2483,
          2482,
          2483,
          2481,
          2478,
          2475,
          2476,
          2582,
          2599,
          2611,
          2618,
          2627,
          2631,
          2636,
          2637,
          2639,
          2637,
          2636,
          2639,
          2644,
          2643,
          2644,
          2637,
          2639,
          2644,
          2644,
          2646,
          2645,
          2637,
          2640,
          2643,
          2642,
          2645,
          2639,
          2639,
          2643,
          2641,
          2644,
          2638,
          2636,
          2639,
          2640,
          2643,
          2639,
          2631,
          2635,
          2639,
          2639,
          2639,
          2634,
          2630,
          2633,
          2635,
          2636,
          2636,
          2630,
          2630,
          2433,
          2432,
          2433,
          2432,
          2432,
          2433,
          2431,
          2433,
          2433,
          2430,
          2430,
          2431,
          2427,
          2427,
          2425,
          2426,
          2426,
          2424,
          2426,
          2427,
          2426,
          2424,
          2426,
          2425,
          2425,
          2426,
          2426,
          2426,
          2423,
          2425,
          2425,
          2423,
          2426,
          2425,
          2423,
          2425,
          2424,
          2425,
          2424,
          2423,
          2426,
          2425,
          2423,
          2425,
          2423,
          2424,
          2423,
          2425,
          2423,
          2423,
          2527,
          2549,
          2564,
          2571,
          2577,
          2578,
          2578,
          2584,
          2586,
          2588,
          2583,
          2584,
          2591,
          2591,
          2586,
          2586,
          2592,
          2591,
          2586,
          2587,
          2593,
          2593,
          2587,
          2589,
          2591,
          2592,
          2585,
          2591,
          2592,
          2591,
          2583,
          2590,
          2591,
          2591,
          2585,
          2589,
          2589,
          2589,
          2583,
          2589,
          2588,
          2587,
          2581,
          2586,
          2589,
          2581,
          2581,
          2585,
          2587,
          2583,
          2397,
          2400,
          2401,
          2399,
          2401,
          2400,
          2399,
          2398,
          2395,
          2394,
          2395,
          2396,
          2401,
          2399,
          2399,
          2398,
          2399,
          2399,
          2401,
          2397,
          2397,
          2395,
          2394,
          2395,
          2398,
          2399,
          2399,
          2398,
          2399,
          2400,
          2399,
          2396,
          2393,
          2393,
          2393,
          2397,
          2398,
          2397,
          2399,
          2398,
          2400,
          2397,
          2396,
          2395,
          2393,
          2393,
          2396,
          2399,
          2398,
          2395,
          2500,
          2520,
          2527,
          2533,
          2542,
          2547,
          2543,
          2549,
          2551,
          2557,
          2549,
          2555,
          2559,
          2551,
          2561,
          2561,
          2553,
          2562,
          2562,
          2553,
          2556,
          2561,
          2555,
          2553,
          2558,
          2555,
          2551,
          2554,
          2560,
          2551,
          2556,
          2557,
          2549,
          2556,
          2557,
          2549,
          2556,
          2556,
          2549,
          2554,
          2556,
          2546,
          2554,
          2553,
          2550,
          2552,
          2553,
          2548,
          2550,
          2552,
          2379,
          2377,
          2378,
          2379,
          2380,
          2374,
          2374,
          2376,
          2379,
          2377,
          2377,
          2377,
          2374,
          2374,
          2377,
          2377,
          2377,
          2377,
          2379,
          2373,
          2373,
          2375,
          2378,
          2377,
          2377,
          2377,
          2373,
          2373,
          2374,
          2379,
          2375,
          2377,
          2375,
          2373,
          2374,
          2377,
          2377,
          2377,
          2377,
          2377,
          2373,
          2373,
          2377,
          2377,
          2378,
          2378,
          2375,
          2373,
          2373,
          2376,
          2478,
          2501,
          2503,
          2516,
          2521,
          2524,
          2523,
          2529,
          2532,
          2531,
          2535,
          2532,
          2531,
          2535,
          2535,
          2536,
          2536,
          2532,
          2535,
          2537,
          2531,
          2536,
          2539,
          2533,
          2536,
          2532,
          2537,
          2538,
          2531,
          2537,
          2535,
          2531,
          2535,
          2529,
          2535,
          2534,
          2527,
          2533,
          2534,
          2529,
          2532,
          2531,
          2534,
          2532,
          2527,
          2533,
          2531,
          2526,
          2531,
          2529,
          2362,
          2358,
          2359,
          2363,
          2361,
          2362,
          2359,
          2357,
          2361,
          2363,
          2364,
          2361,
          2357,
          2357,
          2362,
          2362,
          2363,
          2358,
          2358,
          2362,
          2363,
          2363,
          2360,
          2358,
          2363,
          2362,
          2363,
          2358,
          2357,
          2362,
          2362,
          2362,
          2362,
          2356,
          2361,
          2363,
          2363,
          2361,
          2355,
          2362,
          2362,
          2361,
          2360,
          2357,
          2359,
          2360,
          2361,
          2361,
          2356,
          2358,
          2467,
          2485,
          2489,
          2501,
          2508,
          2509,
          2513,
          2518,
          2511,
          2519,
          2518,
          2520,
          2521,
          2517,
          2521,
          2522,
          2523,
          2522,
          2517,
          2521,
          2514,
          2525,
          2521,
          2522,
          2522,
          2517,
          2523,
          2517,
          2521,
          2524,
          2522,
          2522,
          2515,
          2521,
          2514,
          2522,
          2521,
          2520,
          2522,
          2514,
          2517,
          2514,
          2519,
          2519,
          2517,
          2519,
          2511,
          2517,
          2511,
          2517,
          2351,
          2352,
          2351,
          2345,
          2351,
          2349,
          2351,
          2345,
          2347,
          2349,
          2352,
          2347,
          2344,
          2351,
          2351,
          2351,
          2346,
          2351,
          2350,
          2351,
          2343,
          2349,
          2350,
          2351,
          2347,
          2345,
          2349,
          2350,
          2349,
          2345,
          2350,
          2349,
          2349,
          2344,
          2349,
          2348,
          2349,
          2346,
          2345,
          2348,
          2350,
          2347,
          2343,
          2348,
          2351,
          2351,
          2344,
          2349,
          2350,
          2349,
          2447,
          2471,
          2484,
          2486,
          2496,
          2498,
          2503,
          2504,
          2501,
          2507,
          2501,
          2507,
          2505,
          2508,
          2508,
          2511,
          2513,
          2504,
          2513,
          2505,
          2513,
          2505,
          2512,
          2503,
          2511,
          2507,
          2511,
          2507,
          2510,
          2509,
          2509,
          2509,
          2506,
          2511,
          2504,
          2508,
          2501,
          2510,
          2502,
          2509,
          2505,
          2506,
          2506,
          2506,
          2509,
          2506,
          2507,
          2503,
          2507,
          2501,
          2340,
          2340,
          2340,
          2336,
          2340,
          2341,
          2335,
          2338,
          2340,
          2341,
          2335,
          2341,
          2340,
          2340,
          2334,
          2341,
          2339,
          2337,
          2335,
          2339,
          2340,
          2335,
          2340,
          2339,
          2339,
          2335,
          2341,
          2339,
          2335,
          2336,
          2340,
          2340,
          2336,
          2338,
          2340,
          2338,
          2334,
          2338,
          2340,
          2335,
          2340,
          2338,
          2340,
          2335,
          2339,
          2339,
          2337,
          2336,
          2339,
          2339,
          2437,
          2463,
          2475,
          2476,
          2488,
          2484,
          2492,
          2494,
          2495,
          2493,
          2498,
          2495,
          2500,
          2497,
          2501,
          2499,
          2503,
          2499,
          2501,
          2495,
          2501,
          2496,
          2500,
          2494,
          2500,
          2496,
          2501,
          2495,
          2501,
          2494,
          2502,
          2496,
          2501,
          2494,
          2501,
          2494,
          2501,
          2494,
          2499,
          2493,
          2501,
          2493,
          2499,
          2493,
          2501,
          2491,
          2497,
          2491,
          2495,
          2491
        ]
      }
    ]
  ],
  "app_os": "win",
  "app_name": "PhotosynQ",
  "app_version": "0.3.6",
  "app_device": "x86-64",
  "ConsoleMacro": "307"
}
Default avatar
Created by

DS


Protocol connections:
0
Latest Update:
May 2017