IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35616


Ignore:
Timestamp:
May 31, 2013, 2:09:34 PM (13 years ago)
Author:
bills
Message:

don't attempt to load astrometry for chips that do not exist
in the input.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpLoadAstrometry.c

    r35563 r35616  
    3838        psTrace ("pswarp", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);
    3939        if (!chip->process || !chip->file_exists) { continue; }
     40        pmChip *targetChip = pmFPAviewThisChip(view, target->fpa); // < Chip in the output
     41        if (!targetChip || !targetChip->process || !targetChip->file_exists) {
     42            continue; // only load astrometry into output chips which exist!
     43        }
    4044        if (!pmFPAfileRead (astrom, view, config)) {
    4145            psError(psErrorCodeLast(), false, "failed READ at CHIP %s", astrom->name);
     
    109113        if (!chip->process || !chip->file_exists) { continue; }
    110114
     115        pmChip *targetChip = pmFPAviewThisChip(view, target->fpa); // < Chip in the output
     116        if (!targetChip || !targetChip->process || !targetChip->file_exists) {
     117            continue; // only load astrometry into output chips which exist!
     118        }
     119
    111120        // we've got the astrom header
    112121        pmHDU *hdu = pmHDUFromChip(chip); ///< HDU for source
     
    116125            return false;
    117126        }
    118 
    119         // We read from the astrometry source into the target.
    120         pmChip *targetChip = pmFPAviewThisChip(view, target->fpa); ///< Chip in the output
    121         if (!targetChip) continue; // only load astrometry into output chips which exist!
    122127
    123128        if (bilevelAstrometry) {
Note: See TracChangeset for help on using the changeset viewer.