// ANALYSIS /* For data collected where the flight paths are darker than the map, then max * is used for the map and the test for a plane is less than. * Where flight paths are brighter, then min is used and * the test is greater than. */ run("Clear Results"); run("Set Measurements...", "mean display redirect=None decimal=4"); len = nSlices; profile = newArray(len); for(t=1; t<=len; t++) { setSlice(t); run("Measure"); profile[t-1] = getResult("Mean", nResults-1); } Array.getStatistics(profile, min, max, mean, stdDev); countEvents = 0; for (i=0; i