IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 6, 2013, 9:13:19 AM (13 years ago)
Author:
eugene
Message:

output sources are now correctly generated

File:
1 edited

Legend:

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

    r35514 r35515  
    4040
    4141    // select the input data sources
    42     pmFPAfile *input = psMetadataLookupPtr(NULL, config->files, "PSWARP.INPUT");
     42    pmFPAfile *input = psMetadataLookupPtr(&status, config->files, "PSWARP.INPUT");
    4343    if (!input) {
    4444        psError(PSWARP_ERR_CONFIG, true, "Can't find input data!\n");
     
    4747
    4848    // use the external astrometry source if supplied
    49     pmFPAfile *astrom = psMetadataLookupPtr(NULL, config->files, "PSWARP.ASTROM");
     49    pmFPAfile *astrom = psMetadataLookupPtr(&status, config->files, "PSWARP.ASTROM");
    5050    if (!astrom) {
    5151        astrom = input;
     
    5858
    5959    // select the input data sources
    60     pmFPAfile *output = psMetadataLookupPtr(NULL, config->files, "PSWARP.OUTPUT");
     60    pmFPAfile *output = psMetadataLookupPtr(&status, config->files, "PSWARP.OUTPUT");
    6161    if (!output) {
    6262        psError(PSWARP_ERR_CONFIG, true, "Can't find output data!\n");
     
    6565
    6666    // use the external astrometry source if supplied
    67     pmFPAfile *skycell = psMetadataLookupPtr(NULL, config->files, "PSWARP.SKYCELL");
     67    pmFPAfile *skycell = psMetadataLookupPtr(&status, config->files, "PSWARP.SKYCELL");
    6868    if (!skycell) {
    6969        psError(PSWARP_ERR_DATA, true, "Cannot find output astrometry.");
     
    132132                }
    133133
    134 /// XXX ignore sources for now
    135 # if (0)
    136134                // Copy the detections from the astrometry carrier to the input, so they can be accessed by
    137135                // pswarpTransformReadout
    138136                pmReadout *astromRO = pmFPAviewThisReadout(view, astrom->fpa); // Readout for astrometry
    139                 pmDetections *detections = psMetadataLookupPtr(&mdok, astromRO->analysis, "PSPHOT.DETECTIONS"); // Sources from astrometry
     137                pmDetections *detections = psMetadataLookupPtr(&status, astromRO->analysis, "PSPHOT.DETECTIONS"); // Sources from astrometry
    140138                if (detections) {
    141139                    psMetadataAddPtr(readout->analysis, PS_LIST_TAIL, "PSPHOT.DETECTIONS", PS_DATA_ARRAY, "Sources from input astrometry", detections);
    142140                }
    143 # endif
    144141
    145142                pswarpTransformToTarget(output->fpa, readout, config);
Note: See TracChangeset for help on using the changeset viewer.