Changeset 40349
- Timestamp:
- Feb 26, 2018, 4:04:36 PM (8 years ago)
- Location:
- tags/ipp-20170121
- Files:
-
- 4 edited
-
ppSub/src/ppSubDefineOutput.c (modified) (1 diff, 1 prop)
-
pswarp/src/pswarpLoop.c (modified) (2 diffs, 1 prop)
-
pswarp/src/pswarpLoopBackground.c (modified) (2 diffs, 1 prop)
-
pswarp/src/pswarpUpdateMetadata.c (modified) (2 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20170121/ppSub/src/ppSubDefineOutput.c
-
Property svn:mergeinfo
set to
/branches/czw_branch/20160809/ppSub/src/ppSubDefineOutput.c merged eligible /trunk/ppSub/src/ppSubDefineOutput.c merged eligible
r37966 r40349 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 } -
Property svn:mergeinfo
set to
-
tags/ipp-20170121/pswarp/src/pswarpLoop.c
-
Property svn:mergeinfo
set to
/branches/czw_branch/20160809/pswarp/src/pswarpLoop.c merged eligible /trunk/pswarp/src/pswarpLoop.c merged eligible
r36835 r40349 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 -
Property svn:mergeinfo
set to
-
tags/ipp-20170121/pswarp/src/pswarpLoopBackground.c
-
Property svn:mergeinfo
set to
/branches/czw_branch/20160809/pswarp/src/pswarpLoopBackground.c merged eligible /trunk/pswarp/src/pswarpLoopBackground.c merged eligible
r35683 r40349 62 62 pmFPAfileActivate(config->files, true, "PSWARP.BKGMODEL"); 63 63 64 psString refcat = NULL; 64 65 // loop over this section once per input group 65 66 for (int i = 0; i < nInputs; i++) { … … 134 135 } 135 136 137 if (astrom != input) { 138 pmReadout *astromRO = pmFPAviewThisReadout(view, astrom->fpa); // Readout for astrometry 139 if (!refcat) { 140 refcat = psMetadataLookupStr(NULL, astromRO->parent->parent->hdu->header, "PSREFCAT"); 141 142 psMetadataAddStr(output->fpa->analysis, PS_LIST_TAIL, "REFERENCE_CATALOG", PS_META_REPLACE, "Reference catalog used for calibration.", refcat); 143 } 144 } 145 136 146 // re-normalize the BKGMODEL pixels by modified astrometry 137 147 for (int x = 0; x < readout->image->numCols; x++) { -
Property svn:mergeinfo
set to
-
tags/ipp-20170121/pswarp/src/pswarpUpdateMetadata.c
-
Property svn:mergeinfo
set to
/branches/czw_branch/20160809/pswarp/src/pswarpUpdateMetadata.c merged eligible /trunk/pswarp/src/pswarpUpdateMetadata.c merged eligible
r36835 r40349 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) { -
Property svn:mergeinfo
set to
Note:
See TracChangeset
for help on using the changeset viewer.
