IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34966 for trunk/psastro


Ignore:
Timestamp:
Jan 18, 2013, 10:08:52 AM (14 years ago)
Author:
bills
Message:

Add new recipe value DVO.GETSTAR.FIXED.ZEROPT. If non-zero use it for the
zero point used to compute the magnitude limits for getstar instead of the
values in PHOTCODE.DATA.
Set it to 0.0 by default and 25.0 for the gpc1 skycal recipes.

File:
1 edited

Legend:

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

    r33643 r34966  
    363363    if (!status) ESCAPE ("missing DVO.GETSTAR.MIN.MAG.INST");
    364364
     365    // if non zero override the zero point for the photcode (for stacks)
     366    float fixedzeropt = psMetadataLookupF32(&status, recipe, "DVO.GETSTAR.FIXED.ZEROPT");
     367
    365368    // PHOTCODE.DATA is a multi of metadata items
    366369    psListIterator *iter = psListIteratorAlloc(item->data.list, PS_LIST_HEAD, false);
     
    391394            continue;
    392395        }
     396        if (fixedzeropt != 0.0) {
     397            // override the recipe's zero point with the fixed value (for stacks)
     398            zeropt = fixedzeropt;
     399        }
    393400
    394401        // convert the minInst to a calibrated minimum magnitude
Note: See TracChangeset for help on using the changeset viewer.