Changeset 20269 for trunk/psastro/src/psastroMosaicChipAstrom.c
- Timestamp:
- Oct 19, 2008, 1:53:16 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroMosaicChipAstrom.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroMosaicChipAstrom.c
r17786 r20269 4 4 bool psastroMosaicChipAstrom (pmFPA *fpa, psMetadata *recipe, int iteration) { 5 5 6 bool status; 6 7 pmChip *chip = NULL; 7 8 pmCell *cell = NULL; … … 25 26 26 27 // save WCS and analysis metadata in update header 27 psMetadata *updates = psMetadataAlloc(); 28 // (pull or create local view to entry on readout->analysis) 29 psMetadata *updates = psMetadataLookupMetadata (&status, readout->analysis, "PSASTRO.HEADER"); 30 if (!updates) { 31 updates = psMetadataAlloc (); 32 psMetadataAddMetadata (readout->analysis, PS_LIST_TAIL, "PSASTRO.HEADER", PS_META_REPLACE, "psastro header stats", updates); 33 psFree (updates); 34 } 28 35 29 36 if (!psastroMosaicOneChip (chip, readout, recipe, updates, iteration)) { … … 31 38 psError(PS_ERR_UNKNOWN, false, "failed to find a solution for %d,%d,%d\n", 32 39 view->chip, view->cell, view->readout); 33 psFree(updates);34 40 psFree(view); 35 41 return false; … … 38 44 // create the header keywords to descripe the results 39 45 pmAstromWriteBilevelChip (updates, chip, NONLIN_TOL); 40 psMetadataAddMetadata (readout->analysis, PS_LIST_TAIL, "PSASTRO.HEADER", PS_META_REPLACE, "psastro header stats", updates);41 psFree (updates);42 46 } 43 47 }
Note:
See TracChangeset
for help on using the changeset viewer.
