Changeset 34528 for trunk/psphot/src/psphotSubtractBackground.c
- Timestamp:
- Oct 8, 2012, 12:06:06 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotSubtractBackground.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotSubtractBackground.c
r32348 r34528 21 21 22 22 // find the currently selected readout (XXX note that the model is saved on PSPHOT.BACKMDL regardless of 'filename' 23 pmFPAfile *modelFile = pmFPAfileSelectSingle(config->files, "PSPHOT.BACKMDL", index); // File of interest23 pmFPAfile *modelFile = pmFPAfileSelectSingle(config->files, psphotGetFilerule("PSPHOT.BACKMDL"), index); // File of interest 24 24 assert (modelFile); 25 25 … … 36 36 // select background pixels, from output background file, or create 37 37 // XXX for now, we will only allow a single background image to be generated 38 file = psMetadataLookupPtr (&status, config->files, "PSPHOT.BACKGND");38 file = psMetadataLookupPtr (&status, config->files, psphotGetFilerule("PSPHOT.BACKGND")); 39 39 if (file) { 40 40 // we are using PSPHOT.BACKGND as an I/O file: select readout or create … … 50 50 } 51 51 } else { 52 background = pmFPAfileDefineInternal (config->files, "PSPHOT.BACKGND", image->numCols, image->numRows, PS_TYPE_F32);52 background = pmFPAfileDefineInternal (config->files, psphotGetFilerule("PSPHOT.BACKGND"), image->numCols, image->numRows, PS_TYPE_F32); 53 53 } 54 54 psF32 **backData = background->image->data.F32;
Note:
See TracChangeset
for help on using the changeset viewer.
