Changeset 7332 for trunk/psastro/src/psastroMosaicAstrom.c
- Timestamp:
- Jun 4, 2006, 7:02:16 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroMosaicAstrom.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroMosaicAstrom.c
r7154 r7332 20 20 } 21 21 22 double plateScale = psMetadataLookupF32 (&status, recipe, "PSASTRO.PLATE.SCALE");23 if (!status) plateScale = 1.0;22 int order = psMetadataLookupF32 (&status, recipe, "PSASTRO.DISTORTION.ORDER"); 23 if (!status) order = 3.0; 24 24 25 25 pmFPA *fpa = input->fpa; 26 26 27 psastroMosaicGetRefstars (fpa, refs, recipe); 27 // XXX test point 28 if (0) { 29 pmChip *chip = fpa->chips->data[10]; 30 pmCell *cell = chip->cells->data[0]; 31 pmReadout *readout = cell->readouts->data[0]; 32 psArray *refstars = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.REFSTARS"); 33 pmAstromObj *ref = refstars->data[0]; 34 fprintf (stderr, "test 1: %f %f %f %f %f %f\n", ref->chip->x, ref->chip->y, ref->FP->x, ref->FP->y, ref->sky->r, ref->sky->d); 35 } 36 28 37 psastroMosaicSetMatch (fpa, recipe); 38 39 // XXX no input distortion model yet; existing fpa distortion is identity: replace it 40 psFree (fpa->toTangentPlane); 41 psFree (fpa->fromTangentPlane); 42 fpa->toTangentPlane = psPlaneDistortIdentity (order); 43 fpa->fromTangentPlane = psPlaneDistortIdentity (order); 29 44 30 45 grads = psastroMosaicGetGrads (fpa, recipe); … … 32 47 // fit the measured gradients with the telescope distortion model (3rd order polynomial) 33 48 pmAstromFitDistortion (fpa, grads, recipe); 49 psastroMosaicRescaleChips (fpa); 34 50 35 51 // apply the new distortion terms up and down … … 50 66 // re-fit the chips with higher-order fits 51 67 psastroMosaicChipAstrom (fpa, recipe); 52 // psastroMosaicHeaders (fpa);68 psastroMosaicHeaders (config); 53 69 54 70 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
