IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35622


Ignore:
Timestamp:
Jun 3, 2013, 12:35:39 PM (13 years ago)
Author:
watersc1
Message:

Backport of fix Bill implemented on the trunk on Friday that resolves my pswarp issue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-test-20130524/pswarp/src/pswarpLoadAstrometry.c

    • Property svn:mergeinfo set to (toggle deleted branches)
      /branches/eam_branches/ipp-20130419/pswarp/src/pswarpLoadAstrometry.cmergedeligible
      /trunk/pswarp/src/pswarpLoadAstrometry.cmergedeligible
      /branches/czw_branch/20101203/pswarp/src/pswarpLoadAstrometry.c29907-30631
      /branches/czw_branch/20120906/pswarp/src/pswarpLoadAstrometry.c34410-34786
      /branches/eam_branches/ipp-20101103/pswarp/src/pswarpLoadAstrometry.c29657-29920
      /branches/eam_branches/ipp-20101205/pswarp/src/pswarpLoadAstrometry.c29959-30585
      /branches/eam_branches/ipp-20110213/pswarp/src/pswarpLoadAstrometry.c30628-31149
      /branches/eam_branches/ipp-20110404/pswarp/src/pswarpLoadAstrometry.c31166-31444
      /branches/eam_branches/ipp-20110505/pswarp/src/pswarpLoadAstrometry.c31458-31658
      /branches/eam_branches/ipp-20110710/pswarp/src/pswarpLoadAstrometry.c31852-32345
      /branches/eam_branches/ipp-20110906/pswarp/src/pswarpLoadAstrometry.c32363-32631
      /branches/eam_branches/ipp-20111110/pswarp/src/pswarpLoadAstrometry.c32645-32694
      /branches/eam_branches/ipp-20120405/pswarp/src/pswarpLoadAstrometry.c33724-33957
      /branches/eam_branches/ipp-20120601/pswarp/src/pswarpLoadAstrometry.c33977-34079
      /branches/eam_branches/ipp-20120627/pswarp/src/pswarpLoadAstrometry.c34099-34256
      /branches/eam_branches/ipp-20120805/pswarp/src/pswarpLoadAstrometry.c34292-34401
      /branches/eam_branches/ipp-20120905/pswarp/src/pswarpLoadAstrometry.c34407-34747
      /branches/eam_branches/ipp-20121130/pswarp/src/pswarpLoadAstrometry.c34755-34841
      /branches/eam_branches/ipp-20121219/pswarp/src/pswarpLoadAstrometry.c34857-35096
      /branches/eam_branches/ipp-20130207/pswarp/src/pswarpLoadAstrometry.c35125-35236
      /branches/eam_branches/ipp-20130307/pswarp/src/pswarpLoadAstrometry.c35267-35414
      /branches/haf_add201112/pswarp/src/pswarpLoadAstrometry.c32980-33029
    r35563 r35622  
    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.