Changeset 6715 for trunk/psphot/src/psphotSkyReplace.c
- Timestamp:
- Mar 27, 2006, 4:31:17 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotSkyReplace.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotSkyReplace.c
r6571 r6715 2 2 3 3 // in order to successfully replace the sky, we must define a corresponding file... 4 bool psphotSkyReplace (psMetadata *config, pmFPAview *view) { 4 bool psphotSkyReplace (pmConfig *config, pmFPAview *view) { 5 6 bool status; 5 7 6 8 // find the currently selected readout 7 psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, "PSPHOT");8 pmFPA *input= psMetadataLookupPtr (&status, config->files, "PSPHOT.INPUT");9 pmReadout *readout = pmFPAviewThisReadout (view, input);9 // psMetadata *recipe = psMetadataLookupPtr (&status, config->recipes, "PSPHOT"); 10 pmFPAfile *input = psMetadataLookupPtr (&status, config->files, "PSPHOT.INPUT"); 11 pmReadout *readout = pmFPAviewThisReadout (view, input->fpa); 10 12 11 13 // select the corresponding images … … 14 16 15 17 // select background pixels, from output background file, or create 16 background = pmFPAfileReadoutImage (config->files, view, "PSPHOT.BACKGND", 0, 0, PS_TYPE_F32);18 psImage *background = pmFPAfileReadoutImage (config->files, view, "PSPHOT.BACKGND", 0, 0, PS_TYPE_F32); 17 19 if (background == NULL) { 18 20 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
