Changeset 24487 for trunk/ippScripts/scripts/warp_skycell.pl
- Timestamp:
- Jun 18, 2009, 10:55:36 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/warp_skycell.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/warp_skycell.pl
r24205 r24487 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 … … 73 74 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; 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 } 75 83 76 84 my $source_id = $ipprc->source_id($dbname, $PS_TABLE_ID_WARP); … … 102 110 my $astromSource; # The astrometry source 103 111 { 104 my $command = "$ppConfigDump -camera $camera - dump-recipe PSWARP -";112 my $command = "$ppConfigDump -camera $camera -recipe PSWARP $recipe_pswarp -dump-recipe PSWARP -"; 105 113 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 106 114 run(command => $command, verbose => $verbose); … … 192 200 $command .= " -F SOURCE.PLOT.PSFMODEL SOURCE.PLOT.SKY.PSFMODEL"; 193 201 $command .= " -F SOURCE.PLOT.APRESID SOURCE.PLOT.SKY.APRESID"; 202 $command .= " -recipe PSWARP $recipe_pswarp"; 194 203 $command .= " -psf"; # Turn on PSF determination 195 204 $command .= " -tracedest $traceDest -log $logDest";
Note:
See TracChangeset
for help on using the changeset viewer.
