- Timestamp:
- Apr 27, 2022, 10:14:37 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20220316/fpcamera/src/fpcameraDataSave.c
r42175 r42178 6 6 bool fpcameraDataSave (pmConfig *config, psMetadata *stats) { 7 7 8 bool status; 8 9 pmChip *chip; 9 10 pmCell *cell; 10 11 pmReadout *readout; 11 12 12 pmFPAview *view = NULL; 13 13 14 14 // select the current recipe 15 psMetadata *recipe = psMetadataLookupPtr ( NULL, config->recipes, FPCAMERA_RECIPE);16 if (!recipe) ESCAPE (FPCAMERA_ERR_CONFIG, "Can't find FPCAMERA recipe!");15 psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, FPCAMERA_RECIPE); 16 if (!recipe) ESCAPE (FPCAMERA_ERR_CONFIG, "Can't find FPCAMERA recipe"); 17 17 18 18 // select the output data sources … … 49 49 if (hdu && hdu != lastHDU) { 50 50 fpcameraVersionHeaderFull(hdu->header); 51 // Append t ehreference catalog to the header as well.51 // Append the reference catalog to the header as well. 52 52 char *catdir = psMetadataLookupStr(NULL,recipe,"FPCAMERA.CATDIR"); 53 54 psMetadata *recipe = psMetadataLookupPtr(NULL, config->recipes, FPCAMERA_RECIPE);55 53 psMetadataAddStr(hdu->header,PS_LIST_TAIL, "PSREFCAT", PS_META_REPLACE, NULL, catdir); 56 57 54 lastHDU = hdu; 58 55 } … … 68 65 // XXX fix : if (!fpcameraMetadataStats (config, stats)) ESCAPE(FPCAMERA_ERR_UNKNOWN, "failure to save state in Metadata"); 69 66 70 bool status;71 67 psString dump_file = psMetadataLookupStr(&status, config->arguments, "DUMP_CONFIG"); 72 68 if (dump_file) {
Note:
See TracChangeset
for help on using the changeset viewer.
