Changeset 8189
- Timestamp:
- 11/01/06 13:16:53 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/db
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/builddatasets.php
r8182 r8189 233 233 234 234 if (empty($_GET["fNumResults"])) 235 $_GET["fNumResults"]="10 ";235 $_GET["fNumResults"]="100"; 236 236 237 237 if (empty($_GET["fRunStart"])) … … 262 262 $_GET["fUnsInLimit2"]=$first?"20":""; 263 263 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":""; 269 311 270 312 if (empty($_GET["fUnreliableInner"])) … … 433 475 } 434 476 printf("<input type='submit' value='Get Dataset'><br><br>\n"); 435 printf("pw: %s<br>", crypt("IutWDC+B"));436 477 printf("<input name='submit' type='hidden' value='post'>\n"); 437 478 … … 501 542 502 543 //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"; 504 545 $result = mysql_query($query, $db_id); 505 546 $row = mysql_fetch_assoc($result); … … 543 584 $pedrmsrms=0.09; 544 585 $scalelimit=1.3; 586 $inhomlimit=13; 587 $numstarslimit=20; 588 $numstarscorlimit=10; 545 589 546 590 … … 559 603 GetSequenceValues($db_id, ${$val}, $val, $values); 560 604 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]); 561 611 if ($values["Min(fRunTime)/60"][$val]<$runtimelimit) 562 612 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]); 564 617 if ($values["Max(fUnsuitableInner)"][$val]>$unsuitablemaxlimit) 565 618 printf("<li style='color:%s'>%s: one of your %s-sequences has more than %s unsuitable inner pixel (%s)</li>", … … 655 708 if (!empty($_POST["insert"]) && $numerr==0) 656 709 { 710 printf("Inserted Query #%s: %s<br>", $num, $q); 657 711 $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(" Errorno: %s <br>", mysql_errno()); 714 if (mysql_error()!="") 715 printf(" Errormsg: %s <br>", mysql_error()); 716 if (mysql_info()!="") 717 printf(" Info: %s <br>", mysql_info()); 718 printf(" Affected Rows: %s <br>", mysql_affected_rows()); 664 719 mysql_free_result($insresult); 720 if (mysql_errno()>0) 721 { 722 printf("ERROR => stop inserting"); 723 break; 724 } 665 725 } 666 printf(" %s: %s<br>", $num, $q);667 726 } 668 727 printf("</div>"); … … 673 732 if (empty($_POST["fObservationModeKEY"]) && !empty($_GET["obsmode"])) 674 733 $_POST["fObservationModeKEY"]=$_GET["obsmode"]; 675 printf("Name: <input name='name' type='text' size=' 10' maxlength='12' value='%s'><br>\n", $_POST["name"]);676 printf("Comment: <input name='comment' type='text' size=' 20' maxlength='255' value='%s'><br>\n", $_POST["comment"]);734 printf("Name: <input name='name' type='text' size='20' maxlength='20' value='%s'><br>\n", $_POST["name"]); 735 printf("Comment: <input name='comment' type='text' size='50' maxlength='255' value='%s'><br>\n", $_POST["comment"]); 677 736 678 737 $query = "SELECT fObservationModeKEY, fObservationModeName FROM ObservationMode ORDER BY fObservationModeName"; -
trunk/MagicSoft/Mars/datacenter/db/index-header.html
r8162 r8189 30 30 <A HREF="index.html">H</A> 31 31 <A HREF="http://www.astro.uni-wuerzburg.de/datacenter/index.html#db">Docu</A> 32 <A HREF="printtable.php?fTable=MarsVersion">Mars</A> 32 <A HREF="printtable.php?fTable=MarsVersion">Mars</A> 33 <A HREF="plotdb.php">Plots</A> 33 34 Info: 34 35 <A HREF="runinfo-aio.php">Run</A> … … 42 43 <A HREF="sources.php">Sources</A> 43 44 <A HREF="statussbs.php">SequBuildStatus</A> 44 <A HREF=" plotdb.php">Plots</A>45 <A HREF="builddatasets.php">BuildDataSets</A> 45 46 <hr SIZE=1 NOSHADE WIDTH="80%"> 46 47 </td>
Note:
See TracChangeset
for help on using the changeset viewer.