Changeset 19936


Ignore:
Timestamp:
02/03/20 22:27:35 (5 years ago)
Author:
Daniela Dorner
Message:
added option for custom flux conversion factor
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/dch/download.php

    r19733 r19936  
    2020}
    2121$maintenance=0;
    22 $maintenance=1;
     22#$maintenance=1;
    2323
    2424if ($maintenance)
     
    196196    $zd="novalue";
    197197
     198if (!empty($_POST["crabflux"]))
     199    $crabflux=$_POST["crabflux"];
     200else
     201    $crabflux="-";
     202
    198203//variable for non-combinable date/source
    199204$warn="";
     
    288293    print_popup("Email with data sent to ".$email);
    289294    if ($maintenance)
    290         echo $start." ".$stop." ".$source." ".$timebin." ".$email." ".$table." ".$time." ".$expert." ".$dch." ".$zd." ".$th." ".$light." ".$dust." ".$rmemptyrow." ".$factorcut."<br>\n";
    291     $sent=shell_exec("/users/fact/SW.automatic.processing/DataCheck/Tools/get_data.sh ".$start." ".$stop." ".$source." ".$timebin." ".$email." ".$table." ".$time." ".$expert." ".$dch." ".$zd." ".$th." ".$light." ".$dust." ".$rmemptyrow." ".$factorcut);
     295        echo $start." ".$stop." ".$source." ".$timebin." ".$email." ".$table." ".$time." ".$expert." ".$dch." ".$zd." ".$th." ".$light." ".$dust." ".$rmemptyrow." ".$factorcut." ".$crabflux."<br>\n";
     296    $sent=shell_exec("/users/fact/SW.automatic.processing/DataCheck/Tools/get_data.sh ".$start." ".$stop." ".$source." ".$timebin." ".$email." ".$table." ".$time." ".$expert." ".$dch." ".$zd." ".$th." ".$light." ".$dust." ".$rmemptyrow." ".$factorcut." ".$crabflux);
    292297    echo $sent;
    293298    if (!empty($_POST["newsletter"]))
     
    486491    }
    487492    echo "</select>\n <br>\n";
     493    printf("Custom conversion factor to flux: <input name='crabflux' type='text' size='4' maxlength='4' value='%s'>[10^-11 erg/s/cm2] <br>\n", $crabflux);
    488494}
    489495
     
    527533    echo "</ul></li>\n";
    528534    echo "<li>Not for all data dust measurements are available.</li>\n";
    529     //echo "<li></li>\n";
     535    echo "<li>Be aware that if you use a custom conversion factor to flux that you have to make sure that it is consistent with the analysis you choose.</li>\n";
    530536    echo "</ul>";
    531537}
Note: See TracChangeset for help on using the changeset viewer.