IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29905


Ignore:
Timestamp:
Dec 3, 2010, 2:29:33 AM (15 years ago)
Author:
eugene
Message:

modify psphotReadout and equivalent to accept a filerule argument (allow filerules other than PSPHOT.INPUT)

Location:
branches/eam_branches/ipp-20101103
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101103/ppImage/src/ppImagePhotom.c

    r28375 r29905  
    1111    pmCell *cell;
    1212    pmReadout *readout;
    13     printf("%x %s\n",psErrorCodeLast(),psErrorCodeString(psErrorCodeLast()));
     13
    1414    psphotInit();
    15     printf("%x %s\n",psErrorCodeLast(),psErrorCodeString(psErrorCodeLast()));
     15
    1616    // find or define a pmFPAfile PSPHOT.INPUT
    1717    pmFPAfile *input = psMetadataLookupPtr (&status, config->files, "PSPHOT.INPUT");
     
    2020        return false;
    2121    }
    22     printf("%x %s\n",psErrorCodeLast(),psErrorCodeString(psErrorCodeLast()));
     22
    2323    // we make a new copy of the output chip to keep psphot from modifying the output image
    2424    pmChip *oldChip = pmFPAviewThisChip (view, input->src);
    2525    pmChip *newChip = pmFPAviewThisChip (view, input->fpa);
    2626    pmChipCopy (newChip, oldChip);
    27     printf("%x %s\n",psErrorCodeLast(),psErrorCodeString(psErrorCodeLast()));
     27
    2828    // iterate over the cells and readout for this chip
    2929    while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) {
     
    3434        while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) {
    3535            if (! readout->data_exists) { continue; }
    36             printf("%x %s\n",psErrorCodeLast(),psErrorCodeString(psErrorCodeLast()));
     36
    3737            // run the actual photometry analysis
    38             if (!psphotReadout (config, view)) {
     38            if (!psphotReadout (config, view, "PSPHOT.INPUT")) {
    3939                // This is likely a data quality issue
    4040                // XXX Split into multiple cases using error codes?
     
    6060    ppImageMemoryDump("photom");
    6161
    62     // the PSPHOT.INPUT file is a temporary file used to carry PPIMAGE.CHIP to psphotReadout
    63     // XXX not sure that this is needed...
    64 //    pmFPAfileActivate (config->files, false, "PSPHOT.INPUT");
    65 
    6662    return true;
    6763}
    68 
    69 // XXX do we need to deactivate all files and activate the psphot ones explicitly?
  • branches/eam_branches/ipp-20101103/ppStack/src/ppStackPhotometry.c

    r27343 r29905  
    5454    psImageMaskType maskValue = pmConfigMaskGet("BLANK", config); // Bits to mask
    5555    psImageMaskType markValue = pmConfigMaskGet("MARK.VALUE", config); // Bits to use for marking
    56     psMetadataAddImageMask(psphot, PS_LIST_TAIL, "MASK.PSPHOT", PS_META_REPLACE,
    57                             "Bits to mask", maskValue);
    58     psMetadataAddImageMask(psphot, PS_LIST_TAIL, "MARK.PSPHOT", PS_META_REPLACE,
    59                            "Bits to use for mark", markValue);
     56    psMetadataAddImageMask(psphot, PS_LIST_TAIL, "MASK.PSPHOT", PS_META_REPLACE, "Bits to mask", maskValue);
     57    psMetadataAddImageMask(psphot, PS_LIST_TAIL, "MARK.PSPHOT", PS_META_REPLACE, "Bits to use for mark", markValue);
    6058
    6159    psArray *inSources = options->sources;
     
    6765
    6866    pmModelClassSetLimits(PM_MODEL_LIMITS_LAX);
    69     if (!psphotReadoutKnownSources(config, photView, inSources)) {
     67    if (!psphotReadoutKnownSources(config, photView, "PSPHOT.INPUT", inSources)) {
    7068        // This is likely a data quality issue
    7169        // XXX Split into multiple cases using error codes?
  • branches/eam_branches/ipp-20101103/pswarp/src/pswarpLoop.c

    r28043 r29905  
    384384
    385385        // measure the PSF using these sources
    386         if (!psphotReadoutFindPSF(config, view, sources)) {
     386        if (!psphotReadoutFindPSF(config, view, "PSPHOT.INPUT", sources)) {
    387387            // This is likely a data quality issue
    388388            // XXX Split into multiple cases using error codes?
Note: See TracChangeset for help on using the changeset viewer.