Changeset 40483 for branches/czw_branch/20170908/pswarp
- Timestamp:
- Jun 27, 2018, 3:31:55 PM (8 years ago)
- Location:
- branches/czw_branch/20170908
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
pswarp/src/pswarpLoop.c (modified) (2 diffs)
-
pswarp/src/pswarpLoopBackground.c (modified) (2 diffs)
-
pswarp/src/pswarpUpdateMetadata.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20170908
- Property svn:mergeinfo changed
-
branches/czw_branch/20170908/pswarp/src/pswarpLoop.c
r36835 r40483 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)&&(astromRO)) { 127 if ((astromRO->parent->parent->hdu->header)&&(output->fpa->analysis)) { 128 psMetadataItem *refItem = psMetadataLookup(astromRO->parent->parent->hdu->header, "PSREFCAT"); 129 if (refItem) { 130 refcat = psMetadataLookupStr(NULL, astromRO->parent->parent->hdu->header, "PSREFCAT"); 131 psMetadataAddStr(output->fpa->analysis, PS_LIST_TAIL, "REFERENCE_CATALOG", PS_META_REPLACE, 132 "Reference catalog used for calibration.", refcat); 133 } 134 } 135 } 136 123 137 } 124 138 -
branches/czw_branch/20170908/pswarp/src/pswarpLoopBackground.c
r35683 r40483 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)&&(astromRO)) { 140 if ((astromRO->parent->parent->hdu->header)&&(output->fpa->analysis)) { 141 psMetadataItem *refItem = psMetadataLookup(astromRO->parent->parent->hdu->header, "PSREFCAT"); 142 if (refItem) { 143 refcat = psMetadataLookupStr(NULL, astromRO->parent->parent->hdu->header, "PSREFCAT"); 144 psMetadataAddStr(output->fpa->analysis, PS_LIST_TAIL, "REFERENCE_CATALOG", PS_META_REPLACE, 145 "Reference catalog used for calibration.", refcat); 146 } 147 } 148 } 149 } 150 136 151 // re-normalize the BKGMODEL pixels by modified astrometry 137 152 for (int x = 0; x < readout->image->numCols; x++) { -
branches/czw_branch/20170908/pswarp/src/pswarpUpdateMetadata.c
r36835 r40483 20 20 bool bilevelAstrometry = psMetadataLookupBool (NULL, skycell->analysis, "ASTROMETRY.BILEVEL"); 21 21 22 psString refcat = NULL; 23 24 if ((output)&&(output->analysis)) { 25 psMetadataItem *refItem = psMetadataLookup(output->analysis, "REFERENCE_CATALOG"); 26 if (refItem) { 27 refcat = psMetadataLookupStr (NULL, output->analysis, "REFERENCE_CATALOG"); 28 } 29 } 22 30 pmChip *chip; 23 31 while ((chip = pmFPAviewNextChip (view, output, 1)) != NULL) { … … 165 173 } 166 174 175 if (refcat) { 176 if ((output)&&(output->hdu)&&(output->hdu->header)) { 177 psMetadataAddStr(output->hdu->header, PS_LIST_TAIL, "PSREFCAT", PS_META_REPLACE, 178 "Reference catalog used for calibration", refcat); 179 } 180 } 181 167 182 // apply the bilevel astrometry elements to the target 168 183 if (bilevelAstrometry) {
Note:
See TracChangeset
for help on using the changeset viewer.
