Changeset 10789
- Timestamp:
- Dec 16, 2006, 11:49:11 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroOneChip.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroOneChip.c
r9655 r10789 2 2 3 3 bool psastroOneChip (pmFPA *fpa, pmChip *chip, psArray *refstars, psArray *rawstars, psMetadata *recipe, psMetadata *updates) { 4 5 bool status; 4 6 5 7 // find initial offset / rotation … … 30 32 } 31 33 34 int nX = psMetadataLookupS32 (&status, recipe, "PSASTRO.CHIP.NX"); 35 if (!status) nX = 1; 36 37 int nY = psMetadataLookupS32 (&status, recipe, "PSASTRO.CHIP.NY"); 38 if (!status) nY = 1; 39 40 psPlaneTransform *toFPAout = psPlaneTransformAlloc (nX, nY); 41 32 42 // improved fit for astrometric terms 33 if (!pmAstromMatchFit ( chip->toFPA, rawstars, refstars, match, recipe, updates)) {43 if (!pmAstromMatchFit (toFPAout, rawstars, refstars, match, recipe, updates)) { 34 44 psError(PSASTRO_ERR_DATA, false, "failed to find a valid fitted match solution\n"); 35 45 return false; 36 46 } 47 psFree (chip->toFPA); 48 chip->toFPA = toFPAout; 37 49 38 50 // write results
Note:
See TracChangeset
for help on using the changeset viewer.
