Changeset 25027 for branches/pap/ippScripts/scripts/warp_skycell.pl
- Timestamp:
- Aug 7, 2009, 4:08:25 PM (17 years ago)
- Location:
- branches/pap
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/warp_skycell.pl (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/ippScripts/scripts/warp_skycell.pl
r23716 r25027 36 36 } 37 37 38 my ($warp_id, $skycell_id, $warp_skyfile_id, $tess_dir, $ camera, $dbname, $outroot, $threads, $run_state, $magicked, $verbose, $no_update, $no_op, $redirect, $save_temps);38 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); 39 39 GetOptions( 40 40 'warp_id|i=s' => \$warp_id, # Warp identifier … … 44 44 'camera|c=s' => \$camera, # Camera name 45 45 'dbname|d=s' => \$dbname, # Database name 46 'reduction=s' => \$reduction, # Reduction class 46 47 'outroot=s' => \$outroot, # Output root name 47 48 'threads=s' => \$threads, # Number of threads to use for pswarp … … 57 58 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 58 59 pod2usage( 59 -msg => "Required options: --warp_id -- skycell_id --tess_dir --camera --outroot --run-state",60 -msg => "Required options: --warp_id --warp_skyfile_id --skycell_id --tess_dir --camera --outroot --run-state", 60 61 -exitval => 3, 61 62 ) unless defined $warp_id … … 74 75 $ipprc->redirect_output($logDest) or my_die( "Unable to redirect output", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR ) if $redirect; 75 76 77 # Recipes to use based on reduction class 78 $reduction = 'DEFAULT' unless defined $reduction; 79 my $recipe_pswarp = $ipprc->reduction($reduction, 'WARP_PSWARP'); # Recipe to use for ppImage 80 unless ($recipe_pswarp) { 81 &my_die("Couldn't find selected reduction for WARP_PSWARP: $reduction\n", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_CONFIG_ERROR); 82 } 83 76 84 my $source_id = $ipprc->source_id($dbname, $PS_TABLE_ID_WARP); 77 85 … … 81 89 { 82 90 # XXX change -tess_id to -tess_dir when db schema is updated 83 my $command = "$warptool -scmap -warp_id $warp_id -skycell_id $skycell_id -tess_id $tess_dir"; 91 my $command = "$warptool -scmap"; 92 $command .= " -warp_id $warp_id"; 93 $command .= " -skycell_id $skycell_id"; 94 # $command .= " -tess_id $tess_dir"; XXX I don't think this is necessary or useful 84 95 $command .= " -dbname $dbname" if defined $dbname; 85 96 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = … … 99 110 my $astromSource; # The astrometry source 100 111 { 101 my $command = "$ppConfigDump -camera $camera - dump-recipe PSWARP -";112 my $command = "$ppConfigDump -camera $camera -recipe PSWARP $recipe_pswarp -dump-recipe PSWARP -"; 102 113 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 103 114 run(command => $command, verbose => $verbose); … … 189 200 $command .= " -F SOURCE.PLOT.PSFMODEL SOURCE.PLOT.SKY.PSFMODEL"; 190 201 $command .= " -F SOURCE.PLOT.APRESID SOURCE.PLOT.SKY.APRESID"; 202 $command .= " -recipe PSWARP $recipe_pswarp"; 191 203 $command .= " -psf"; # Turn on PSF determination 192 204 $command .= " -tracedest $traceDest -log $logDest"; … … 199 211 $do_stats = 1; 200 212 } else { 201 $command .= " -ipprc $configuration"; 213 #$command .= " -ipprc $configuration"; 214 my $resolved = $ipprc->file_resolve($configuration); 215 $command .= " -ipprc $resolved"; 202 216 } 203 217 if ($do_stats) { … … 303 317 $command .= " -path_base $outroot"; 304 318 $command .= " -hostname $host" if defined $host; 319 $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400)); 305 320 } else { 306 321 $command .= " -updateskyfile"; … … 308 323 $command .= " -warp_id $warp_id"; 309 324 $command .= " -skycell_id $skycell_id"; 310 $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));311 325 $command .= " -fault $exit_code"; 312 326 $command .= " -dbname $dbname" if defined $dbname;
Note:
See TracChangeset
for help on using the changeset viewer.
