IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 2, 2006, 1:30:35 PM (20 years ago)
Author:
eugene
Message:

updated to use new image/subimage/region coordinate consistency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotImageLoop.c

    r6117 r6311  
    55    bool status;
    66    ppImageLoadDepth imageLoadDepth;
    7     char filename[1024];
    87
    98    // determine the load depth
     
    2726    }
    2827
    29     char *outputRoot = psMetadataLookupPtr (&status, config->arguments, "-output");
    30     if (!status) psAbort ("psphot", "output file not specified");
    31 
    32     int Nout = 0;
    3328    for (int i = 0; i < file->fpa->chips->n; i++) {
    3429        pmChip *chip = file->fpa->chips->data[i]; // Chip of interest in input image
     
    5348            }
    5449
     50            // XXX optional mask and weight input image should be loaded here?
     51            // this sets the weight map and basic mask applying CELL.BAD and CELL.SATURATION
    5552            pmCellSetWeights(cell);
    5653
     
    5855            pmCellSetMask (cell, config->recipe);
    5956
    60 
    6157            // process each of the readouts
    6258            for (int k = 0; k < cell->readouts->n; k++) {
    6359                pmReadout *readout = cell->readouts->data[k]; // Readout of interest in input image
    6460
    65                 // psphotSaveImage (NULL, readout->image, "image.fits");
    66                 // psphotSaveImage (NULL, readout->weight, "weight.fits");
    67                 // psphotSaveImage (NULL, readout->mask, "mask.fits");
     61                // run a single-model test if desired
     62                psphotModelTest (readout, config->arguments, config->recipe);
    6863
    6964                psphotReadout (readout, config->recipe);
    70 
    71                 // XXX EAM : temporarily write out only CMF with fixed extension
    72                 sprintf (filename, "%s.%02d.cmf", outputRoot, Nout);
    73                 psMetadata *header = pmReadoutGetHeader (readout);
    74 
    75                 psArray *sources = psMetadataLookupPtr (&status, readout->analysis, "PSPHOT.SOURCES");
    76 
    77                 pmSourcesWriteCMF (sources, filename, header);
    78                 Nout++;
     65                psphotOutput (readout, config->arguments);
    7966            }
    8067        }
Note: See TracChangeset for help on using the changeset viewer.