- Timestamp:
- Dec 16, 2008, 4:37:03 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap_branch_20081216/psModules/src/camera/pmHDU.c
r19385 r21022 243 243 return hduWrite(hdu, hdu->weights, hdu->masks, maskVal, fits); 244 244 } 245 246 247 bool pmHDUWriteIdentifiers(pmHDU *hdu, psU64 imageId, psU64 sourceId) 248 { 249 PS_ASSERT_PTR_NON_NULL(hdu, false); 250 251 // XXX Get header keyword name from camera configuration 252 253 psMetadataAddU64(hdu->header, PS_LIST_TAIL, "IMAGEID", PS_META_REPLACE, "Image identifier", imageId); 254 psMetadataAddU64(hdu->header, PS_LIST_TAIL, "SOURCEID", PS_META_REPLACE, "Source identifier", sourceId); 255 return true; 256 } 257 258 bool pmHDUReadIdentifiers(psU64 *imageId, psU64 *sourceId, const pmHDU *hdu) 259 { 260 PS_ASSERT_PTR_NON_NULL(hdu, false); 261 262 // XXX Get header keyword name from camera configuration 263 264 bool imageOK, sourceOK; // Status of MD lookups 265 *imageId = psMetadataLookupU64(&imageOK, hdu->header, "IMAGEID"); 266 *sourceId = psMetadataLookupU64(&sourceOK, hdu->header, "SOURCEID"); 267 268 return imageOK && sourceOK; 269 }
Note:
See TracChangeset
for help on using the changeset viewer.
