Changeset 7582
- Timestamp:
- Jun 15, 2006, 3:04:39 PM (20 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 5 edited
-
. (modified) (1 prop)
-
.cvsignore (modified) (1 diff)
-
psphotImageLoop.c (modified) (3 diffs)
-
psphotImageMedian.c (modified) (2 diffs)
-
psphotParseCamera.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src
- Property svn:ignore
-
old new 8 8 psphot 9 9 psphotTest 10 errorCodes.c11 10 psphot.loT 12 11 psphotErrorCodes.h
-
- Property svn:ignore
-
trunk/psphot/src/.cvsignore
r7517 r7582 8 8 psphot 9 9 psphotTest 10 errorCodes.c11 10 psphot.loT 12 11 psphotErrorCodes.h 13 14 12 psphotErrorCodes.c -
trunk/psphot/src/psphotImageLoop.c
r7345 r7582 18 18 19 19 // files associated with the science image 20 if (!pmFPAfileIOChecks (config ->files, view, PM_FPA_BEFORE)) {20 if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) { 21 21 psFree(view); 22 22 return false; … … 25 25 psLogMsg ("psphot", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process); 26 26 if (! chip->process || ! chip->file_exists) { continue; } 27 pmFPAfileIOChecks (config ->files, view, PM_FPA_BEFORE);27 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE); 28 28 29 29 while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) { 30 30 psLogMsg ("psphot", 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process); 31 31 if (! cell->process || ! cell->file_exists) { continue; } 32 pmFPAfileIOChecks (config ->files, view, PM_FPA_BEFORE);32 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE); 33 33 34 34 // process each of the readouts 35 35 while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) { 36 pmFPAfileIOChecks (config ->files, view, PM_FPA_BEFORE);36 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE); 37 37 if (! readout->data_exists) { continue; } 38 38 … … 40 40 psphotReadout (config, view); 41 41 42 pmFPAfileIOChecks (config ->files, view, PM_FPA_AFTER);42 pmFPAfileIOChecks (config, view, PM_FPA_AFTER); 43 43 } 44 pmFPAfileIOChecks (config ->files, view, PM_FPA_AFTER);44 pmFPAfileIOChecks (config, view, PM_FPA_AFTER); 45 45 } 46 pmFPAfileIOChecks (config ->files, view, PM_FPA_AFTER);46 pmFPAfileIOChecks (config, view, PM_FPA_AFTER); 47 47 } 48 pmFPAfileIOChecks (config ->files, view, PM_FPA_AFTER);48 pmFPAfileIOChecks (config, view, PM_FPA_AFTER); 49 49 50 50 psFree (view); -
trunk/psphot/src/psphotImageMedian.c
r7434 r7582 56 56 if (model == NULL) { 57 57 // select model pixels, from output background model file, or create 58 model = pmFPAfile CreateInternal (config->files, "PSPHOT.BACKMDL", nx, ny, PS_TYPE_F32);58 model = pmFPAfileDefineInternal (config->files, "PSPHOT.BACKMDL", nx, ny, PS_TYPE_F32); 59 59 } else { 60 60 // replace the supplied image data with an image of the desired size … … 109 109 pmReadout *background = pmFPAfileThisReadout (config->files, view, "PSPHOT.BACKGND"); 110 110 if (background == NULL) { 111 background = pmFPAfile CreateInternal (config->files, "PSPHOT.BACKGND", Nx, Ny, PS_TYPE_F32);111 background = pmFPAfileDefineInternal (config->files, "PSPHOT.BACKGND", Nx, Ny, PS_TYPE_F32); 112 112 } 113 113 psF32 **backData = background->image->data.F32; -
trunk/psphot/src/psphotParseCamera.c
r7520 r7582 7 7 8 8 // the input image defines the camera 9 pmFPAfile *input = pmFPAfile FromArgs (&status, config, "PSPHOT.INPUT", "INPUT");9 pmFPAfile *input = pmFPAfileDefineFromArgs (&status, config, "PSPHOT.INPUT", "INPUT"); 10 10 if (!status) { 11 11 psError(PSPHOT_ERR_CONFIG, false, "Failed to build FPA from PSPHOT.INPUT"); … … 27 27 28 28 // these calls bind the I/O handle to the specified fpa 29 pmFPAfileDefine (config->files, config->camera, input->fpa, "PSPHOT.OUTPUT");29 pmFPAfileDefineOutput (config->files, config->camera, input->fpa, "PSPHOT.OUTPUT"); 30 30 31 31 // optionally save the residual image 32 32 if (psMetadataLookupBool(NULL, recipe, "SAVE.RESID")) { 33 pmFPAfileDefine (config->files, config->camera, input->fpa, "PSPHOT.RESID");33 pmFPAfileDefineOutput (config->files, config->camera, input->fpa, "PSPHOT.RESID"); 34 34 } 35 35 … … 41 41 // optionally save the background model (small FITS image) 42 42 if (psMetadataLookupBool(NULL, recipe, "SAVE.BACKMDL")) { 43 pmFPAfile FromFPA (config, input->fpa, DX, DY, "PSPHOT.BACKMDL");43 pmFPAfileDefineFromFPA (config, input->fpa, DX, DY, "PSPHOT.BACKMDL"); 44 44 } 45 45 // optionally save the full background image 46 46 if (psMetadataLookupBool(NULL, recipe, "SAVE.BACKGND")) { 47 pmFPAfile FromFPA (config, input->fpa, 1, 1, "PSPHOT.BACKGND");47 pmFPAfileDefineFromFPA (config, input->fpa, 1, 1, "PSPHOT.BACKGND"); 48 48 } 49 49 // optionally save the background-subtracted image 50 50 if (psMetadataLookupBool(NULL, recipe, "SAVE.BACKSUB")) { 51 pmFPAfile FromFPA (config, input->fpa, 1, 1, "PSPHOT.BACKSUB");51 pmFPAfileDefineFromFPA (config, input->fpa, 1, 1, "PSPHOT.BACKSUB"); 52 52 } 53 53 // optionally save the PSF Model 54 54 if (psMetadataLookupBool(NULL, recipe, "SAVE.PSF")) { 55 pmFPAfileDefine (config->files, config->camera, input->fpa, "PSPHOT.PSF.SAVE");55 pmFPAfileDefineOutput (config->files, config->camera, input->fpa, "PSPHOT.PSF.SAVE"); 56 56 } 57 57 // optionally load the PSF Model 58 58 if (psMetadataLookupBool(NULL, recipe, "LOAD.PSF")) { 59 pmFPAfileDefine (config->files, config->camera, input->fpa, "PSPHOT.PSF.LOAD");59 pmFPAfileDefineInput (config->files, config->camera, input->fpa, "PSPHOT.PSF.LOAD"); 60 60 } 61 61
Note:
See TracChangeset
for help on using the changeset viewer.
