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
second
are appended to values infirst
If not of type std::string then they are silently ignored
All other entries:
Values in
second
override 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 insecond
names 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