Changeset 34047
- Timestamp:
- Jun 20, 2012, 12:21:48 PM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120601
- Files:
-
- 38 edited
- 34 copied
-
dvodist/scripts (copied) (copied from trunk/dvodist/scripts )
-
dvodist/scripts/mkdist.20120509.sh (copied) (copied from trunk/dvodist/scripts/mkdist.20120509.sh )
-
dvodist/scripts/mkdist.20120525.sh (copied) (copied from trunk/dvodist/scripts/mkdist.20120525.sh )
-
dvodist/scripts/mkdist.testcat.sh (copied) (copied from trunk/dvodist/scripts/mkdist.testcat.sh )
-
dvodist/scripts/mkindex.sh (copied) (copied from trunk/dvodist/scripts/mkindex.sh )
-
dvodist/www-root (copied) (copied from trunk/dvodist/www-root )
-
dvodist/www-root/PScolorlogo2.jpg (copied) (copied from trunk/dvodist/www-root/PScolorlogo2.jpg )
-
dvodist/www-root/docs.txt (copied) (copied from trunk/dvodist/www-root/docs.txt )
-
dvodist/www-root/help.txt (copied) (copied from trunk/dvodist/www-root/help.txt )
-
dvodist/www-root/index.php (copied) (copied from trunk/dvodist/www-root/index.php )
-
dvodist/www-root/index.txt (copied) (copied from trunk/dvodist/www-root/index.txt )
-
dvodist/www-root/ipp.css (copied) (copied from trunk/dvodist/www-root/ipp.css )
-
dvodist/www-util (copied) (copied from trunk/dvodist/www-util )
-
dvodist/www-util/blank.html (copied) (copied from trunk/dvodist/www-util/blank.html )
-
dvodist/www-util/ipp.menu.dat (copied) (copied from trunk/dvodist/www-util/ipp.menu.dat )
-
dvodist/www-util/ipp.php (copied) (copied from trunk/dvodist/www-util/ipp.php )
-
dvodist/www-util/phptest.php (copied) (copied from trunk/dvodist/www-util/phptest.php )
-
ippData (copied) (copied from trunk/ippData )
-
ippData/htdocs (copied) (copied from trunk/ippData/htdocs )
-
ippData/htdocs/docs.txt (copied) (copied from trunk/ippData/htdocs/docs.txt )
-
ippData/htdocs/help.txt (copied) (copied from trunk/ippData/htdocs/help.txt )
-
ippData/htdocs/index.info.txt (copied) (copied from trunk/ippData/htdocs/index.info.txt )
-
ippData/htdocs/index.php (copied) (copied from trunk/ippData/htdocs/index.php )
-
ippData/htdocs/index.txt (copied) (copied from trunk/ippData/htdocs/index.txt )
-
ippData/htdocs/ipp.css (copied) (copied from trunk/ippData/htdocs/ipp.css )
-
ippData/scripts (copied) (copied from trunk/ippData/scripts )
-
ippData/scripts/mkindex.sh (copied) (copied from trunk/ippData/scripts/mkindex.sh )
-
ippData/utils (copied) (copied from trunk/ippData/utils )
-
ippData/utils/blank.html (copied) (copied from trunk/ippData/utils/blank.html )
-
ippData/utils/ipp.menu.dat (copied) (copied from trunk/ippData/utils/ipp.menu.dat )
-
ippData/utils/ipp.php (copied) (copied from trunk/ippData/utils/ipp.php )
-
ippData/utils/phptest.php (copied) (copied from trunk/ippData/utils/phptest.php )
-
ippMonitor (modified) (1 prop)
-
ippMonitor/INSTALL (modified) (1 diff)
-
ippMonitor/czartool/czartool/czarconfig.xml (modified) (3 diffs)
-
ippMonitor/def/autocode.php (modified) (2 diffs)
-
ippMonitor/def/camProcessedExp_Images.d (modified) (2 diffs)
-
ippMonitor/def/diffSummary_Images.d (modified) (1 diff)
-
ippMonitor/def/newImfile.d (modified) (1 diff)
-
ippMonitor/def/pzDoneImfile.d (modified) (1 diff)
-
ippMonitor/def/pzPendingImfile.d (modified) (1 diff)
-
ippMonitor/def/rawBurntoolState.d (modified) (1 diff)
-
ippMonitor/def/rawImfile.d (modified) (1 diff)
-
ippMonitor/def/summitImfile.d (modified) (1 diff)
-
ippMonitor/raw/czartool_labels.php (modified) (2 diffs)
-
ippMonitor/raw/site.php.in (modified) (2 diffs)
-
ippMonitor/scripts/generate (modified) (12 diffs)
-
ippMonitor/supervision (copied) (copied from trunk/ippMonitor/supervision )
-
ippMonitor/supervision/check_if_mysql_slave_is_running_fine.py (copied) (copied from trunk/ippMonitor/supervision/check_if_mysql_slave_is_running_fine.py )
-
ippScripts/scripts/addstar_run.pl (modified) (4 diffs)
-
ippScripts/scripts/automate_stacks.pl (modified) (1 diff)
-
ippScripts/scripts/bundle_detrends.pl (modified) (1 diff)
-
ippScripts/scripts/destreak_restore_camera.pl (modified) (1 prop)
-
ippScripts/scripts/ipp_apply_burntool_single.pl (modified) (1 prop)
-
ippScripts/scripts/magic_destreak.pl (modified) (1 prop)
-
ippScripts/scripts/make_burntool_pcontrol.pl (modified) (1 diff)
-
ippScripts/scripts/nightly_science.pl (modified) (2 diffs)
-
ippScripts/scripts/staticsky.pl (modified) (9 diffs)
-
ippTools/share/addtool_find_sky_id_multi.sql (modified) (1 diff)
-
ippTools/share/addtool_find_sky_id_multi_dvo.sql (modified) (1 diff)
-
ippTools/share/camtool_find_pendingimfile.sql (modified) (1 prop)
-
ippTools/share/chiptool_setimfiletoupdate.sql (modified) (1 prop)
-
ippTools/share/pxadmin_create_tables.sql (modified) (1 prop)
-
ippTools/share/warptool_towarped.sql (modified) (1 prop)
-
ippTools/src (modified) (1 prop)
-
ippTools/src/addtool.c (modified) (5 diffs)
-
ippTools/src/magictool.c (modified) (1 prop)
-
ippconfig (modified) (1 prop)
-
ippconfig/recipes/filerules-mef.mdc (modified) (1 diff)
-
ippconfig/recipes/filerules-simple.mdc (modified) (1 diff)
-
ippconfig/recipes/filerules-split.mdc (modified) (1 diff)
-
ippconfig/recipes/reductionClasses.mdc (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120601/ippMonitor
- Property svn:mergeinfo changed
/trunk/ippMonitor (added) merged: 33990-33991,34006-34007,34011-34017
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20120601/ippMonitor/INSTALL
r32403 r34047 15 15 # note that we have a special version for ippmonitor without $PSCONFIG/$PSCONFDIR values: 16 16 ipp@ippdb03 / ippdb03 example: 17 psconfigure --dbhost ippdb01 --dbuser ipp --dbpass ipp --htdocs /var/www/localhost/htdocs --site ~/ippconfig/ippmonitor.config17 # psconfigure --dbhost ippdb01 --dbuser ipp --dbpass ipp --htdocs /var/www/localhost/htdocs --site ~/ippconfig/ippmonitor.config 18 18 19 #ipp@ippdb03 / ippdb01 example: 20 psconfigure --dbhost ippdb03 --dbuser ipp --dbpass ipp --htdocs /var/www/localhost/htdocs --site ~/ippconfig/ippmonitor.config 21 22 # 23 # Regular installation on ippMonitor.ifa.hawaii.edu 24 # Note: we use a 'science databases (replication) slave' and the ippMonitor read-only account to connect to that database 25 psconfigure --dbhost scidbs1 --dbuser ippMonitor --dbpass ippMonitor --htdocs /var/www/localhost/htdocs --site ~/ippconfig/ippmonitor.config -
branches/eam_branches/ipp-20120601/ippMonitor/czartool/czartool/czarconfig.xml
r32954 r34047 21 21 <gpc1database> 22 22 <name>gpc1</name> 23 <host> ippdb01</host>23 <host>scidbs1</host> 24 24 <user>ippMonitor</user> 25 25 <password>ippMonitor</password> … … 29 29 <czardatabase> 30 30 <name>czardb</name> 31 <host> ippdb01</host>31 <host>scidbm</host> 32 32 <user>ipp</user> 33 33 <password>ipp</password> … … 46 46 47 47 </czarconfig> 48 -
branches/eam_branches/ipp-20120601/ippMonitor/def/autocode.php
r29485 r34047 28 28 // ** TABLE RESTRICTIONS ** 29 29 30 // Note: the restriction is now moved AFTER the count query 31 // unless the RESTRICT_COUNT keyword is used 30 32 if ($restricted == 0) { 31 if ("$ UNRESTRICTED" != "none") {32 $WHERE = "$WHERE $ UNRESTRICTED";33 if ("$RESTRICT_COUNT" != "none") { 34 $WHERE = "$WHERE $RESTRICT_COUNT"; 33 35 } 34 36 } … … 56 58 menu_end(); 57 59 } 60 61 // Restrict the query if it is necessary 62 if ($restricted == 0) { 63 if ( ("$UNRESTRICTED" != "none") && ("$RESTRICT_COUNT" == "none") ) { 64 $WHERE = "$WHERE $UNRESTRICTED"; 65 } 66 } 67 58 68 // set up the row counter variables 59 69 if ($ID['from']) { -
branches/eam_branches/ipp-20120601/ippMonitor/def/camProcessedExp_Images.d
r31828 r34047 3 3 FILE camProcessedExp_Images.php 4 4 MENU ipp.science.dat 5 6 UNRESTRICTED AND 0>1 5 7 6 8 # the following WHERE clauses are added to all queries joined by AND … … 10 12 WHERE camProcessedExp.cam_id = camRun.cam_id 11 13 WHERE camProcessedExp.fault = 0 12 13 14 # define image names to be used below 14 15 # IMAGE VAR basename filerule camera class_id -
branches/eam_branches/ipp-20120601/ippMonitor/def/diffSummary_Images.d
r28654 r34047 3 3 FILE diffSummary_Images.php 4 4 MENU ipp.stack.dat 5 6 UNRESTRICTED AND 0>1 5 7 6 8 WHERE diffRun.diff_id = diffSkyfile.diff_id -
branches/eam_branches/ipp-20120601/ippMonitor/def/newImfile.d
r18193 r34047 4 4 MENU ipp.load.dat 5 5 6 UNRESTRICTED WHERE 0>1 7 6 8 # field size format name show link to extras 7 9 FIELD exp_id, 5, %d, exposure ID -
branches/eam_branches/ipp-20120601/ippMonitor/def/pzDoneImfile.d
r16638 r34047 3 3 FILE pzDoneImfile.php 4 4 MENU ipp.load.dat 5 6 UNRESTRICTED AND 0>1 5 7 6 8 WHERE pzDownloadImfile.fault = 0 -
branches/eam_branches/ipp-20120601/ippMonitor/def/pzPendingImfile.d
r16638 r34047 3 3 FILE pzPendingImfile.php 4 4 MENU ipp.load.dat 5 6 UNRESTRICTED AND 0>1 5 7 6 8 WHERE summitImfile.exp_name = pzDownloadExp.exp_name -
branches/eam_branches/ipp-20120601/ippMonitor/def/rawBurntoolState.d
r30690 r34047 5 5 6 6 # if no query restrictions are supplied, we want to limit the query or it is extremely long running: 7 RESTRICT_COUNT WHERE 0>1 7 8 UNRESTRICTED WHERE exp_id = 0 8 9 -
branches/eam_branches/ipp-20120601/ippMonitor/def/rawImfile.d
r26991 r34047 5 5 6 6 # HEAD PHP insert_backref ("rawExp.php", "exp_id", $ID['link']); 7 8 UNRESTRICTED WHERE 0>1 7 9 8 10 OP OP1 $ra * 57.295783 -
branches/eam_branches/ipp-20120601/ippMonitor/def/summitImfile.d
r16617 r34047 3 3 FILE summitImfile.php 4 4 MENU ipp.load.dat 5 6 UNRESTRICTED WHERE 0>1 5 7 6 8 # field size format name show link to extras -
branches/eam_branches/ipp-20120601/ippMonitor/raw/czartool_labels.php
r33846 r34047 171 171 echo "<tr><td>Who's using the cluster?</td><td><a href=\"http://ippmonitor.ipp.ifa.hawaii.edu/ippMonitor/clusterMonitor/top.html\"><font color=\"blue\">here</font></a></td></tr>"; 172 172 echo "<tr><td>IPP metrics</td><td><a href=\"http://ipp0022.ifa.hawaii.edu/ps1sc/ippMetrics\"><font color=\"blue\">here</font></a></td></tr>"; 173 echo "<tr><td>Czar log pages</td><td><a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/PS1_IPP_CzarLogs\"><font color=\"blue\">here</font></a></td></tr>"; 173 echo "<tr><td>Czar log pages</td><td><a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/PS1_IPP_CzarLogs\"><font color=\"blue\">All</font></a> "; 174 echo "<a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/PS1_IPP_CzarLog_".(date("Ymd")-date("w")+"1")."\">This week</a>"; 175 echo "</td></tr>"; 174 176 echo "<tr><td>Exposure summary</td><td><a href=\"czartool_exposures.php?pass=$pass&proj=$proj\"><font color=\"blue\">here</font></a></td></tr>"; 175 177 … … 215 217 showReplicationsStatus($REPL_HOST_PSTAMP, $REPL_USER_PSTAMP, $REPL_PASSWORD_PSTAMP, $REPL_DBNAME_PSTAMP); 216 218 showReplicationsStatus($REPL_HOST_IPPADMIN, $REPL_USER_IPPADMIN, $REPL_PASSWORD_IPPADMIN, $REPL_DBNAME_IPPADMIN); 219 showReplicationsStatus($REPL_HOST_ISP, $REPL_USER_ISP, $REPL_PASSWORD_ISP, $REPL_DBNAME_ISP); 217 220 echo "</table>"; 218 221 -
branches/eam_branches/ipp-20120601/ippMonitor/raw/site.php.in
r31812 r34047 25 25 $REPL_USER_IPPADMIN = "ippMonitor"; 26 26 $REPL_PASSWORD_IPPADMIN = "ippMonitor"; 27 $REPL_DBNAME_IPPADMIN = "ipp001 (gpc1, isp, ippadmin, czardb )";27 $REPL_DBNAME_IPPADMIN = "ipp001 (gpc1, isp, ippadmin, czardb, ipptopsps, megacam, ssp, uip)" ; 28 28 29 29 $REPL_HOST_NEBULOUS = "ippdb02.IfA.Hawaii.Edu"; 30 30 $REPL_USER_NEBULOUS = "ippMonitor"; 31 31 $REPL_PASSWORD_NEBULOUS = "ippMonitor"; 32 $REPL_DBNAME_NEBULOUS = "ippdb02 ( Nebulous)";32 $REPL_DBNAME_NEBULOUS = "ippdb02 (nebulous)"; 33 33 34 34 $REPL_HOST_PSTAMP = "ippc19.IfA.Hawaii.Edu"; … … 40 40 $REPL_USER_GPC1 = "ippMonitor"; 41 41 $REPL_PASSWORD_GPC1 = "ippMonitor"; 42 $REPL_DBNAME_GPC1 = "ippdb03 (gpc1, isp, ippadmin, czardb)"; 42 $REPL_DBNAME_GPC1 = "ippdb03 (czardb, gpc1, ippadmin, ipptopsps, megacam, skycells, ssp, uip)"; 43 44 $REPL_HOST_ISP = "ippc17.IfA.Hawaii.Edu"; 45 $REPL_USER_ISP = "ippMonitor"; 46 $REPL_PASSWORD_ISP = "ippMonitor"; 47 $REPL_DBNAME_ISP = "ippc17 (isp)"; 48 49 43 50 44 51 ?> -
branches/eam_branches/ipp-20120601/ippMonitor/scripts/generate
r31816 r34047 29 29 &init_key ("MODE"); 30 30 &init_key ("UNRESTRICTED"); 31 &init_key ("RESTRICT_COUNT"); 31 32 &init_key ("TABLE"); 32 33 &init_key ("TITLE"); … … 46 47 if ($key eq "TABLE") { ($value) = $value =~ m|^\s*(.+)\s*$|; } 47 48 if ($key eq "TYPE") { ($value) = $value =~ m|^\s*(.+)\s*$|; } 48 if ($key eq "TOPLOT") { ($value) = $value =~ m|^\s*(.+)\s*$|; }49 if ($key eq "PLOTTER") { ($value) = $value =~ m|^\s*(.+)\s*$|; }50 if ($key eq "PLOTTITLE") { 51 ($value) = $value =~ m|^\s*(.+)\s*$|;52 $value =~ s/\s/_/g;53 }49 if ($key eq "TOPLOT") { ($value) = $value =~ m|^\s*(.+)\s*$|; } 50 if ($key eq "PLOTTER") { ($value) = $value =~ m|^\s*(.+)\s*$|; } 51 if ($key eq "PLOTTITLE") { 52 ($value) = $value =~ m|^\s*(.+)\s*$|; 53 $value =~ s/\s/_/g; 54 } 54 55 55 56 &set_keypair ($key, $value); … … 61 62 if ($field =~ m|\S+\s+as\s+\S+|) { 62 63 ($fieldreal) = $field =~ m|\S+\s+as\s+(\S+)|; 63 #print STDERR "Case 1\n";64 #print STDERR "Case 1\n"; 64 65 } elsif ($field =~ m|\S+\s+AS\s+\S+|) { 65 #print STDERR "field=$field\n";66 $fieldreal = $field;67 $fieldreal =~ s/\s+AS.*$//;66 #print STDERR "field=$field\n"; 67 $fieldreal = $field; 68 $fieldreal =~ s/\s+AS.*$//; 68 69 #($fieldreal) = $field =~ m|\S+\s+as\s+(\S+)|; 69 #print STDERR "Case 2\n";70 #print STDERR "Case 2\n"; 70 71 } else { 71 72 $fieldreal = $field; 72 #print STDERR "Case 3\n";73 #print STDERR "Case 3\n"; 73 74 } 74 #print STDERR "field=[$field]\tfieldreal=[$fieldreal]\n";75 #print STDERR "field=[$field]\tfieldreal=[$fieldreal]\n"; 75 76 76 77 if ($VERBOSE) { printf "%-20s %-20s %-20s %-20s %-20s %-20s\n", $field, $name, $format, $show, $link, $extras; } … … 141 142 &check_key ("MODE", "basic"); 142 143 &check_key ("UNRESTRICTED", "none"); 144 &check_key ("RESTRICT_COUNT", "none"); 143 145 &check_key ("TABLE", ""); 144 146 &check_key ("TITLE", ""); … … 324 326 # generate a WHERE test for each field (field != *) 325 327 sub write_table_restrict { 326 327 328 if ($WHERE) { 328 329 print FILE "\$WHERE = \"WHERE $WHERE\";\n"; … … 348 349 } 349 350 350 # Generate GROUP BY statement if any 351 # Generate GROUP BY statement if any 351 352 sub write_group_by { 352 353 print FILE "\$WHERE = check_ordering ('$GROUPS', \$WHERE);\n"; … … 536 537 @extfields = split (/,/, $extras); 537 538 for ($i = 0; $i < @extfields; $i++) { 538 # print STDERR $extfields[$i],"\n";539 # print STDERR $extfields[$i],"\n"; 539 540 ($label, $value, $outline) = &parse_label ($extfields[$i]); 540 # print STDERR "[",$label,"]","[",$value,"]","[",$outline,"\n";541 # print STDERR "[",$label,"]","[",$value,"]","[",$outline,"\n"; 541 542 print FILE " \$link = \$link . \"&$outline\";\n"; 542 543 } … … 553 554 # print STDERR "#############################\n"; 554 555 # foreach my $key ( keys %linkarg ) { 555 # print STDERR "key: $key, value: $linkarg{$key}\n";556 # print STDERR "key: $key, value: $linkarg{$key}\n"; 556 557 # } 557 558 … … 560 561 561 562 if ($linkarg{$word}) { 562 # print STDERR "Case 1\n";563 # print STDERR "Case 1\n"; 563 564 $linkarg{$word} = "$linkarg{$word},$value"; 564 565 } else { 565 # print STDERR "Case 2\n";566 # print STDERR "Case 2\n"; 566 567 $linkarg{$word} = $value; 567 568 } … … 585 586 # print STDERR "### parse_label ###\n"; 586 587 # for ($i = 0; $i < @field; $i++) { 587 # print STDERR "field[$i]=$field[$i]\n";588 # print STDERR "field[$i]=$field[$i]\n"; 588 589 # } 589 590 # for ($i = 0; $i < @fieldreal; $i++) { 590 # print STDERR "fieldreal[$i]=$fieldreal[$i]\n";591 # print STDERR "fieldreal[$i]=$fieldreal[$i]\n"; 591 592 # } 592 593 # for ($i = 0; $i < @count; $i++) { 593 # print STDERR "count[$i]=$count[$i]\n";594 # print STDERR "count[$i]=$count[$i]\n"; 594 595 # } 595 596 … … 598 599 if ($string =~ m|\S+=\S+|) { 599 600 ($label, $value) = $string =~ m|(\S+)=(\S+)|; 600 # print STDERR "value=$value\n";601 # print STDERR "value=$value\n"; 601 602 if ($value =~ m|^\$|) { 602 603 MATCH_LABEL: … … 669 670 $name = &parse_fieldname ($name); 670 671 if (exists $ops{$name}) { 671 #if OPx was defined, replace it by its value672 $name = $ops{$name};673 $name =~ s/\s+//g;672 #if OPx was defined, replace it by its value 673 $name = $ops{$name}; 674 $name =~ s/\s+//g; 674 675 } 675 676 $camera = &parse_fieldname ($camera); -
branches/eam_branches/ipp-20120601/ippScripts/scripts/addstar_run.pl
r33525 r34047 38 38 } 39 39 my $minidvodb_path; 40 my $stage_extra1 ; 41 my ( $add_id, $camera, $stage, $stage_id, $ multi_num, $outroot, $stageroot, $dbname, $reduction, $dvodb, $minidvodb, $minidvodb_name, $minidvodb_group, $image_only, $verbose, $no_update,40 41 my ( $add_id, $camera, $stage, $stage_id, $stage_extra1, $outroot, $stageroot, $dbname, $reduction, $dvodb, $minidvodb, $minidvodb_name, $minidvodb_group, $image_only, $verbose, $no_update, 42 42 $no_op, $redirect, $save_temps); 43 43 GetOptions( … … 46 46 'stage|s=s' => \$stage, # Camera 47 47 'stage_id|w=s' => \$stage_id, 48 ' multi_num|w=s' => \$multi_num, # the number for a staticskymulti (for finding cmf)48 'stage_extra1|w=s' => \$stage_extra1, # the number for a staticskymulti (for finding cmf), or stack_id 49 49 'dbname|d=s' => \$dbname, # Database name 50 50 'outroot|w=s' => \$outroot, # output file base name … … 162 162 } 163 163 } 164 if (($stage =~/sta ticsky/) || ($stage =~/stack/)) {164 if (($stage =~/stack/)) { 165 165 $fpaObjects =~ s/smf$/cmf/; 166 166 $fpaObjectsAlt =~ s/smf$/cmf/; 167 } 167 168 } 169 my $fpaObjects1; 170 my $fpaObjects2; 168 171 my $checkalt = 0; 169 172 if ($stage =~/staticsky/) { 170 $fpaObjects =~ s/smf$/cmf/; #this should do nothing because it was already modded above 171 &my_die( "can't find the filter_num for staticsky_multi, giving up.", $add_id, $PS_EXIT_SYS_ERROR) unless (defined $multi_num); 172 my $nice_num = sprintf ("%03d", $multi_num); 173 $fpaObjects =~ s/cmf$/$nice_num.cmf/; #this make it look for .001.cmf, etc 174 if ($multi_num == 0) { 175 $checkalt =1 ; #if it's staticsky and multi_num = 0 there's an alternate file to try if this one doesn't work 176 } 173 $checkalt = 1; 174 my $sources = $ipprc->filename("PSPHOT.OUT.CMF.MEF", $stageroot); #this is mostly rigtht except the .cmf needs either 175 # .000.cmf or .stk.xxxxx.cmf 176 print "$sources\n\n\n"; 177 &my_die( "can't find the filter_num for staticsky_multi, giving up.", $add_id, $PS_EXIT_SYS_ERROR) unless (defined $stage_extra1); 178 179 180 $fpaObjects1 = $sources; 181 $fpaObjects2 = $sources; 182 $fpaObjects = $sources; 183 184 my $nice_num = sprintf ("%03d", $stage_extra1); 185 186 $fpaObjects1 =~ s/cmf$/stk.$stage_extra1.cmf/; 187 $fpaObjects2 =~ s/cmf$/$nice_num.cmf/; #this make it look for .001.cmf, etc 188 # we have 3 of them to try 189 my $realFile = $ipprc->file_resolve($fpaObjects); 190 my $realFile1 = $ipprc->file_resolve($fpaObjects1); 191 my $realFile2 = $ipprc->file_resolve($fpaObjects2); 192 if (!defined($realFile1)) { 193 if (!defined($realFile2)) { 194 print "using $fpaObjects\n"; 195 196 } else { 197 print "using $fpaObjects2\n"; 198 $fpaObjects = $fpaObjects2; 199 } 200 201 } else { 202 print "using $fpaObjects1\n"; 203 $fpaObjects = $fpaObjects1; 204 } 205 206 177 207 } 178 208 … … 230 260 my $camdir = $ipprc->dvo_cameradir(); # Camera directory for addstar 231 261 232 my $realFile = $ipprc->file_resolve($fpaObjects); 233 if (!defined($realFile)) { 234 print "can't find $fpaObjects\n"; 235 if ($checkalt) { 236 $realFile = $ipprc->file_resolve($fpaObjectsAlt) or &my_die("Unable to resolve $fpaObjectsAlt", $add_id, $PS_EXIT_SYS_ERROR); 237 $fpaObjects = $fpaObjectsAlt; # want to make sure the correct value is used. 238 } else { 239 # try the 'good one' again and fail i 240 #$realFile = $ipprc->file_resolve($fpaObjects) or 241 &my_die("Unable to resolve $fpaObjects", $add_id, $PS_EXIT_SYS_ERROR); 242 } 243 244 } 262 my $realFile = $ipprc->file_resolve($fpaObjects) or &my_die("Unable to resolve $fpaObjects", $add_id, $PS_EXIT_SYS_ERROR); 263 264 265 245 266 246 267 # require a defined output dvo database to run addstar (ie, refuse to use the .ptolemyrc default) -
branches/eam_branches/ipp-20120601/ippScripts/scripts/automate_stacks.pl
r31906 r34047 1588 1588 1589 1589 sub init_gpc_db { 1590 ## change to use the site.config setting now, however may want to use replicated scidbs instead 1591 my $ipprc = PS::IPP::Config->new(); # IPP Configuration 1592 my $siteConfig = $ipprc->{_siteConfig}; 1590 1593 use constant DB_SOCKET => '/var/run/mysqld/mysqld.sock'; 1591 my $dbserver = 'ippdb01';1594 # my $dbserver = 'ippdb01'; 1592 1595 my $dbuser = 'ippuser'; 1593 1596 my $dbpass = 'ippuser'; 1597 my $dbserver = metadataLookupStr($siteConfig, 'DBSERVER'); 1598 die "database configuration set up" unless defined($dbserver); 1594 1599 $db = DBI->connect("DBI:mysql:database=${dbname};host=${dbserver};" . 1595 1600 "mysql_socket=" . DB_SOCKET(), -
branches/eam_branches/ipp-20120601/ippScripts/scripts/bundle_detrends.pl
r27504 r34047 128 128 129 129 sub init_gpc_db { 130 ## change to use the site.config setting now, however may want to use replicated scidbs instead 131 my $siteConfig = $ipprc->{_siteConfig}; 130 132 use constant DB_SOCKET => '/var/run/mysqld/mysqld.sock'; 131 my $dbserver = 'ippdb01';133 # my $dbserver = 'ippdb01'; 132 134 my $dbuser = 'ippuser'; 133 135 my $dbpass = 'ippuser'; 136 my $dbserver = metadataLookupStr($siteConfig, 'DBSERVER'); 137 die "database configuration set up" unless defined($dbserver); 134 138 $db = DBI->connect("DBI:mysql:database=${dbname};host=${dbserver};" . 135 139 "mysql_socket=" . DB_SOCKET(), -
branches/eam_branches/ipp-20120601/ippScripts/scripts/destreak_restore_camera.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120601/ippScripts/scripts/ipp_apply_burntool_single.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120601/ippScripts/scripts/magic_destreak.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120601/ippScripts/scripts/make_burntool_pcontrol.pl
r28640 r34047 29 29 30 30 # Load database 31 ## change to use the site.config setting now 31 32 $dbname = 'gpc1'; 32 $dbserver = 'ippdb01';33 #$dbserver = 'ippdb01'; 33 34 $dbuser = 'ipp'; 34 35 $dbpass = 'ipp'; 36 my $ipprc = PS::IPP::Config->new(); # IPP Configuration 37 my $siteConfig = $ipprc->{_siteConfig}; 38 my $dbserver = metadataLookupStr($siteConfig, 'DBSERVER'); 39 die "database configuration not set up" unless defined($dbserver); 35 40 $db = DBI->connect("DBI:mysql:database=${dbname};host=${dbserver};" . 36 41 "mysql_socket=" . DB_SOCKET(), -
branches/eam_branches/ipp-20120601/ippScripts/scripts/nightly_science.pl
r33863 r34047 32 32 exit($PS_EXIT_CONFIG_ERROR); 33 33 } 34 35 ## for DB connection, want to use siteConfig DB settings 36 my $ipprc = PS::IPP::Config->new(); # IPP Configuration 37 my $siteConfig = $ipprc->{_siteConfig}; 34 38 35 39 my $db; … … 2052 2056 2053 2057 sub init_gpc_db { 2058 ## change to use the siteConfig setting, while readonly probably do not want to use a readonly replicated DB incase it gets behind 2059 my $dbserver = metadataLookupStr($siteConfig, 'DBSERVER'); 2060 my $dbuser = metadataLookupStr($ipprc->{_siteConfig}, "RO_DBUSER"); 2061 my $dbpass = metadataLookupStr($ipprc->{_siteConfig}, "RO_DBPASSWORD"); 2062 die "database configuration not set up" unless defined($dbserver); 2063 die "database configuration not set up" unless defined($dbuser); 2064 die "database configuration not set up" unless defined($dbpass); 2065 #my $dbserver = 'ippdb01'; 2066 #my $dbuser = 'ippuser'; 2067 #my $dbpass = 'ippuser'; 2054 2068 use constant DB_SOCKET => '/var/run/mysqld/mysqld.sock'; 2055 my $dbserver = 'ippdb01';2056 my $dbuser = 'ippuser';2057 my $dbpass = 'ippuser';2058 2069 $db = DBI->connect("DBI:mysql:database=${dbname};host=${dbserver};" . 2059 2070 "mysql_socket=" . DB_SOCKET(), -
branches/eam_branches/ipp-20120601/ippScripts/scripts/staticsky.pl
r33957 r34047 81 81 -msg => "Required options: --sky_id --outroot --camera", 82 82 -exitval => 3, 83 ) unless 83 ) unless 84 84 defined $sky_id and 85 85 defined $outroot and … … 120 120 121 121 122 # generate the input 122 # generate the input 123 123 print $listFile "INPUT MULTI\n"; 124 124 my $nInputs = @$files; … … 194 194 # Perform stack photometry analysis 195 195 { 196 my $command = "$psphotStack $outroot .stk";196 my $command = "$psphotStack $outroot"; 197 197 $command .= " -input $listName"; 198 198 $command .= " -threads $threads" if defined $threads; … … 235 235 # we have one set of output files per input file set 236 236 for (my $i = 0; $i < @$files; $i++) { 237 my $outputName = $ipprc->filename("PSPHOT.STACK.OUTPUT.IMAGE", $outroot, $i); 238 my $outputMask = $ipprc->filename("PSPHOT.STACK.OUTPUT.MASK", $outroot, $i); 239 my $outputVariance = $ipprc->filename("PSPHOT.STACK.OUTPUT.VARIANCE", $outroot, $i); 240 my $outputSources = $ipprc->filename("PSPHOT.STACK.OUTPUT", $outroot, $i); 237 my $stack_id = @$files[$i]->{stack_id}; 238 my $outputName = $ipprc->filename("PSPHOT.STACK.OUTPUT.IMAGE", $outroot, $stack_id); 239 my $outputMask = $ipprc->filename("PSPHOT.STACK.OUTPUT.MASK", $outroot, $stack_id); 240 my $outputVariance = $ipprc->filename("PSPHOT.STACK.OUTPUT.VARIANCE", $outroot, $stack_id); 241 my $outputSources = $ipprc->filename("PSPHOT.STACK.OUTPUT", $outroot, $stack_id); 241 242 242 243 # XXX these are optional and not generated by default … … 256 257 257 258 # XXX check the recipe -- should we expect these to exist? 258 # &my_die("Couldn't find expected output file: $chisqName", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($chisqName);259 # &my_die("Couldn't find expected output file: $chisqMask", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($chisqMask);259 # &my_die("Couldn't find expected output file: $chisqName", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($chisqName); 260 # &my_die("Couldn't find expected output file: $chisqMask", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($chisqMask); 260 261 # &my_die("Couldn't find expected output file: $chisqVariance", $sky_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($chisqVariance); 261 262 } … … 346 347 } 347 348 348 &my_die("Couldn't find expected output file: $configuration", $sky_id, $PS_EXIT_SYS_ERROR) 349 &my_die("Couldn't find expected output file: $configuration", $sky_id, $PS_EXIT_SYS_ERROR) 349 350 unless $ipprc->file_exists($configuration); 350 351 } else { … … 359 360 { 360 361 my $command = "$staticskytool -sky_id $sky_id"; 361 $command .= " -addresult -path_base $outroot";362 $command .= " -num_inputs $nInputs";363 # $command .= " $cmdflags";364 $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));365 $command .= " -hostname $host" if defined $host;362 $command .= " -addresult -path_base $outroot"; 363 $command .= " -num_inputs $nInputs"; 364 # $command .= " $cmdflags"; 365 $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400)); 366 $command .= " -hostname $host" if defined $host; 366 367 $command .= " -dbname $dbname" if defined $dbname; 367 368 … … 371 372 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 372 373 my $err_message = "Unable to perform staticskytool -addresult"; 373 warn($err_message);374 exit $error_code;374 warn($err_message); 375 exit $error_code; 375 376 } 376 377 } … … 389 390 if (defined $sky_id and not $no_update) { 390 391 my $command = "$staticskytool -sky_id $sky_id -fault $exit_code"; 391 $command .= " -addresult";392 $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));393 $command .= " -hostname $host" if defined $host;394 $command .= " -path_base $outroot" if defined $outroot;395 $command .= " -dbname $dbname" if defined $dbname;392 $command .= " -addresult"; 393 $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400)); 394 $command .= " -hostname $host" if defined $host; 395 $command .= " -path_base $outroot" if defined $outroot; 396 $command .= " -dbname $dbname" if defined $dbname; 396 397 run(command => $command, verbose => $verbose); 397 398 } -
branches/eam_branches/ipp-20120601/ippTools/share/addtool_find_sky_id_multi.sql
r33525 r34047 2 2 distinct(sky_id) as stage_id, 3 3 staticskyRun.*, 4 staticskyResult.num_inputs 4 staticskyResult.num_inputs, stack_id 5 5 FROM 6 6 staticskyRun -
branches/eam_branches/ipp-20120601/ippTools/share/addtool_find_sky_id_multi_dvo.sql
r33525 r34047 1 SELECT distinct(sky_id) as stage_id, staticskyRun.*, staticskyResult.num_inputs FROM staticskyResult1 SELECT distinct(sky_id) as stage_id, staticskyRun.*, staticskyResult.num_inputs, stack_id FROM staticskyResult 2 2 JOIN staticskyRun USING(sky_id) 3 3 join staticskyInput using(sky_id) -
branches/eam_branches/ipp-20120601/ippTools/share/camtool_find_pendingimfile.sql
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120601/ippTools/share/chiptool_setimfiletoupdate.sql
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120601/ippTools/share/pxadmin_create_tables.sql
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120601/ippTools/share/warptool_towarped.sql
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120601/ippTools/src
- Property svn:mergeinfo changed
/trunk/ippTools/src (added) merged: 33989
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20120601/ippTools/src/addtool.c
r34034 r34047 292 292 // } 293 293 if (strcmp(stage,"staticsky") == 0) { 294 psStringAppend(&query, " GROUP BY sky_id "); //some reason it needs this294 psStringAppend(&query, " GROUP BY sky_id, stack_id"); //some reason it needs this 295 295 } 296 296 … … 525 525 psS64 stage_id =0; 526 526 bool status = false; 527 psS32 num_inputs = psMetadataLookupS32(&status, md, "num_inputs"); 527 //psS32 num_inputs = psMetadataLookupS32(&status, md, "num_inputs"); 528 psS32 stack_id = psMetadataLookupS32(&status, md, "stack_id"); 529 528 530 if (!status) { 529 psError(PS_ERR_UNKNOWN, true, "failed to lookup value for item num_inputs");531 psError(PS_ERR_UNKNOWN, true, "failed to lookup value for item stack_id"); 530 532 return false; 531 533 } … … 540 542 541 543 // queue the exp 542 for (int filter_id = 0; filter_id < num_inputs; filter_id++) {543 if (!pxaddQueueByCamID(config,544 //for (int filter_id = 0; filter_id < num_inputs; filter_id++) { 545 if (!pxaddQueueByCamID(config, 544 546 stage, 545 stage_id,546 filter_id,547 stage_id, 548 stack_id, 547 549 workdir ? workdir : row->workdir, 548 550 reduction ? reduction : row->reduction, … … 555 557 minidvodb_group, 556 558 minidvodb_name 557 )) {559 )) { 558 560 if (!psDBRollback(config->dbh)) { 559 psError(PS_ERR_UNKNOWN, false, "database error sfg");561 psError(PS_ERR_UNKNOWN, false, "database error sfg"); 560 562 } 561 563 psError(PS_ERR_UNKNOWN, false, … … 564 566 psFree(output); 565 567 return false; 566 }567 }568 } 569 //} 568 570 psFree(row); 569 571 } -
branches/eam_branches/ipp-20120601/ippTools/src/magictool.c
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120601/ippconfig
- Property svn:mergeinfo changed
/trunk/ippconfig (added) merged: 33979
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20120601/ippconfig/recipes/filerules-mef.mdc
r33848 r34047 239 239 PSPHOT.CHISQ.MASK OUTPUT {OUTPUT}.{CHIP.NAME}.chisq.mk.fits MASK NONE FPA TRUE SIMPLE 240 240 PSPHOT.CHISQ.VARIANCE OUTPUT {OUTPUT}.{CHIP.NAME}.chisq.wt.fits VARIANCE NONE FPA TRUE SIMPLE 241 PSPHOT.STACK.OUTPUT OUTPUT {OUTPUT}.{CHIP.NAME}. {FILE.ID}.cmf CMF NONE FPA TRUE NONE241 PSPHOT.STACK.OUTPUT OUTPUT {OUTPUT}.{CHIP.NAME}.sky.{FILE.ID}.cmf CMF NONE FPA TRUE NONE 242 242 243 243 SOURCE.PLOT.MOMENTS OUTPUT {OUTPUT}.mnt.png KAPA NONE FPA TRUE NONE -
branches/eam_branches/ipp-20120601/ippconfig/recipes/filerules-simple.mdc
r33848 r34047 216 216 PSPHOT.CHISQ.MASK OUTPUT {OUTPUT}.chisq.mk.fits MASK NONE FPA TRUE NONE 217 217 PSPHOT.CHISQ.VARIANCE OUTPUT {OUTPUT}.chisq.wt.fits VARIANCE NONE FPA TRUE NONE 218 PSPHOT.STACK.OUTPUT.IMAGE OUTPUT {OUTPUT}. {FILE.ID}.im.fits IMAGE NONE FPA TRUE NONE219 PSPHOT.STACK.OUTPUT.MASK OUTPUT {OUTPUT}. {FILE.ID}.mk.fits MASK NONE FPA TRUE NONE220 PSPHOT.STACK.OUTPUT.VARIANCE OUTPUT {OUTPUT}. {FILE.ID}.wt.fits VARIANCE NONE FPA TRUE NONE221 PSPHOT.STACK.OUTPUT OUTPUT {OUTPUT}. {FILE.ID}.cmf CMF NONE FPA TRUE NONE218 PSPHOT.STACK.OUTPUT.IMAGE OUTPUT {OUTPUT}.stk.{FILE.ID}.im.fits IMAGE NONE FPA TRUE NONE 219 PSPHOT.STACK.OUTPUT.MASK OUTPUT {OUTPUT}.stk.{FILE.ID}.mk.fits MASK NONE FPA TRUE NONE 220 PSPHOT.STACK.OUTPUT.VARIANCE OUTPUT {OUTPUT}.stk.{FILE.ID}.wt.fits VARIANCE NONE FPA TRUE NONE 221 PSPHOT.STACK.OUTPUT OUTPUT {OUTPUT}.stk.{FILE.ID}.cmf CMF NONE FPA TRUE NONE 222 222 223 223 SOURCE.PLOT.MOMENTS OUTPUT {OUTPUT}.mnt.png KAPA NONE FPA TRUE NONE -
branches/eam_branches/ipp-20120601/ippconfig/recipes/filerules-split.mdc
r33848 r34047 235 235 PSPHOT.CHISQ.MASK OUTPUT {OUTPUT}.chisq.mk.fits MASK NONE FPA TRUE NONE 236 236 PSPHOT.CHISQ.VARIANCE OUTPUT {OUTPUT}.chisq.wt.fits VARIANCE NONE FPA TRUE NONE 237 PSPHOT.STACK.OUTPUT.IMAGE OUTPUT {OUTPUT}. {FILE.ID}.im.fits IMAGE NONE FPA TRUE NONE238 PSPHOT.STACK.OUTPUT.MASK OUTPUT {OUTPUT}. {FILE.ID}.mk.fits MASK NONE FPA TRUE NONE239 PSPHOT.STACK.OUTPUT.VARIANCE OUTPUT {OUTPUT}. {FILE.ID}.wt.fits VARIANCE NONE FPA TRUE NONE240 PSPHOT.STACK.OUTPUT OUTPUT {OUTPUT}. {FILE.ID}.cmf CMF NONE FPA TRUE NONE237 PSPHOT.STACK.OUTPUT.IMAGE OUTPUT {OUTPUT}.stk.{FILE.ID}.im.fits IMAGE NONE FPA TRUE NONE 238 PSPHOT.STACK.OUTPUT.MASK OUTPUT {OUTPUT}.stk.{FILE.ID}.mk.fits MASK NONE FPA TRUE NONE 239 PSPHOT.STACK.OUTPUT.VARIANCE OUTPUT {OUTPUT}.stk.{FILE.ID}.wt.fits VARIANCE NONE FPA TRUE NONE 240 PSPHOT.STACK.OUTPUT OUTPUT {OUTPUT}.stk.{FILE.ID}.cmf CMF NONE FPA TRUE NONE 241 241 PSPHOT.STACK.CONFIG OUTPUT {OUTPUT}.psphotStack.mdc TEXT NONE FPA TRUE NONE 242 242 -
branches/eam_branches/ipp-20120601/ippconfig/recipes/reductionClasses.mdc
- Property svn:mergeinfo changed (with no actual effect on merging)
Note:
See TracChangeset
for help on using the changeset viewer.
