IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 4, 2006, 7:02:16 AM (20 years ago)
Author:
eugene
Message:

substantial updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroMosaicAstrom.c

    r7154 r7332  
    2020    }
    2121
    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;
    2424
    2525    pmFPA *fpa = input->fpa;
    2626
    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
    2837    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);
    2944
    3045    grads = psastroMosaicGetGrads (fpa, recipe);
     
    3247    // fit the measured gradients with the telescope distortion model (3rd order polynomial)
    3348    pmAstromFitDistortion (fpa, grads, recipe);
     49    psastroMosaicRescaleChips (fpa);
    3450
    3551    // apply the new distortion terms up and down
     
    5066    // re-fit the chips with higher-order fits
    5167    psastroMosaicChipAstrom (fpa, recipe);
    52     // psastroMosaicHeaders (fpa);
     68    psastroMosaicHeaders (config);
    5369
    5470    return true;
Note: See TracChangeset for help on using the changeset viewer.