Function lsst::afw::fits::combineMetadata¶
Function Documentation¶
Combine two sets of metadata in a FITS-appropriate fashion
“COMMENT” and “HISTORY” entries:
If of type std::string then the values in
secondare appended to values infirstIf not of type std::string then they are silently ignored
All other entries:
Values in
secondoverride values infirst(regardless of type)Only scalars are copied; if a vector is found, only the last value is copied
- Return
 The combined metadata. Item names have the following order:
names in
first, omitting all names except “COMMENT” and “HISTORY” that appear insecondnames in
second, omitting “COMMENT” and “HISTORY” if valid versions appear infirst
- Parameters
 [in] first: The first set of metadata to combine[in] second: The second set of metadata to combine