IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 12, 2013, 2:29:12 PM (13 years ago)
Author:
bills
Message:

rerun photometry if psf file is missing even if update_mode is non-zero
Warping will fail withot a psf file.
On update do not set MASK.STATS to False unless it is defined in the recipe.
This allows updates from very old config files to work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/chip_imfile.pl

    r35809 r35811  
    233233    if ($do_photom and ($run_state eq 'update')) {
    234234        # If previous psf file is ok skip photometry
    235         if ($dump_config || rerun_photometry($outroot, $class_id)) {
     235        if (rerun_photometry($outroot, $class_id)) {
    236236            carp "Will rerun photometry\n";
    237             if ($update_mode) {
    238                 carp "Sorry, update_mode = 1. Will NOT rerun photometry\n";
    239                 $do_photom = 0;
    240             }
    241237        } else {
    242238            $do_photom = 0;
     
    497493        $command .= " -R PPIMAGE.CHIP FITS.TYPE NONE";
    498494    }
    499     if ($run_state eq 'update') {
     495    if ($run_state eq 'update' and metadataLookupBool($recipeData, 'MASK.STATS')) {
    500496        $command .= " -Db PPIMAGE:MASK.STATS FALSE ";
    501497    }
Note: See TracChangeset for help on using the changeset viewer.