IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 27, 2006, 4:31:17 PM (20 years ago)
Author:
eugene
Message:

substantial work on the pmFPAfile,view concepts

File:
1 edited

Legend:

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

    r6571 r6715  
    1212    // find the currently selected readout
    1313    psMetadata *recipe  = psMetadataLookupPtr (&status, config->recipes, "PSPHOT");
    14     pmFPA *input = psMetadataLookupPtr (&status, config->files, "PSPHOT.INPUT");
    15     pmReadout  *readout = pmFPAviewThisReadout (view, input);
     14    pmFPAfile  *input   = psMetadataLookupPtr (&status, config->files, "PSPHOT.INPUT");
     15    pmReadout  *readout = pmFPAviewThisReadout (view, input->fpa);
     16
     17    sources = psphotFakeSources();
     18    status = psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.SOURCES",   PS_DATA_ARRAY,   "psphot sources", sources);
     19    psFree (sources);
     20    return true;
     21
     22    // XXX does this need to invoke I/O?
     23    pmReadoutSetWeights (readout);
     24
     25    // I have a valid mask, now mask in the analysis region of interest
     26    psphotMaskReadout (readout, recipe);
    1627
    1728    // generate a background model (median, smoothed image)
     
    5869    // update the header with stats results
    5970    // XXX need to do this conditionally?
    60     psMetadata *header = pmReadoutGetHeader (readout);
    61     psphotUpdateHeader (header, config);
     71    // XXX psMetadata *header = pmReadoutGetHeader (readout);
     72    // XXX psphotUpdateHeader (header, config);
    6273
    6374    // XXX make this an option?
     
    99110    }
    100111
     112
     113
     114    psphotSaveImage (NULL, readout->image,  "pixels.fits");
     115    psphotSaveImage (NULL, readout->weight, "weight.fits");
     116    psphotSaveImage (NULL, readout->mask,   "mask.fits");
     117    exit (1);
     118
    101119# endif
Note: See TracChangeset for help on using the changeset viewer.