- Timestamp:
- Jun 27, 2018, 3:31:55 PM (8 years ago)
- Location:
- branches/czw_branch/20170908
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
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/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.
