IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 18, 2021, 4:08:42 PM (5 years ago)
Author:
eugene
Message:

set bad data quality if too many chips fail in mosaic, but do not fail to write out the smf file

File:
1 edited

Legend:

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

    r41498 r41499  
    1414# define NONLIN_TOL 0.001 ///< tolerance in pixels
    1515
    16 bool psastroMosaicChipAstrom (pmFPA *fpa, psMetadata *recipe, int iteration) {
     16bool psastroMosaicChipAstrom (pmFPA *fpa, psMetadata *stats, psMetadata *recipe, int iteration) {
    1717
    1818    bool status;
     
    8383    if (fGood < minGoodChipFraction) {
    8484      psWarning ("Too few good chips (%d of %d = %.2f), setting bad quality for this exposure\n", nChipGood, (nChipGood + nChipFail), fGood);
    85       // return false;
     85      // NOTE: set bad data quality here
     86      if (stats && psMetadataLookupS32(NULL, stats, "QUALITY") == 0) {
     87          psMetadataAddS32(stats, PS_LIST_TAIL, "QUALITY", PS_META_REPLACE, "Mosaic astrometry failed", PSASTRO_ERR_DATA);
     88      }
    8689    }
    8790
Note: See TracChangeset for help on using the changeset viewer.