IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 24, 2013, 1:28:04 PM (13 years ago)
Author:
bills
Message:

progress on fulLforceSummary implementation. in psphotFullForce set
modelEXT to the nominal model so that those paramters are available in fullForceSummary

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/bills_branches/bills_201312/psphot/src/psphotFullForceSummary.c

    r36407 r36410  
    140140    psFree(outputFPA);                        // Drop reference
    141141    if (!output) {
    142         psError(psErrorCodeLast(), false, _("Unable to generate output file from PPSTACK.OUTPUT"));
     142        psError(psErrorCodeLast(), false, _("Unable to generate output file from PSPHOT.OUTPUT"));
    143143        return false;
    144144    }
     
    183183        return NULL;
    184184    }
    185 #ifdef notdef
    186     pmHDU *lastHDU = NULL;              // Last HDU updated
    187 #endif
    188185
    189186    // files associated with the science image
     
    196193
    197194    while ((chip = pmFPAviewNextChip (view, input->fpa, 1)) != NULL) {
    198         psLogMsg ("psphotFullForceSummary", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);
     195//        psLogMsg ("psphotFullForceSummary", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);
    199196        if (! chip->process || ! chip->file_exists) { continue; }
    200197
     
    233230        // there is now only a single chip (multiple readouts?). loop over it and process
    234231        while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) {
    235             psLogMsg ("psphotFullForceSummary", 5, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);
     232 //           psLogMsg ("psphotFullForceSummary", 5, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);
    236233
    237234            // process each of the readouts
    238235            while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) {
    239                 psLogMsg ("psphotFullForceSummary", 6, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);
     236//                psLogMsg ("psphotFullForceSummary", 6, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);
    240237                if (! readout->data_exists) { continue; }
    241238
    242 #ifdef notdef
    243                 pmHDU *hdu = pmHDUGetHighest(input->fpa, chip, cell);
    244                 if (hdu && hdu != lastHDU) {
    245                     // XXX: need to do this
    246                     // psphotVersionHeaderFull(hdu->header);
    247                     lastHDU = hdu;
    248                 }
    249 #endif
    250239                if (!psphotFullForceSummaryReadout(config, view)) {
    251240                    ESCAPE ("failure in psphotFullForceSummaryReadout");
     
    257246
    258247
    259     // If these keywords are not set we get a warning message on output.
     248    // If these keywords are not set we get a warning message on output. Since we are not copying the input header
     249    // and do not have an image pmFPA stuff doesn't have values for these
     250    // XXX: What other keywords and concepts should be set (or copied)?
    260251    int numCols = psMetadataLookupS32(&status, input->fpa->hdu->header, "IMNAXIS1");
    261252    int numRows = psMetadataLookupS32(&status, input->fpa->hdu->header, "IMNAXIS2");
    262253    psMetadataAddS32(output->fpa->hdu->header, PS_LIST_TAIL, "IMNAXIS1", PS_META_REPLACE, "", numCols);
    263254    psMetadataAddS32(output->fpa->hdu->header, PS_LIST_TAIL, "IMNAXIS2", PS_META_REPLACE, "", numRows);
    264     // XXX: What other keywords and concepts should be set (or copied)?
     255
     256    // XXX: Also add psphot version information
    265257
    266258    if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) ESCAPE ("failed pmFPAfileIOChecks for FPA in psphot.");
     
    270262
    271263    psFree (view);
     264
    272265    return true;
    273266}
Note: See TracChangeset for help on using the changeset viewer.