Example #1
0
function show_quake_stats()
{
    echo "<h2>Earthquakes per Day:</h2>\n";
    show_stats_figure($figure = "earthquake_through_time_hist.jpg", $blurb = "This plot shows the number of earthquakes per day detected by QCN.");
    echo "<h2>Median Time per Detection Iteration:</h2>\n";
    show_stats_figure($figure = "time_v_iter.jpg", $blurb = "This plot shows the median time to detection of earthquakes measured so far, with increasing time for each iteration/update.  The time it takes to detect an earthquake depends on several factors.  First, it takes a few seconds for the earthquake energy to reach the sensors on the ground.  Then it takes a second to several seconds to upload the detection to the server.  In a split second we have our first detection.");
    echo "<h2>Median Magnitude per Detection Iteration:</h2>\n";
    show_stats_figure($figure = "mag_v_iter.jpg", $blurb = "Each iteration of the estimation process allows for improved magnitude estimation.  With a few sensors that are close to the source it is often difficult to determine magnitude.  We try not to over-estimate the magnitude.  So as each new station reports in, more accurate magnitude estimations are obtained. The amplitudes recorded at the sensor may rise after the initial sensor detection, so we update the amplitude info a few seconds later. In later iterations magnitudes rise because amplitudes rise.");
    echo "<h2>Median Magnitude v. Time:</h2>\n";
    show_stats_figure($figure = "mag_v_time.jpg", $blurb = "This plot shows the progression of magnitude estimated v. time of that estimation.");
    $width = "200";
    $height = "200";
    $ABC = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');
    for ($i = -1; $i < 7; $i++) {
        $i++;
        echo "<table width=\"100%\"><tr>\n";
        echo "<tr><td><h2>Detection {$ABC[$i]} (Iteration " . ($i + 1) . "):</h2></td><td></td><td></td></tr>\n";
        echo "<tr>\n";
        echo "<td width=\"45%\"><img src=\"" . BASEURL . "/earthquakes/images/magnitude_" . $i . "_hist.jpg\" width=\"{$width}\" height=\"{$height}\"></td>";
        echo "<td width=\"10%\"></td>\n";
        echo "<td width=\"45%\"><img src=\"" . BASEURL . "/earthquakes/images/dt_detect_" . $i . "_hist.jpg\" width=\"{$width}\" height=\"{$height}\"></td>";
        echo "</tr>\n";
        echo "</table>\n";
        echo "<hr/>\n";
    }
}
Example #2
0
function show_latency_stats()
{
    echo "<h2>Trigger Latency:</h2>\n";
    show_stats_figure($figure = "trigger_latency.jpg", $blurb = "Triggers from detected earthquakes upload with the following latencies.");
    $width = "200";
    $height = "200";
    $ABC = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');
    for ($i = -1; $i < 7; $i++) {
        $i++;
        echo "<table width=\"100%\"><tr>\n";
        echo "<tr><td><h2>Detection {$ABC[$i]} (Iteration " . ($i + 1) . "):</h2></td><td></td><td></td></tr>\n";
        echo "<tr>\n";
        echo "<td width=\"45%\"><img src=\"" . BASEURL . "/earthquakes/images/trigger_latency_" . $ABC[$i] . "_hist.jpg\" width=\"{$width}\" height=\"{$height}\"></td>";
        echo "<td width=\"10%\"> </td>\n";
        echo "<td width=\"45%\"> </td>";
        echo "</tr>\n";
        echo "</table>\n";
        echo "<hr/>\n";
    }
}