Changeset 35134 for trunk/ippScripts/scripts
- Timestamp:
- Feb 8, 2013, 11:50:49 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/background_warp.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/background_warp.pl
r35127 r35134 39 39 40 40 my ($warp_bg_id, $skycell_id, $tess_dir, $reduction, $camera, $dbname, $outroot, $threads, $verbose, $no_update, $no_op, $redirect, $save_temps); 41 my ($astrometry, $imageName, $maskName, $weightName, $magicked );41 my ($astrometry, $imageName, $maskName, $weightName, $magicked, $exp_tag, $alternate_astrometry_label); 42 42 GetOptions( 43 43 'warp_bg_id|i=s' => \$warp_bg_id, # Warp identifier 44 44 'skycell_id|s=s' => \$skycell_id, # Skycell identifier 45 45 'tess_dir|s=s' => \$tess_dir, # Tesselation identifier 46 'exp_tag|=s' => \$exp_tag, # exposure tag 46 47 'camera|c=s' => \$camera, # Camera name 47 48 'dbname|d=s' => \$dbname, # Database name … … 51 52 'mask-list=s' => \$maskName, # list of input mask files 52 53 'astrometry=s' => \$astrometry, 54 'alt_cam_label=s' => \$alternate_astrometry_label, # camRun.label for alternate astrometry 53 55 'magicked=s' => \$magicked, 54 56 'threads=s' => \$threads, # Number of threads to use for pswarp … … 84 86 } 85 87 88 if ($alternate_astrometry_label) { 89 my_die( "--exp_tag is required when using alternate astrometry", $warp_bg_id, $skycell_id, $PS_EXIT_PROG_ERROR ) 90 unless defined $exp_tag; 91 } 92 86 93 my $ipprc = PS::IPP::Config->new( $camera ) or 87 94 my_die( "Unable to set up", $warp_bg_id, $skycell_id, $PS_EXIT_CONFIG_ERROR ); # IPP configuration … … 119 126 my $tempOutRoot = "/tmp/background.warp.$warp_bg_id.$skycell_id"; 120 127 121 # XXX: get this from recipe122 my $alternate_astrometry_label = 'M31.test.20130206.bgsub';123 # XXX: get exp_id from command line124 my $exp_id = 196758;125 126 128 if (!defined $imageName) { 127 129 # go find our inputs 128 130 my $astrom_path_base; 129 131 if (defined $alternate_astrometry_label) { 130 my $command = "$camtool -processedexp -exp_ id $exp_id-label $alternate_astrometry_label";132 my $command = "$camtool -processedexp -exp_tag $exp_tag -label $alternate_astrometry_label"; 131 133 $command .= " -dbname $dbname" if $dbname; 132 134 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Note:
See TracChangeset
for help on using the changeset viewer.
