IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 14, 2007, 8:58:44 AM (19 years ago)
Author:
eugene
Message:

count total number of stars, skip astrometry if we have no stars

File:
1 edited

Legend:

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

    r12806 r13832  
    33bool psastroAnalysis (pmConfig *config) {
    44
     5    int nStars;
     6
    57    // interpret the available initial astrometric information
    68    // apply the initial guess
    7     if (!psastroAstromGuess (config)) {
     9    if (!psastroAstromGuess (&nStars, config)) {
    810        psError (PSASTRO_ERR_UNKNOWN, false, "failed to determine initial astrometry guess\n");
    911        return false;
     12    }
     13    if (nStars == 0) {
     14        psLogMsg ("psastro", 2, "skipping astrometry analysis : no stars\n");
     15        return true;
    1016    }
    1117
Note: See TracChangeset for help on using the changeset viewer.