IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 27, 2020, 2:21:31 PM (6 years ago)
Author:
tdeboer
Message:

gpc1 dynamic masks set up

File:
1 edited

Legend:

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

    r37552 r41367  
    5555
    5656    // really error-out here?  or just skip?
    57     if (!psastroZeroPointFromRecipe (&zeropt, &exptime, NULL, fpa, recipe)) {
     57    if (!psastroZeroPointFromRecipe (&zeropt, &exptime, NULL, NULL, fpa, recipe)) {
    5858        psLogMsg ("psastro", PS_LOG_INFO, "failed to load zeropt data from recipe");
    5959        return false;
     
    480480  return false; }
    481481
    482 bool psastroZeroPointFromRecipe (float *zeropt, float *exptime, float *ghostMaxMag, pmFPA *fpa, psMetadata *recipe) {
     482bool psastroZeroPointFromRecipe (float *zeropt, float *exptime, float *ghostMaxMag, double *glintMaxMag, pmFPA *fpa, psMetadata *recipe) {
    483483
    484484    bool status;
     
    527527            //MEH null is a pain.. so only log if set
    528528            psLogMsg ("psastro", PS_LOG_INFO, "found GHOST_MAX_MAG %f",*ghostMaxMag);
     529        }
     530        if (glintMaxMag) {
     531            float MaxMag = psMetadataLookupF32 (&status, refItem->data.md, "GLINT_MAX_MAG");
     532            if (status) {
     533                *glintMaxMag = MaxMag ;
     534                //MEH null is a pain.. so only log if set
     535                psLogMsg ("psastro", PS_LOG_INFO, "found GLINT_MAX_MAG %f",*glintMaxMag);
     536            }
    529537        }
    530538        //MEH what zpt is set to
Note: See TracChangeset for help on using the changeset viewer.