IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 3, 2013, 1:43:50 PM (13 years ago)
Author:
eugene
Message:

merge changes from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130509/psastro/src/psastroAnalysis.c

    r28043 r35747  
    8686    }
    8787
    88     if (!psastroChooseRefstars (config, refs, "PSASTRO.INPUT")) {
     88    bool skipastro = psMetadataLookupBool (&status, config->arguments, "PSASTRO.SKIP.ASTRO");
     89
     90    if (!psastroChooseRefstars (config, refs, "PSASTRO.INPUT", skipastro)) {
    8991        psError (PSASTRO_ERR_UNKNOWN, false, "failed to select reference data for chips\n");
    9092        psFree(refs);
     
    108110        mosastro  = psMetadataLookupBool (&status, recipe, "PSASTRO.MOSAIC.MODE");
    109111    }
    110     if (!chipastro && !mosastro) {
     112
     113    if (skipastro) {
     114        chipastro = false;
     115        mosastro = false;
     116        psLogMsg ("psastro", 3, "skip astrometry mode, accepting input astrometry\n");
     117    } else if (!chipastro && !mosastro) {
    111118        psLogMsg ("psastro", 3, "no astrometry mode selected, assuming chip astrometry\n");
    112119        chipastro = true;
     
    144151    }
    145152
    146     if (!psastroZeroPoint (config)) {
    147         psError(psErrorCodeLast(), false, "Failed to calculate zero point.");
    148         return false;
    149     }
     153    if (!skipastro) {
     154        if (!psastroZeroPoint (config)) {
     155            psError(psErrorCodeLast(), false, "Failed to calculate zero point.");
     156            return false;
     157        }
    150158
    151     if (!psastroAstromGuessCheck (config)) {
    152         psError(psErrorCodeLast(), false, "Failed to check astrometry guess.");
    153         return false;
     159        if (!psastroAstromGuessCheck (config)) {
     160            psError(psErrorCodeLast(), false, "Failed to check astrometry guess.");
     161            return false;
     162        }
    154163    }
    155164
Note: See TracChangeset for help on using the changeset viewer.