Changeset 35398 for trunk/pstamp/scripts/pstamp_job_run.pl
- Timestamp:
- Apr 12, 2013, 11:03:47 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstamp_job_run.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_job_run.pl
r33512 r35398 113 113 114 114 if ($stage eq "raw") { 115 # zap options that don't apply to raw stage 115 116 $options &= ~($PSTAMP_SELECT_MASK | $PSTAMP_SELECT_VARIANCE); 116 117 } … … 136 137 $argString .= " -astrom $params->{astrom}"; 137 138 push @file_list, $params->{astrom}; 139 } 140 141 if ($options & $PSTAMP_SELECT_SOURCES) { 142 # Extract sources from astrometry file if provided. This will be the smf for chip stage 143 # or the skycal cmf for stacks 144 if ($params->{astrom}) { 145 $argString .= " -write_cmf"; 146 if ($stage eq 'stack') { 147 # Set psphot recipe to STACKPHOT so that the extended source paramters will 148 # be copied from the cmf file. 149 $argString .= " -recipe PSPHOT STACKPHOT" 150 } 151 } elsif ($params->{cmf}) { 152 $argString .= " -write_cmf"; 153 push @file_list, $params->{cmf}; 154 } else { 155 print "Could not find suitable sources file will not write cmf\n"; 156 } 138 157 } 139 158 … … 254 273 $PSTAMP_SELECT_MASK => "mk.fits", 255 274 $PSTAMP_SELECT_VARIANCE => "wt.fits", 275 $PSTAMP_SELECT_SOURCES => "cmf", 256 276 $PSTAMP_SELECT_JPEG => "jpg"); 257 277 258 my $output_mask = $options & ($PSTAMP_SELECT_IMAGE | $PSTAMP_SELECT_MASK | $PSTAMP_SELECT_VARIANCE | $PSTAMP_SELECT_JPEG );278 my $output_mask = $options & ($PSTAMP_SELECT_IMAGE | $PSTAMP_SELECT_MASK | $PSTAMP_SELECT_VARIANCE | $PSTAMP_SELECT_JPEG | $PSTAMP_SELECT_SOURCES); 259 279 260 280 foreach my $key (keys (%extensions)) { … … 400 420 my $pattern_file = $params->{pattern} if ($options & $PSTAMP_SELECT_BACKMDL); 401 421 my $cmf_file; 402 if ($stage ne 'chip') {403 # we don't ship chip stage cmf files because they may not be censored404 $cmf_file = $params->{cmf} if ($options & $PSTAMP_SELECT_CMF);405 }422 # if ($stage ne 'chip') { 423 # # we don't ship chip stage cmf files because they may not be censored 424 # $cmf_file = $params->{cmf} if ($options & $PSTAMP_SELECT_CMF); 425 # } 406 426 407 427 my $outdir = dirname($output_base);
Note:
See TracChangeset
for help on using the changeset viewer.
