IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 6, 2013, 10:54:45 AM (13 years ago)
Author:
eugene
Message:

do not try to copy detections from astrom to input if astrom IS input

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130419/pswarp/src/pswarpLoop.c

    r35521 r35522  
    123123                // Copy the detections from the astrometry carrier to the input, so they can be accessed by
    124124                // pswarpTransformReadout
    125                 pmReadout *astromRO = pmFPAviewThisReadout(view, astrom->fpa); // Readout for astrometry
    126                 pmDetections *detections = psMetadataLookupPtr(&status, astromRO->analysis, "PSPHOT.DETECTIONS"); // Sources from astrometry
    127                 if (detections) {
    128                     psMetadataAddPtr(readout->analysis, PS_LIST_TAIL, "PSPHOT.DETECTIONS", PS_DATA_ARRAY, "Sources from input astrometry", detections);
    129                 }
     125                if (astrom != input) {
     126                  pmReadout *astromRO = pmFPAviewThisReadout(view, astrom->fpa); // Readout for astrometry
     127                  pmDetections *detections = psMetadataLookupPtr(&status, astromRO->analysis, "PSPHOT.DETECTIONS"); // Sources from astrometry
     128                  if (detections) {
     129                      psMetadataAddPtr(readout->analysis, PS_LIST_TAIL, "PSPHOT.DETECTIONS", PS_DATA_ARRAY, "Sources from input astrometry", detections);
     130                  }
     131                }
    130132
    131133                pswarpTransformToTarget(output->fpa, readout, config);
Note: See TracChangeset for help on using the changeset viewer.