IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 6, 2007, 5:27:02 PM (19 years ago)
Author:
Paul Price
Message:

Warp the source list as well as the pixels.

File:
1 edited

Legend:

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

    r14219 r14768  
    6666        pmFPAfileActivate(config->files, false, "PSWARP.OUTPUT.MASK");
    6767        pmFPAfileActivate(config->files, false, "PSWARP.OUTPUT.WEIGHT");
     68        pmFPAfileActivate(config->files, false, "PSWARP.OUTPUT.SOURCES");
    6869        pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);
    6970        pmChip *chip;
     
    8990        pmFPAfileActivate(config->files, true, "PSWARP.OUTPUT.MASK");
    9091        pmFPAfileActivate(config->files, true, "PSWARP.OUTPUT.WEIGHT");
     92        pmFPAfileActivate(config->files, true, "PSWARP.OUTPUT.SOURCES");
    9193    }
    9294
     
    156158                if (!readout->data_exists) {
    157159                    continue;
     160                }
     161
     162                // Copy the sources from the astrometry carrier to the input, so they can be accessed by
     163                // pswarpTransformReadout
     164                pmReadout *astromRO = pmFPAviewThisReadout(view, astrom->fpa); // Readout for astrometry
     165                psArray *sources = psMetadataLookupPtr(&mdok, astromRO->analysis,
     166                                                       "PSPHOT.SOURCES"); // Sources from astrometry
     167                if (sources) {
     168                    psMetadataAddPtr(readout->analysis, PS_LIST_TAIL, "PSPHOT.SOURCES", PS_DATA_ARRAY,
     169                                     "Sources from input astrometry", sources);
    158170                }
    159171
Note: See TracChangeset for help on using the changeset viewer.