Changeset 32470
- Timestamp:
- Sep 30, 2011, 1:32:06 PM (15 years ago)
- Location:
- tags/ipp-20110622
- Files:
-
- 3 edited
-
ippScripts/scripts/warp_skycell.pl (modified) (6 diffs)
-
ippTools/src/warptool.c (modified) (1 diff)
-
ippTools/src/warptoolConfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20110622/ippScripts/scripts/warp_skycell.pl
r31570 r32470 38 38 39 39 my ($warp_id, $skycell_id, $warp_skyfile_id, $tess_dir, $reduction, $camera, $dbname, $outroot, $threads, $run_state, $magicked, $verbose, $no_update, $no_op, $redirect, $save_temps); 40 40 41 GetOptions( 41 42 'warp_id|i=s' => \$warp_id, # Warp identifier … … 74 75 my $do_stats; 75 76 if ($run_state eq 'new') { 76 $logDest = prepare_output("LOG.EXP", $outroot, $skycell_id, 0);77 $logDest = $ipprc->filename("LOG.EXP", $outroot, $skycell_id); 77 78 $traceDest = prepare_output("TRACE.EXP", $outroot, $skycell_id, 1); 78 79 $do_stats = 1; 79 80 } elsif ($run_state eq 'update') { 80 $logDest = prepare_output("LOG.EXP.UPDATE", $outroot, $skycell_id, 1);81 $logDest = $ipprc->filename("LOG.EXP.UPDATE", $outroot, $skycell_id); 81 82 $traceDest = prepare_output("TRACE.EXP.UPDATE", $outroot, $skycell_id, 1); 82 83 } else { … … 90 91 } 91 92 92 $ipprc->redirect_ output($logDest) or my_die( "Unable to redirect output", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR ) if $redirect;93 $ipprc->redirect_to_logfile($logDest) or my_die( "Unable to redirect output", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR ) if $redirect; 93 94 94 95 # Recipes to use based on reduction class … … 330 331 } 331 332 } 332 333 print "Quality: $quality\n"; 333 334 unless ($no_update) { 334 335 # XXX change -tess_id to -tess_dir when db is updated … … 355 356 } 356 357 } else { 358 359 my $quality = 0; 360 361 unless ($ipprc->file_exists($outputPSF)) { 362 $quality = 8006; # bad data. 363 } 364 # if (!$quality) { 365 # check_output($outputImage, 0); 366 # check_output($outputMask, 0); 367 # check_output($outputWeight, 0); 368 # check_output($outputSources, 1); 369 # check_output($outputPSF, 1) if metadataLookupBool($recipe, 'PSF') ; 370 # } 371 print "Quality: $quality\n"; 372 357 373 # $run_state eq 'update' 358 374 unless ($no_update) { … … 361 377 $command .= " -skycell_id $skycell_id"; 362 378 $command .= " -set_magicked $magicked" if $magicked; 379 $command .= " -set_quality $quality" if $quality; 363 380 $command .= " -dbname $dbname" if defined $dbname; 364 381 -
tags/ipp-20110622/ippTools/src/warptool.c
r32424 r32470 2051 2051 // magicked is only an argument for for -tofullskyfile 2052 2052 PXOPT_LOOKUP_S64(magicked, config->args, "-set_magicked", false, false); 2053 PXOPT_LOOKUP_S16(quality, config->args, "-set_quality", false, false); 2053 2054 if (magicked) { 2054 2055 psStringAppend(&set_magicked_skyfile, "\n , warpSkyfile.magicked = %" PRId64, magicked); 2055 2056 psStringAppend(&set_magicked_run, "\n, warpRun.magicked = %" PRId64, magicked); 2056 2057 } 2058 if (quality) { 2059 psStringAppend(&set_magicked_skyfile, "\n , warpSkyfile.quality = %"PRId16, quality); 2060 } 2057 2061 } else if (!strcmp(data_state, "cleaned") || !strcmp(data_state, "purged")) { 2058 2062 // if magicked is currently nonzero set it to -1 -
tags/ipp-20110622/ippTools/src/warptoolConfig.c
r32424 r32470 398 398 psMetadataAddStr(tofullskyfileArgs, PS_LIST_TAIL, "-skycell_id", 0, "skycell ID to update", NULL); 399 399 psMetadataAddS64(tofullskyfileArgs, PS_LIST_TAIL, "-set_magicked", 0, "new value for magicked", 0); 400 400 psMetadataAddS16(tofullskyfileArgs, PS_LIST_TAIL, "-set_quality", 0, "new value for quality", 0); 401 401 402 // -updateskyfile 402 403 psMetadata *updateskyfileArgs = psMetadataAlloc();
Note:
See TracChangeset
for help on using the changeset viewer.
