IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40552


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

initialize some values which make the optimizer complain

Location:
trunk/psastro/src
Files:
2 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 
  • trunk/psastro/src/psastroLoadGlints.c

    r40490 r40552  
    313313                      //                      star->FP->x,star->FP->y,star->Mag);
    314314                      star->TP->x,star->TP->y,star->Mag);
    315               psVector *C_terms;
    316               psVector *R_terms;
     315              psVector *C_terms = NULL;
     316              psVector *R_terms = NULL;
    317317              double scale_factor = 1.0;
    318318             
Note: See TracChangeset for help on using the changeset viewer.