IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34966


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.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippconfig/gpc1/psastro.config

    r34957 r34966  
    382382   PSASTRO.USE.MODEL           BOOL FALSE
    383383   PSASTRO.MOSAIC.MODE         BOOL FALSE
     384   DVO.GETSTAR.FIXED.ZEROPT    F32   25.0
    384385
    385386   PSASTRO.CATDIR                       STR     PS1.REF.20120524
     
    400401    PSASTRO.USE.MODEL           BOOL FALSE
    401402    PSASTRO.MOSAIC.MODE         BOOL FALSE
     403    DVO.GETSTAR.FIXED.ZEROPT    F32   25.0
    402404
    403405    PSASTRO.CATDIR                       STR     PS1.REF.20120524
     
    425427   PSASTRO.USE.MODEL           BOOL FALSE
    426428   PSASTRO.MOSAIC.MODE         BOOL FALSE
     429   DVO.GETSTAR.FIXED.ZEROPT    F32   25.0
    427430
    428431   PSASTRO.CATDIR                       STR     PS1.REF.20120524
     
    449452   PSASTRO.USE.MODEL           BOOL FALSE
    450453   PSASTRO.MOSAIC.MODE         BOOL FALSE
     454   DVO.GETSTAR.FIXED.ZEROPT    F32   25.0
    451455
    452456   PSASTRO.CATDIR                       STR     PS1.REF.20120524
  • trunk/ippconfig/recipes/psastro.config

    r34957 r34966  
    190190DVO.GETSTAR.MIN.MAG.INST      F32     -15.0
    191191
     192# if non-zero use as the zero point for computing magnitude limits for getstar
     193# by default use the ZEROPT in the PHOTCODE.DATA
     194DVO.GETSTAR.FIXED.ZEROPT      F32       0.0     
     195
    192196ZERO.POINT.BY.EXPOSURE          BOOL     TRUE
    193197ZERO.POINT.USE.MEAN             BOOL     TRUE
  • 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.