IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24240


Ignore:
Timestamp:
May 26, 2009, 11:01:13 AM (17 years ago)
Author:
Paul Price
Message:

Inverse FPA didn't hold the astrometry, so the sources couldn't get RA, Dec in the output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubReadoutInverse.c

    r24155 r24240  
    2929    pmConceptsCopyFPA(invFPA, outFPA, true, true);
    3030
    31 #if 0
    32     // Copy astrometry over
    33     pmHDU *outHDU = outFPA->hdu;          // Output HDU
    3431    pmChip *invChip = invRO->parent->parent; // Inverse chip
    35     psFree(view);
    36     if (!outHDU || !inHDU) {
    37         psError(PS_ERR_UNKNOWN, false, "Unable to find HDU at FPA level to copy astrometry.");
    38         return false;
    39     }
    40     if (!pmAstromReadWCS(invFPA, invChip, outHDU->header, 1.0)) {
    41         psError(PS_ERR_UNKNOWN, false, "Unable to read WCS astrometry from PPSUB.OUTPUT.");
    42         return false;
    43     }
    44 #endif
    4532    pmHDU *invHDU = invFPA->hdu;          // Inverse HDU
    4633    if (!pmAstromWriteWCS(invHDU->header, outFPA, outChip, WCS_TOLERANCE)) {
     
    4835        return false;
    4936    }
     37    // Read from newly written astrometry so that it exists in the "inverse" FPA (for sources)
     38    if (!pmAstromReadWCS(invFPA, invChip, invHDU->header, 1.0)) {
     39        psError(PS_ERR_UNKNOWN, false, "Unable to read WCS astrometry.");
     40        return false;
     41    }
    5042
    5143    return true;
Note: See TracChangeset for help on using the changeset viewer.