Changeset 8189 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
11/01/06 13:16:53 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/datacenter/db
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/db/builddatasets.php

    r8182 r8189  
    233233
    234234        if (empty($_GET["fNumResults"]))
    235             $_GET["fNumResults"]="10";
     235            $_GET["fNumResults"]="100";
    236236
    237237        if (empty($_GET["fRunStart"]))
     
    262262            $_GET["fUnsInLimit2"]=$first?"20":"";
    263263
    264         if (empty($_GET["fRunTimeLimit1"]))
    265             $_GET["fRunTimeLimit1"]=$first?"2":"";
    266 
    267         if (empty($_GET["fRunTimeLimit2"]))
    268             $_GET["fRunTimeLimit2"]=$first?"5":"";
     264//        if (empty($_GET["fRunTimeLimit1"]))
     265//            $_GET["fRunTimeLimit1"]=$first?"5":"";
     266
     267//        if (empty($_GET["fRunTimeLimit2"]))
     268//            $_GET["fRunTimeLimit2"]=$first?"2":"";
     269
     270        if (empty($_GET["fIMCLimit1"]))
     271            $_GET["fIMCLimit1"]=$first?"00":"";
     272
     273        if (empty($_GET["fIsoInLimit1"]))
     274            $_GET["fIsoInLimit1"]=$first?"00":"";
     275
     276        if (empty($_GET["fInhomLimitMean"]))
     277            $_GET["fInhomLimitMean"]=$first?"10":"";
     278
     279        if (empty($_GET["fInhomLimitRms"]))
     280            $_GET["fInhomLimitRms"]=$first?"3":"";
     281
     282        if (empty($_GET["fImgRateLimitMean"]))
     283            $_GET["fImgRateLimitMean"]=$first?"180":"";
     284
     285        if (empty($_GET["fImgRateLimitRms"]))
     286            $_GET["fImgRateLimitRms"]=$first?"30":"";
     287
     288        if (empty($_GET["fMuonRateLimitMean"]))
     289            $_GET["fMuonRateLimitMean"]=$first?"1":"";
     290
     291        if (empty($_GET["fMuonRateLimitRms"]))
     292            $_GET["fMuonRateLimitRms"]=$first?"0.2":"";
     293
     294        if (empty($_GET["fMuonNumLimit1"]))
     295            $_GET["fMuonNumLimit1"]=$first?"180":"";
     296
     297        if (empty($_GET["fMuonNumLimit2"]))
     298            $_GET["fMuonNumLimit2"]=$first?"120":"";
     299
     300        if (empty($_GET["fNumStarsLimit1"]))
     301            $_GET["fNumStarsLimit1"]=$first?"30":"";
     302
     303        if (empty($_GET["fNumStarsLimit2"]))
     304            $_GET["fNumStarsLimit2"]=$first?"20":"";
     305
     306        if (empty($_GET["fNumStarsCorLimit1"]))
     307            $_GET["fNumStarsCorLimit1"]=$first?"10":"";
     308
     309        if (empty($_GET["fNumStarsCorLimit2"]))
     310            $_GET["fNumStarsCorLimit2"]=$first?"5":"";
    269311
    270312        if (empty($_GET["fUnreliableInner"]))
     
    433475                    }
    434476                printf("<input type='submit' value='Get Dataset'><br><br>\n");
    435                 printf("pw: %s<br>", crypt("IutWDC+B"));
    436477                printf("<input name='submit' type='hidden' value='post'>\n");
    437478
     
    501542
    502543                //get next dataset#
    503                 $query="SELECT fDataSetNumber+1 FROM DataSets ORDER BY fDataSetNumber LIMIT 0,1";
     544                $query="SELECT fDataSetNumber+1 FROM DataSets ORDER BY fDataSetNumber DESC LIMIT 0,1";
    504545                $result = mysql_query($query, $db_id);
    505546                $row = mysql_fetch_assoc($result);
     
    543584                $pedrmsrms=0.09;
    544585                $scalelimit=1.3;
     586                $inhomlimit=13;
     587                $numstarslimit=20;
     588                $numstarscorlimit=10;
    545589
    546590
     
    559603                        GetSequenceValues($db_id, ${$val}, $val, $values);
    560604
     605                        if ($values["Min(fNumStarsCorMed)"][$val]<$numstarscorlimit)
     606                            printf("<li style='color:%s'>%s: one of your %s-sequences has less than %s identified stars (%s)</li>",
     607                                   $color["WARN"], "WARN", $val, $numstarscorlimit, $values["Min(fNumStarsCorMed)"][$val]);
     608                        if ($values["Min(fNumStarsMed)"][$val]<$numstarslimit)
     609                            printf("<li style='color:%s'>%s: one of your %s-sequences has less than %s identified stars (%s)</li>",
     610                                   $color["WARN"], "WARN", $val, $numstarslimit, $values["Min(fNumStarsMed)"][$val]);
    561611                        if ($values["Min(fRunTime)/60"][$val]<$runtimelimit)
    562612                            printf("<li style='color:%s'>%s: one of your %s-sequences is shorter than %s min (%s min)</li>",
    563                                    $color["WARN"], "WARN", $val, $runtimelimit, $values["Min(fRunTime)/60"][$val]);
     613                                   $color["INFO"], "INFO", $val, $runtimelimit, $values["Min(fRunTime)/60"][$val]);
     614                        if ($values["Max(fInhomogeneity)"][$val]>$inhomlimit)
     615                            printf("<li style='color:%s'>%s: one of your %s-sequences has an inhomogeneity larger than %s (%s)</li>",
     616                                   $color["WARN"], "WARN", $val, $inhomlimit, $values["Max(fInhomogeneity)"][$val]);
    564617                        if ($values["Max(fUnsuitableInner)"][$val]>$unsuitablemaxlimit)
    565618                            printf("<li style='color:%s'>%s: one of your %s-sequences has more than %s unsuitable inner pixel (%s)</li>",
     
    655708                        if (!empty($_POST["insert"]) && $numerr==0)
    656709                        {
     710                            printf("Inserted Query #%s: %s<br>", $num, $q);
    657711                            $insresult=mysql_query($q);
    658                             printf("inserted query ");
    659                             printf("<br> result: <br>");
    660                             printf("errorno: %s <br>", mysql_errno());
    661                             printf("errormsg: %s <br>", mysql_error());
    662                             printf("info: %s <br>", mysql_info());
    663                             printf("affected rows: %s <br>", mysql_affected_rows());
     712                            if (mysql_errno()>0)
     713                                printf("&nbsp; Errorno: %s <br>", mysql_errno());
     714                            if (mysql_error()!="")
     715                                printf("&nbsp; Errormsg: %s <br>", mysql_error());
     716                            if (mysql_info()!="")
     717                                printf("&nbsp; Info: %s <br>", mysql_info());
     718                            printf("&nbsp; Affected Rows: %s <br>", mysql_affected_rows());
    664719                            mysql_free_result($insresult);
     720                            if (mysql_errno()>0)
     721                            {
     722                                printf("ERROR => stop inserting");
     723                                break;
     724                            }
    665725                        }
    666                         printf(" %s: %s<br>", $num, $q);
    667726                    }
    668727                    printf("</div>");
     
    673732                    if (empty($_POST["fObservationModeKEY"]) && !empty($_GET["obsmode"]))
    674733                        $_POST["fObservationModeKEY"]=$_GET["obsmode"];
    675                     printf("Name: &nbsp;<input name='name' type='text' size='10' maxlength='12' value='%s'><br>\n", $_POST["name"]);
    676                     printf("Comment: &nbsp;<input name='comment' type='text' size='20' maxlength='255' value='%s'><br>\n", $_POST["comment"]);
     734                    printf("Name: &nbsp;<input name='name' type='text' size='20' maxlength='20' value='%s'><br>\n", $_POST["name"]);
     735                    printf("Comment: &nbsp;<input name='comment' type='text' size='50' maxlength='255' value='%s'><br>\n", $_POST["comment"]);
    677736
    678737                    $query   = "SELECT fObservationModeKEY, fObservationModeName FROM ObservationMode ORDER BY fObservationModeName";
  • trunk/MagicSoft/Mars/datacenter/db/index-header.html

    r8162 r8189  
    3030<A HREF="index.html">H</A>&nbsp;
    3131<A HREF="http://www.astro.uni-wuerzburg.de/datacenter/index.html#db">Docu</A>&nbsp;
    32 <A HREF="printtable.php?fTable=MarsVersion">Mars</A>
     32<A HREF="printtable.php?fTable=MarsVersion">Mars</A>&nbsp;
     33<A HREF="plotdb.php">Plots</A>
    3334Info:&nbsp;
    3435<A HREF="runinfo-aio.php">Run</A>&nbsp;
     
    4243<A HREF="sources.php">Sources</A>&nbsp;
    4344<A HREF="statussbs.php">SequBuildStatus</A>&nbsp;
    44 <A HREF="plotdb.php">Plots</A>
     45<A HREF="builddatasets.php">BuildDataSets</A>
    4546<hr SIZE=1 NOSHADE WIDTH="80%">
    4647</td>
Note: See TracChangeset for help on using the changeset viewer.