IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 20, 2018, 9:10:12 PM (8 years ago)
Author:
eugene
Message:

initialize some values which make the optimizer complain

File:
1 edited

Legend:

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

    r40490 r40552  
    278278  float zeropt, exptime, MAX_MAG;
    279279  psMetadata *ghostModel = NULL;
    280   psVector *C_terms;
    281   psVector *R_terms;
    282   float glintPixelScale;
     280  psVector *C_terms = NULL;
     281  psVector *R_terms = NULL;
     282  float glintPixelScale = 0.0;
    283283 
    284284  psLogMsg ("psastro", PS_LOG_INFO, "determine ghost positions");
     
    341341    R_terms = psMetadataLookupPtr(&status, refItem->data.md, "R_TERMS");
    342342    glintPixelScale = psMetadataLookupF32(&status, refItem->data.md, "SCALE");
     343  }
     344
     345  // really error-out here?  or just skip?
     346  if (!R_terms) {
     347    psLogMsg ("psastro", PS_LOG_INFO, "failed to find HSC ghost model for filter %s", filter);
     348    goto escape;
    343349  }
    344350 
Note: See TracChangeset for help on using the changeset viewer.