tcheck inversion parameter values - cosmo - front and backend for Markov-Chain Monte Carlo inversion of cosmogenic nuclide concentrations
 (HTM) git clone git://src.adamsgaard.dk/cosmo
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 73cb2a78cd3944713490e48749b621478ee19a97
 (DIR) parent fe788f04de11b136b59f774c965164a9e7cc5aae
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Tue, 18 Aug 2015 15:30:05 +0200
       
       check inversion parameter values
       
       Diffstat:
         M pages/history.html                  |       8 ++++----
         M uploadhistory.php                   |      24 ++++++++++++++++++++++++
       
       2 files changed, 28 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git a/pages/history.html b/pages/history.html
       t@@ -193,15 +193,15 @@
                                <input id="d18O_threshold_min" name="d18O_threshold_min"
                                type="text" class="validate" required>
                                <label for="d18O_threshold_min">Min.
       -                            &delta;<sup>18</sup>O
       -                            threshold [&permil;] <small>Required</small></label>
       +                            &delta;<sup>18</sup>O threshold value [&permil;]
       +                            <small>Required</small></label>
                            </div>
                            <div class="input-field col s6">
                                <input id="d18O_threshold_max" name="d18O_threshold_max"
                                type="text" class="validate" required>
                                <label for="d18O_threshold_max">Max.
       -                            &delta;<sup>18</sup>O
       -                            threshold [&permil;] <small>Required</small></label>
       +                            &delta;<sup>18</sup>O threshold value [&permil;]
       +                            <small>Required</small></label>
                            </div>
                        </div>
        
 (DIR) diff --git a/uploadhistory.php b/uploadhistory.php
       t@@ -23,6 +23,30 @@ if (!isset($_POST['lat']) || $_POST['lat'] == '') {
        if (!isset($_POST['long']) || $_POST['long'] == '') {
            array_push($missing_fields, 'Longitude');
        }
       +if (!isset($_POST['rock_density']) || $_POST['rock_density'] == '') {
       +    array_push($missing_fields, 'Rock density');
       +}
       +if (!isset($_POST['epsilon_gla_min']) || $_POST['epsilon_gla_min'] == '') {
       +    array_push($missing_fields, 'Min. glacial erosion rate');
       +}
       +if (!isset($_POST['epsilon_gla_max']) || $_POST['epsilon_gla_max'] == '') {
       +    array_push($missing_fields, 'Max. glacial erosion rate');
       +}
       +if (!isset($_POST['epsilon_int_min']) || $_POST['epsilon_int_min'] == '') {
       +    array_push($missing_fields, 'Min. inter-glacial erosion rate');
       +}
       +if (!isset($_POST['epsilon_int_max']) || $_POST['epsilon_int_max'] == '') {
       +    array_push($missing_fields, 'Max. inter-glacial erosion rate');
       +}
       +if (!isset($_POST['t_degla']) || $_POST['t_degla'] == '') {
       +    array_push($missing_fields, 'Time since deglaciation');
       +}
       +if (!isset($_POST['d18O_threshold_min']) || $_POST['d18O_threshold_min'] == '') {
       +    array_push($missing_fields, 'Min. &delta;<sup>18</sup>O threshold value');
       +}
       +if (!isset($_POST['d18O_threshold_max']) || $_POST['d18O_threshold_max'] == '') {
       +    array_push($missing_fields, 'Max. &delta;<sup>18</sup>O threshold value');
       +}
        
        // Check TCN concentrations, at least one value is needed
        if ((!isset($_POST['conc_10Be']) || $_POST['conc_10Be'] == '') &&