IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36737


Ignore:
Timestamp:
May 10, 2014, 2:41:31 PM (12 years ago)
Author:
eugene
Message:

correctly record failures in the chip headers (NASTRO = 0)

Location:
branches/eam_branches/ipp-20140423/psastro/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140423/psastro/src/psastro.h

    r35715 r36737  
    9090psArray          *psastroRemoveClumpsIterate (psArray *input, int scale, int nIter);
    9191bool              psastroRemoveClumpsRawstars (pmConfig *config);
     92
     93bool              psastroChipFailureHeader (psMetadata *updates);
    9294
    9395
  • branches/eam_branches/ipp-20140423/psastro/src/psastroOneChipFit.c

    r27639 r36737  
    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);
  • branches/eam_branches/ipp-20140423/psastro/src/psastroOneChipGrid.c

    r31161 r36737  
    5757        psFree (rawGridStars);
    5858        psFree (refGridStars);
     59        psastroChipFailureHeader (updates);
    5960        return false;
    6061    }
     
    6869        psFree (rawGridStars);
    6970        psFree (refGridStars);
     71        psastroChipFailureHeader (updates);
    7072        return false;
    7173    }
Note: See TracChangeset for help on using the changeset viewer.