Changeset 36370
- Timestamp:
- Dec 10, 2013, 2:14:21 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130904
- Files:
-
- 30 edited
- 1 copied
-
. (modified) (1 prop)
-
ippScripts/scripts/chip_imfile.pl (modified) (1 prop)
-
ippScripts/scripts/destreak_restore_camera.pl (modified) (1 prop)
-
ippScripts/scripts/ipp_apply_burntool_single.pl (modified) (1 prop)
-
ippScripts/scripts/lap_science.pl (modified) (1 prop)
-
ippScripts/scripts/magic_destreak.pl (modified) (1 prop)
-
ippScripts/scripts/publish_file.pl (modified) (1 prop)
-
ippScripts/scripts/rawcheck.pl (modified) (7 diffs)
-
ippScripts/scripts/skycell_jpeg.pl (modified) (2 diffs)
-
ippScripts/scripts/warp_skycell.pl (modified) (1 prop)
-
ippTools/share (modified) (1 prop)
-
ippTools/share/Makefile.am (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/stacktool_addsummary.sql (modified) (1 diff)
-
ippTools/share/stacktool_revertsummary.sql (copied) (copied from trunk/ippTools/share/stacktool_revertsummary.sql )
-
ippTools/share/warptool_towarped.sql (modified) (1 prop)
-
ippTools/src (modified) (1 prop)
-
ippTools/src/camtool.c (modified) (1 prop)
-
ippTools/src/camtoolConfig.c (modified) (1 prop)
-
ippTools/src/magictool.c (modified) (1 prop)
-
ippTools/src/regtoolConfig.c (modified) (1 diff)
-
ippTools/src/stacktool.c (modified) (3 diffs)
-
ippTools/src/stacktool.h (modified) (1 diff)
-
ippTools/src/stacktoolConfig.c (modified) (2 diffs)
-
ippconfig (modified) (1 prop)
-
ippconfig/gpc1 (modified) (1 prop)
-
ippconfig/recipes/filerules-split.mdc (modified) (1 diff)
-
ippconfig/recipes/ppSub.config (modified) (1 prop)
-
ippconfig/recipes/reductionClasses.mdc (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130904
- Property svn:mergeinfo changed
/trunk merged: 36287,36289-36290,36295-36296,36312-36313,36337,36356-36357,36360-36361,36363-36366
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130904/ippScripts/scripts/chip_imfile.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130904/ippScripts/scripts/destreak_restore_camera.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130904/ippScripts/scripts/ipp_apply_burntool_single.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130904/ippScripts/scripts/lap_science.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130904/ippScripts/scripts/magic_destreak.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130904/ippScripts/scripts/publish_file.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130904/ippScripts/scripts/rawcheck.pl
r36253 r36370 81 81 my $regtool_cmd = "$regtool -processedimfile -exp_id $exp_id -dbname $dbname"; 82 82 my ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 83 run(command => $regtool_cmd, verbose => 1);83 run(command => $regtool_cmd, verbose => 0); 84 84 unless ($success) { 85 85 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); … … 133 133 $existance[$i] = 1; 134 134 $existing_copies++; 135 my $fh; 136 open($fh,$files[$i]); 137 $md5sums[$i] = Digest::MD5->new->addfile($fh)->hexdigest; 135 $md5sums[$i] = local_md5sum($files[$i]); 136 # my $fh; 137 # open($fh,$files[$i]); 138 # $md5sums[$i] = Digest::MD5->new->addfile($fh)->hexdigest; 139 # close($fh); 138 140 $md5sum_uniq{$md5sums[$i]} = 1; 139 close($fh); 141 140 142 } 141 143 else { … … 223 225 # Begin my best validation thought 224 226 { 225 my $fh; 226 open($fh,$files[0]); 227 my $tmpmd5 = Digest::MD5->new->addfile($fh)->hexdigest; 228 close($fh); 227 my $tmpmd5 = local_md5sum($files[0]); 228 # my $fh; 229 # open($fh,$files[0]); 230 # my $tmpmd5 = Digest::MD5->new->addfile($fh)->hexdigest; 231 # close($fh); 229 232 if ($tmpmd5 ne $md5sum) { 230 233 die "Post-replication md5sum does not match! $tmpmd5 != $md5sum"; … … 257 260 my $uris = $neb->find_instances($key,$rep_vol); 258 261 @$uris = map {URI->new($_)->file if $_} @$uris; 259 my $fh; 260 open($fh,${ $uris }[0]); 261 my $tmpmd5 = Digest::MD5->new->addfile($fh)->hexdigest; 262 close($fh); 262 my $tmpmd5 = local_md5sum(${ $uris }[0]); 263 # my $fh; 264 # open($fh,${ $uris }[0]); 265 # my $tmpmd5 = Digest::MD5->new->addfile($fh)->hexdigest; 266 # close($fh); 263 267 if ($tmpmd5 ne $md5sum) { 264 268 die "Post-replication md5sum does not match! $tmpmd5 != $md5sum"; … … 282 286 283 287 # print $uris . " " . ${ $uris }[0] . " \n"; 284 my $ fh;285 open($fh,${ $uris }[0]);286 287 my $tmpmd5 = Digest::MD5->new->addfile($fh)->hexdigest;288 close($fh);288 my $tmpmd5 = local_md5sum(${ $uris }[0]); 289 # my $fh; 290 # open($fh,${ $uris }[0]); 291 # my $tmpmd5 = Digest::MD5->new->addfile($fh)->hexdigest; 292 # close($fh); 289 293 if ($tmpmd5 ne $md5sum) { 290 294 die "Post-replication md5sum does not match! $tmpmd5 != $md5sum"; … … 318 322 } 319 323 324 sub local_md5sum { 325 my $filename = shift; 326 my $volume = (split /\//, $filename)[2]; 327 my $host = $volume; 328 $host =~ s/\.\d//; 329 # print "$filename $host $volume\n"; 330 my $response = `ssh $host md5sum $filename`; 331 chomp($response); 332 my ($sum, undef) = split /\s+/, $response; 333 unless(defined($sum)) { 334 my_die("Failed to calculate md5sum locally. $filename $host $volume"); 335 } 336 return($sum); 337 } 338 339 320 340 sub parse_volume { 321 341 my $filename = shift(@_); … … 341 361 } 342 362 343 344 345 346 363 sub my_die { 347 364 my $msg = shift(@_); -
branches/eam_branches/ipp-20130904/ippScripts/scripts/skycell_jpeg.pl
r35853 r36370 271 271 272 272 my %products = ('image' => "PPSTACK.UNCONV", 273 'mask' => "PPSTACK.UNCONV.MASK",273 # 'mask' => "PPSTACK.UNCONV.MASK", 274 274 'variance' => "PPSTACK.UNCONV.VARIANCE", 275 275 'exp' => "PPSTACK.UNCONV.EXP", … … 327 327 $command .= " -Di BIN1 1 -Di BIN2 1 "; 328 328 } 329 # elsif ($key eq 'image') { 330 # $command .= " -masks $tangents{$projection_cell}{mask}{NAME} "; 331 # } 332 # elsif ($key eq 'mask') { 333 # next; # This should be made with the images. 334 # } 335 else { 336 # Append the image list to other objects, in case the WCS information is unpopulated 337 $command .= " -wcsref $tangents{$projection_cell}{image}{NAME} "; 338 } 329 elsif ($key eq 'image') { 330 $command .= " -exptimeOrder 1 "; 331 } 332 elsif ($key eq 'variance') { 333 $command .= " -exptimeOrder 2 "; 334 } 335 # Append the image list to other objects, in case the WCS information is unpopulated 336 $command .= " -wcsref $tangents{$projection_cell}{image}{NAME} "; 337 339 338 if ($tangents{$projection_cell}{$key}{N} > 0) { 340 339 print "$command\n"; -
branches/eam_branches/ipp-20130904/ippScripts/scripts/warp_skycell.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130904/ippTools/share
- Property svn:mergeinfo changed
/trunk/ippTools/share merged: 36361
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130904/ippTools/share/Makefile.am
r36041 r36370 400 400 stacktool_tosummary.sql \ 401 401 stacktool_addsummary.sql \ 402 stacktool_revertsummary.sql \ 402 403 stacktool_summary.sql \ 403 404 staticskytool_definebyquery_select.sql \ -
branches/eam_branches/ipp-20130904/ippTools/share/camtool_find_pendingimfile.sql
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130904/ippTools/share/chiptool_setimfiletoupdate.sql
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130904/ippTools/share/pxadmin_create_tables.sql
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130904/ippTools/share/stacktool_addsummary.sql
r28375 r36370 1 1 INSERT INTO stackSummary (sass_id,projection_cell,path_base) VALUES ( 2 %lld, -- warp_id2 %lld, -- sass_id 3 3 '%s', -- projection_cell 4 4 '%s' -- path_base -
branches/eam_branches/ipp-20130904/ippTools/share/warptool_towarped.sql
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130904/ippTools/src
- Property svn:mergeinfo changed
/trunk/ippTools/src merged: 36361
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130904/ippTools/src/camtool.c
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130904/ippTools/src/camtoolConfig.c
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130904/ippTools/src/magictool.c
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130904/ippTools/src/regtoolConfig.c
r32593 r36370 292 292 psMetadataAddStr(processedexpArgs, PS_LIST_TAIL, "-state", 0, "search by exposure state", NULL); 293 293 psMetadataAddStr(processedexpArgs, PS_LIST_TAIL, "-exp_tag", 0, "search by exp_tag", NULL); 294 psMetadataAddStr(processedexpArgs, PS_LIST_TAIL, "-exp_type", 0, "search by exp_type", "object");294 psMetadataAddStr(processedexpArgs, PS_LIST_TAIL, "-exp_type", 0, "search by exp_type", NULL); 295 295 psMetadataAddStr(processedexpArgs, PS_LIST_TAIL, "-filelevel", 0, "search by filelevel", NULL); 296 296 psMetadataAddStr(processedexpArgs, PS_LIST_TAIL, "-reduction", 0, "search by reduction class", NULL); -
branches/eam_branches/ipp-20130904/ippTools/src/stacktool.c
r36009 r36370 44 44 static bool tosummaryMode(pxConfig *config); 45 45 static bool addsummaryMode(pxConfig *config); 46 static bool revertsummaryMode(pxConfig *config); 46 47 static bool summaryMode(pxConfig *config); 47 48 static bool pendingcleanuprunMode(pxConfig *config); … … 85 86 MODECASE(STACKTOOL_MODE_TOSUMMARY, tosummaryMode); 86 87 MODECASE(STACKTOOL_MODE_ADDSUMMARY, addsummaryMode); 88 MODECASE(STACKTOOL_MODE_REVERTSUMMARY, revertsummaryMode); 87 89 MODECASE(STACKTOOL_MODE_SUMMARY, summaryMode); 88 90 MODECASE(STACKTOOL_MODE_PENDINGCLEANUPRUN, pendingcleanuprunMode); … … 1570 1572 } 1571 1573 1574 static bool revertsummaryMode(pxConfig *config) { 1575 PS_ASSERT_PTR_NON_NULL(config, NULL); 1576 PXOPT_LOOKUP_S64(sass_id, config->args, "-sass_id", true, false); 1577 1578 psString query = pxDataGet("stacktool_revertsummary.sql"); 1579 if (!query) { 1580 psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement"); 1581 return(false); 1582 } 1583 if (!p_psDBRunQueryF(config->dbh, query, sass_id)) { 1584 psError(PS_ERR_UNKNOWN, false, "database error"); 1585 psFree(query); 1586 return(false); 1587 } 1588 psS64 numUpdated = psDBAffectedRows(config->dbh); 1589 1590 if (numUpdated != 1) { 1591 psError(PS_ERR_UNKNOWN, false, "should have affected 1 row"); 1592 psFree(query); 1593 return(false); 1594 } 1595 psLogMsg("stacktool", PS_LOG_INFO, "Deleted %ld rows", numUpdated); 1596 1597 psFree(query); 1598 1599 return(true); 1600 } 1601 1572 1602 static bool summaryMode(pxConfig *config) 1573 1603 { -
branches/eam_branches/ipp-20130904/ippTools/src/stacktool.h
r36009 r36370 38 38 STACKTOOL_MODE_TOSUMMARY, 39 39 STACKTOOL_MODE_ADDSUMMARY, 40 STACKTOOL_MODE_REVERTSUMMARY, 40 41 STACKTOOL_MODE_SUMMARY, 41 42 STACKTOOL_MODE_PENDINGCLEANUPRUN, -
branches/eam_branches/ipp-20130904/ippTools/src/stacktoolConfig.c
r36009 r36370 265 265 psMetadataAddStr(addsummaryArgs, PS_LIST_TAIL, "-path_base", 0, "set summary path base", NULL); 266 266 267 // -revertsummary 268 psMetadata *revertsummaryArgs = psMetadataAlloc(); 269 psMetadataAddS64(revertsummaryArgs, PS_LIST_TAIL, "-sass_id", 0, "search by stack association ID", 0); 270 267 271 // -summary 268 272 psMetadata *summaryArgs = psMetadataAlloc(); … … 335 339 PXOPT_ADD_MODE("-addsumskyfile", "", STACKTOOL_MODE_ADDSUMSKYFILE, addsumskyfileArgs); 336 340 PXOPT_ADD_MODE("-sumskyfile", "list results of stackRun", STACKTOOL_MODE_SUMSKYFILE, sumskyfileArgs); 337 PXOPT_ADD_MODE("-sassskyfile", "list results of stackAssociation", STACKTOOL_MODE_SASSSKYFILE, sassskyfileArgs); 341 338 342 PXOPT_ADD_MODE("-revertsumskyfile","", STACKTOOL_MODE_REVERTSUMSKYFILE, revertsumskyfileArgs); 343 PXOPT_ADD_MODE("-updatesumskyfile", "update fault code for sumskyfile", STACKTOOL_MODE_UPDATESUMSKYFILE, updatesumskyfileArgs); 344 339 345 PXOPT_ADD_MODE("-pendingcleanuprun", "show runs that need to be cleaned up", STACKTOOL_MODE_PENDINGCLEANUPRUN, pendingcleanuprunArgs); 340 346 PXOPT_ADD_MODE("-pendingcleanupskyfile", "show runs that need to be cleaned up", STACKTOOL_MODE_PENDINGCLEANUPSKYFILE, pendingcleanupskyfileArgs); 341 347 PXOPT_ADD_MODE("-donecleanup", "show runs that have been cleaned", STACKTOOL_MODE_DONECLEANUP, donecleanupArgs); 342 PXOPT_ADD_MODE("-updatesumskyfile", "update fault code for sumskyfile", STACKTOOL_MODE_UPDATESUMSKYFILE, updatesumskyfileArgs); 348 349 PXOPT_ADD_MODE("-sassskyfile", "list results of stackAssociation", STACKTOOL_MODE_SASSSKYFILE, sassskyfileArgs); 343 350 PXOPT_ADD_MODE("-tosummary", "show runs that can be summarized", STACKTOOL_MODE_TOSUMMARY, tosummaryArgs); 344 351 PXOPT_ADD_MODE("-summary", "show runs that have been summarized", STACKTOOL_MODE_SUMMARY, summaryArgs); 345 352 PXOPT_ADD_MODE("-addsummary", "add entry to the summary table", STACKTOOL_MODE_ADDSUMMARY, addsummaryArgs); 353 PXOPT_ADD_MODE("-revertsummary", "revert entry in the summary table", STACKTOOL_MODE_REVERTSUMMARY, revertsummaryArgs); 354 346 355 PXOPT_ADD_MODE("-exportrun", "export run for import on other database", STACKTOOL_MODE_EXPORTRUN, exportrunArgs); 347 356 PXOPT_ADD_MODE("-importrun", "import run from metadata file", STACKTOOL_MODE_IMPORTRUN, importrunArgs); -
branches/eam_branches/ipp-20130904/ippconfig
- Property svn:mergeinfo changed
/trunk/ippconfig merged: 36360
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130904/ippconfig/gpc1
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130904/ippconfig/recipes/filerules-split.mdc
r36284 r36370 382 382 PPSKYCELL.JPEG1 OUTPUT {OUTPUT}.0.b1.jpeg JPEG NONE CHIP TRUE NONE 383 383 PPSKYCELL.JPEG2 OUTPUT {OUTPUT}.0.b2.jpeg JPEG NONE CHIP TRUE NONE 384 PPSKYCELL.BIN1 OUTPUT {OUTPUT}.b1.fits IMAGE COMP_IMGFPA TRUE NONE385 PPSKYCELL.BIN2 OUTPUT {OUTPUT}.b2.fits IMAGE COMP_IMGFPA TRUE NONE384 PPSKYCELL.BIN1 OUTPUT {OUTPUT}.b1.fits IMAGE NONE FPA TRUE NONE 385 PPSKYCELL.BIN2 OUTPUT {OUTPUT}.b2.fits IMAGE NONE FPA TRUE NONE 386 386 PPSKYCELL.BIN1.MASK OUTPUT {OUTPUT}.b1.mk.fits MASK COMP_MASK FPA TRUE NONE 387 387 PPSKYCELL.BIN2.MASK OUTPUT {OUTPUT}.b2.mk.fits MASK COMP_MASK FPA TRUE NONE -
branches/eam_branches/ipp-20130904/ippconfig/recipes/ppSub.config
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20130904/ippconfig/recipes/reductionClasses.mdc
- Property svn:mergeinfo changed (with no actual effect on merging)
Note:
See TracChangeset
for help on using the changeset viewer.
