Changeset 42388 for trunk/ippScripts/scripts/camera_exp.pl
- Timestamp:
- Feb 8, 2023, 12:15:30 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/camera_exp.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/camera_exp.pl
r42229 r42388 133 133 } 134 134 135 ## option to skip the astrometry analysis (but still do the jpegs) 136 ## if not defined in the config file, default is to not skip 137 my $skip_astrom = 0; 138 $skip_astrom = metadataLookupBool($recipeData, 'PSASTRO.SKIP.ASTROMETRY'); 139 print "skip astrom: $skip_astrom\n"; 140 if ($skip_astrom) { print "skip the astrom\n"; } 141 135 142 my $cmdflags; 136 143 … … 183 190 ($expFWHM) = $cmdflags =~ /-fwhm_major (\d+)/; 184 191 185 if ($expFWHM > $maxFWHM) { 192 if (not defined $expFWHM) { 193 print "FWHM not measured (no photometry?), Setting quality to 4077\n"; 194 $cmdflags .= " -quality 4077 "; # This corresponds to PSASTRO_ERR_DATA 195 $skip_astrom = 1; 196 } elsif ($expFWHM > $maxFWHM) { 186 197 print "Setting quality to 4007 due to large FWHM: exposure: $expFWHM maximum: $maxFWHM\n"; 187 198 $cmdflags .= " -quality 4007 "; # This corresponds to PSASTRO_ERR_DATA 188 $no_op = 1;189 }190 }191 }192 199 # $no_op = 1; 200 $skip_astrom = 1; # skip astrometry, but make the jpegs 201 } 202 } 203 } 193 204 194 205 my $do_masks; # Produce masks? … … 297 308 my $jpeg1 = prepare_output("PPIMAGE.JPEG1", $outroot, undef, 1) if $do_jpegs; 298 309 my $jpeg2 = prepare_output("PPIMAGE.JPEG2", $outroot, undef, 1) if $do_jpegs; 299 my $fpaObjects = prepare_output("PSASTRO.OUTPUT", $outroot, undef, 1) if !$bkg_only;310 my $fpaObjects = prepare_output("PSASTRO.OUTPUT", $outroot, undef, 1) if (!$bkg_only && !$skip_astrom); 300 311 301 312 my $configuration; … … 342 353 } 343 354 344 if (!$bkg_only ) {355 if (!$bkg_only && !$skip_astrom) { 345 356 # run psastro on the chipObjects, producing fpaObjects 346 357 my $command;
Note:
See TracChangeset
for help on using the changeset viewer.
