- Timestamp:
- May 6, 2013, 9:13:19 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130419/pswarp/src/pswarpLoop.c
r35514 r35515 40 40 41 41 // select the input data sources 42 pmFPAfile *input = psMetadataLookupPtr( NULL, config->files, "PSWARP.INPUT");42 pmFPAfile *input = psMetadataLookupPtr(&status, config->files, "PSWARP.INPUT"); 43 43 if (!input) { 44 44 psError(PSWARP_ERR_CONFIG, true, "Can't find input data!\n"); … … 47 47 48 48 // 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"); 50 50 if (!astrom) { 51 51 astrom = input; … … 58 58 59 59 // select the input data sources 60 pmFPAfile *output = psMetadataLookupPtr( NULL, config->files, "PSWARP.OUTPUT");60 pmFPAfile *output = psMetadataLookupPtr(&status, config->files, "PSWARP.OUTPUT"); 61 61 if (!output) { 62 62 psError(PSWARP_ERR_CONFIG, true, "Can't find output data!\n"); … … 65 65 66 66 // 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"); 68 68 if (!skycell) { 69 69 psError(PSWARP_ERR_DATA, true, "Cannot find output astrometry."); … … 132 132 } 133 133 134 /// XXX ignore sources for now135 # if (0)136 134 // Copy the detections from the astrometry carrier to the input, so they can be accessed by 137 135 // pswarpTransformReadout 138 136 pmReadout *astromRO = pmFPAviewThisReadout(view, astrom->fpa); // Readout for astrometry 139 pmDetections *detections = psMetadataLookupPtr(& mdok, astromRO->analysis, "PSPHOT.DETECTIONS"); // Sources from astrometry137 pmDetections *detections = psMetadataLookupPtr(&status, astromRO->analysis, "PSPHOT.DETECTIONS"); // Sources from astrometry 140 138 if (detections) { 141 139 psMetadataAddPtr(readout->analysis, PS_LIST_TAIL, "PSPHOT.DETECTIONS", PS_DATA_ARRAY, "Sources from input astrometry", detections); 142 140 } 143 # endif144 141 145 142 pswarpTransformToTarget(output->fpa, readout, config);
Note:
See TracChangeset
for help on using the changeset viewer.
