IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 8, 2009, 4:23:12 PM (17 years ago)
Author:
Paul Price
Message:

Fixing bad PHOTCODEs due to concepts not being set. Concepts for the convolved images weren't being inherited from the inputs, so added pmConceptsCopyFPA calls. Concepts for the photometry images weren't being inherited, so using pmFPACopy instead of copying the readout only.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubMakePSF.c

    r23753 r23758  
    5858    }
    5959
    60 #if 1
    6160    pmFPAfile *photFile = psMetadataLookupPtr(&mdok, config->files, "PSPHOT.INPUT"); // Photometry file
    62 #if 0
    63     pmReadout *photRO = pmFPAviewThisReadout(view, photFile->fpa); // Readout to photometer
    64     pmReadout *template = minuend;
    65     if (!photRO) {
    66         pmCell *cell = pmFPAviewThisCell(view, photFile->fpa); // Cell to photometer
    67         photRO = pmReadoutAlloc(cell); // Output readout: subtraction
    68     }
    69     photRO->image = psImageCopy(photRO->image, template->image, PS_TYPE_F32);
    70     if (template->variance) {
    71         photRO->variance = psImageCopy(photRO->variance, template->variance, PS_TYPE_F32);
    72     } else {
    73         psFree(photRO->variance);
    74         photRO->variance = NULL;
    75     }
    76     if (template->mask) {
    77         photRO->mask = psImageCopy(photRO->mask, template->mask, PS_TYPE_IMAGE_MASK);
    78     } else {
    79         psFree(photRO->mask);
    80         photRO->mask = NULL;
    81     }
    82 #else
    8361    if (!pmFPACopy(photFile->fpa, minuendFile->fpa)) {
    8462        psError(PS_ERR_UNKNOWN, false, "Unable to copy FPA for photometry");
     
    9068        psMetadataRemoveKey(photRO->analysis, "PSPHOT.SOURCES");
    9169    }
    92 #endif
    93 
    94 
    95 #else
    96     // Supply the minuend pmFPAfile to psphot as PSPHOT.INPUT:
    97     psMetadataAddPtr(config->files, PS_LIST_TAIL, "PSPHOT.INPUT", PS_DATA_UNKNOWN | PS_META_REPLACE,
    98                      "psphot input: view on another pmFPAfile", minuendFile);
    99 #endif
    10070
    10171    // Extract the loaded sources from the associated readout, and generate PSF
Note: See TracChangeset for help on using the changeset viewer.