Changeset 40344
- Timestamp:
- Feb 8, 2018, 2:53:29 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
ppSub/src/ppSubDefineOutput.c (modified) (1 diff)
-
pswarp/src/pswarpLoop.c (modified) (2 diffs)
-
pswarp/src/pswarpUpdateMetadata.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubDefineOutput.c
r37966 r40344 198 198 psMetadataAddStr(tgtHeader, PS_LIST_TAIL, keyword, PS_META_REPLACE, "input image", string); 199 199 } 200 201 // Copy PSREFCAT from the source to the target as well 202 snprintf(keyword, 80, "PSREFCAT"); 203 char *string = psMetadataLookupStr(&status, srcHeader, keyword); 204 if (status) { 205 psMetadataAddStr(tgtHeader, PS_LIST_TAIL, keyword, PS_META_REPLACE, "input image reference catalog", string); 206 } 207 200 208 return true; 201 209 } -
trunk/pswarp/src/pswarpLoop.c
r36835 r40344 58 58 } 59 59 60 psString refcat = NULL; 60 61 // loop over this section once per input group 61 62 for (int i = 0; i < nInputs; i++) { … … 121 122 psMetadataAddPtr(readout->analysis, PS_LIST_TAIL, "PSPHOT.DETECTIONS", PS_DATA_ARRAY, "Sources from input astrometry", detections); 122 123 } 124 125 // Determine the reference catalog used 126 if (!refcat) { 127 refcat = psMetadataLookupStr(NULL, astromRO->parent->parent->hdu->header, "PSREFCAT"); 128 psMetadataAddStr(output->fpa->analysis, PS_LIST_TAIL, "REFERENCE_CATALOG", PS_META_REPLACE, "Reference catalog used for calibration.", refcat); 129 } 130 131 123 132 } 124 133 -
trunk/pswarp/src/pswarpUpdateMetadata.c
r36835 r40344 20 20 bool bilevelAstrometry = psMetadataLookupBool (NULL, skycell->analysis, "ASTROMETRY.BILEVEL"); 21 21 22 psString refcat = psMetadataLookupStr (NULL, output->analysis, "REFERENCE_CATALOG"); 22 23 pmChip *chip; 23 24 while ((chip = pmFPAviewNextChip (view, output, 1)) != NULL) { … … 165 166 } 166 167 168 if (refcat) { 169 psMetadataAddStr(output->hdu->header, PS_LIST_TAIL, "PSREFCAT", PS_META_REPLACE, "Reference catalog used for calibration", refcat); 170 } 171 167 172 // apply the bilevel astrometry elements to the target 168 173 if (bilevelAstrometry) {
Note:
See TracChangeset
for help on using the changeset viewer.
