Changeset 6715 for trunk/psphot/src/psphotReadout.c
- Timestamp:
- Mar 27, 2006, 4:31:17 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotReadout.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotReadout.c
r6571 r6715 12 12 // find the currently selected readout 13 13 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); 16 27 17 28 // generate a background model (median, smoothed image) … … 58 69 // update the header with stats results 59 70 // 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); 62 73 63 74 // XXX make this an option? … … 99 110 } 100 111 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 101 119 # endif
Note:
See TracChangeset
for help on using the changeset viewer.
