Changeset 10830 for trunk/psastro/src/psastroMosaicChipAstrom.c
- Timestamp:
- Dec 24, 2006, 3:56:53 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroMosaicChipAstrom.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroMosaicChipAstrom.c
r9574 r10830 1 1 # include "psastro.h" 2 # define NONLIN_TOL 0.001 /* tolerance in pixels */ 2 3 3 bool psastroMosaicChipAstrom (pmFPA *fpa, psMetadata *recipe ) {4 bool psastroMosaicChipAstrom (pmFPA *fpa, psMetadata *recipe, int iteration) { 4 5 5 6 pmChip *chip = NULL; … … 22 23 if (! readout->data_exists) { continue; } 23 24 24 // select the raw objects for this readout 25 psArray *rawstars = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.RAWSTARS"); 26 if (rawstars == NULL) { continue; } 25 // save WCS and analysis metadata in update header 26 psMetadata *updates = psMetadataAlloc(); 27 27 28 psArray *refstars = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.REFSTARS"); 29 if (refstars == NULL) { continue; } 28 psastroMosaicOneChip (chip, readout, recipe, updates, iteration); 30 29 31 psArray *match = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.MATCH"); 32 if (match == NULL) { continue; } 33 34 // need to pass in an update header, sent in from above 35 pmAstromMatchFit (chip->toFPA, rawstars, refstars, match, recipe, NULL); 30 pmAstromWriteBilevelChip (updates, chip, NONLIN_TOL); 31 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSASTRO.HEADER", PS_DATA_METADATA, "psastro header stats", updates); 32 psFree (updates); 36 33 } 37 34 } … … 39 36 return true; 40 37 } 38 39 /* the iteration value may be 1 or 2. 40 */
Note:
See TracChangeset
for help on using the changeset viewer.
