IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 8, 2014, 9:27:56 AM (12 years ago)
Author:
eugene
Message:

merge changes from eam_branches/ipp-20140423: add Koppehoefer correction; make sure psastro failures are noted clearl in the output header; do not load the model if we choose skipastro

File:
1 edited

Legend:

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

    r27639 r36837  
    6262        if (match == NULL) {
    6363            psLogMsg ("psastro", 3, "failed to find radius-matched sources\n");
     64            psastroChipFailureHeader (updates);
    6465            return false;
    6566        }
     
    6970            if (!unique) {
    7071                psLogMsg ("psastro", 3, "failed to generate a uniq set of matched sources\n");
     72                psastroChipFailureHeader (updates);
    7173                return false;
    7274            }
     
    99101            psLogMsg ("psastro", 3, "insufficient stars or invalid order: %ld stars", match->n);
    100102            psFree (match);
     103            psastroChipFailureHeader (updates);
    101104            return false;
    102105        }
     
    126129            psFree (match);
    127130            psFree (fitStats);
     131            psastroChipFailureHeader (updates);
    128132            return false;
    129133        }
     
    185189        psMetadataAddS32 (updates, PS_LIST_TAIL, "NASTRO",   PS_META_REPLACE, "number of astrometry stars", astNstar);
    186190    } else {
    187         psMetadataAddF32 (updates, PS_LIST_TAIL, "CPRECISE", PS_META_REPLACE, "astrometry precision (arcsec)", 0.0);
    188         psMetadataAddS32 (updates, PS_LIST_TAIL, "NASTRO",   PS_META_REPLACE, "number of astrometry stars", 0);
     191        psastroChipFailureHeader (updates);
    189192    }
    190193    psMetadataAddF32 (updates, PS_LIST_TAIL, "EQUINOX",  PS_META_REPLACE, "equinox of ref catalog", 2000.0); // XXX this is bogus: should be defined based on equinox of refstars
     
    222225}
    223226
     227bool psastroChipFailureHeader (psMetadata *updates) {
     228    psMetadataAddF32 (updates, PS_LIST_TAIL, "CPRECISE", PS_META_REPLACE, "astrometry precision (arcsec)", 0.0);
     229    psMetadataAddS32 (updates, PS_LIST_TAIL, "NASTRO",   PS_META_REPLACE, "number of astrometry stars", 0);
     230    return true;
     231}
     232
     233
     234
    224235// psastroWriteStars ("raw.1.dat", rawstars);
    225236// psastroWriteStars ("ref.1.dat", refstars);
Note: See TracChangeset for help on using the changeset viewer.