IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 16, 2006, 11:49:11 PM (20 years ago)
Author:
eugene
Message:

moving recipe info out of module function (incomplete)

File:
1 edited

Legend:

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

    r9655 r10789  
    22
    33bool psastroOneChip (pmFPA *fpa, pmChip *chip, psArray *refstars, psArray *rawstars, psMetadata *recipe, psMetadata *updates) {
     4
     5    bool status;
    46
    57    // find initial offset / rotation
     
    3032    }
    3133
     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
    3242    // improved fit for astrometric terms
    33     if (!pmAstromMatchFit (chip->toFPA, rawstars, refstars, match, recipe, updates)) {
     43    if (!pmAstromMatchFit (toFPAout, rawstars, refstars, match, recipe, updates)) {
    3444        psError(PSASTRO_ERR_DATA, false, "failed to find a valid fitted match solution\n");
    3545        return false;
    3646    }
     47    psFree (chip->toFPA);
     48    chip->toFPA = toFPAout;
    3749
    3850    // write results
Note: See TracChangeset for help on using the changeset viewer.