IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15246


Ignore:
Timestamp:
Oct 8, 2007, 8:53:46 AM (19 years ago)
Author:
eugene
Message:

added an iteration to distortion analysis

File:
1 edited

Legend:

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

    r12806 r15246  
    8080    if (psTraceGetLevel("psastro.dump") > 0) { psastroDumpMatches (fpa, "match.5.dat"); }
    8181
     82    // do a third pass on the distortion with improved chip positions and rotations
     83    // first, re-perform the match with a slightly tighter circle
     84    if (!psastroMosaicSetMatch (fpa, recipe, 2)) {
     85        psError(PSASTRO_ERR_UNKNOWN, false, "failed to match raw and ref stars for mosaic (3rd pass)");
     86        return false;
     87    }
     88    if (!psastroMosaicCommonScale (fpa, recipe)) {
     89        psError(PSASTRO_ERR_UNKNOWN, false, "failed to set a common scale for the chips (3rd pass)");
     90        return false;
     91    }
     92    if (!psastroMosaicGradients (fpa, recipe)) {
     93        psError(PSASTRO_ERR_UNKNOWN, false, "failed to measure mosaic gradients (3rd pass)");
     94        return false;
     95    }
     96    if (psTraceGetLevel("psastro.dump") > 0) { psastroDumpMatches (fpa, "match.6.dat"); }
     97
     98    if (!psastroMosaicChipAstrom (fpa, recipe, 0)) {
     99        psError(PSASTRO_ERR_UNKNOWN, false, "failed to measure chip astrometry in mosaic mode (3rd pass)");
     100        return false;
     101    }
     102    if (psTraceGetLevel("psastro.dump") > 0) { psastroDumpMatches (fpa, "match.7.dat"); }
     103
    82104    // now fit the chips under the common distortion with higher-order terms
    83105    // first, re-perform the match with a slightly tighter circle
     
    90112        return false;
    91113    }
    92     if (psTraceGetLevel("psastro.dump") > 0) { psastroDumpMatches (fpa, "match.6.dat"); }
     114    if (psTraceGetLevel("psastro.dump") > 0) { psastroDumpMatches (fpa, "match.8.dat"); }
    93115
    94116    // save WCS and analysis metadata in update header.
Note: See TracChangeset for help on using the changeset viewer.