Changeset 7583
- Timestamp:
- Jun 15, 2006, 3:05:44 PM (20 years ago)
- Location:
- trunk/psastro/src
- Files:
-
- 3 edited
-
psastroDataLoad.c (modified) (1 diff)
-
psastroDataSave.c (modified) (1 diff)
-
psastroParseCamera.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroDataLoad.c
r7014 r7583 34 34 35 35 // files associated with the science image 36 pmFPAfileIOChecks (config ->files, view, PM_FPA_BEFORE);36 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE); 37 37 38 38 while ((chip = pmFPAviewNextChip (view, input->fpa, 1)) != NULL) { 39 39 psTrace (__func__, 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process); 40 40 if (!chip->process || !chip->file_exists) { continue; } 41 pmFPAfileIOChecks (config ->files, view, PM_FPA_BEFORE);41 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE); 42 42 43 43 while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) { 44 44 psTrace (__func__, 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process); 45 45 if (!cell->process || !cell->file_exists) { continue; } 46 pmFPAfileIOChecks (config ->files, view, PM_FPA_BEFORE);46 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE); 47 47 48 48 // process each of the readouts 49 49 while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) { 50 pmFPAfileIOChecks (config ->files, view, PM_FPA_BEFORE);50 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE); 51 51 if (! readout->data_exists) { continue; } 52 52 53 53 psastroConvert (readout, recipe); 54 54 55 pmFPAfileIOChecks (config ->files, view, PM_FPA_AFTER);55 pmFPAfileIOChecks (config, view, PM_FPA_AFTER); 56 56 } 57 pmFPAfileIOChecks (config ->files, view, PM_FPA_AFTER);57 pmFPAfileIOChecks (config, view, PM_FPA_AFTER); 58 58 } 59 pmFPAfileIOChecks (config ->files, view, PM_FPA_AFTER);59 pmFPAfileIOChecks (config, view, PM_FPA_AFTER); 60 60 } 61 pmFPAfileIOChecks (config ->files, view, PM_FPA_AFTER);61 pmFPAfileIOChecks (config, view, PM_FPA_AFTER); 62 62 psFree (view); 63 63 return true; -
trunk/psastro/src/psastroDataSave.c
r7014 r7583 30 30 31 31 // open/load files as needed 32 pmFPAfileIOChecks (config ->files, view, PM_FPA_BEFORE);32 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE); 33 33 34 34 while ((chip = pmFPAviewNextChip (view, output->fpa, 1)) != NULL) { 35 35 psTrace (__func__, 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process); 36 36 if (!chip->process || !chip->file_exists) { continue; } 37 pmFPAfileIOChecks (config ->files, view, PM_FPA_BEFORE);37 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE); 38 38 39 39 while ((cell = pmFPAviewNextCell (view, output->fpa, 1)) != NULL) { 40 40 psTrace (__func__, 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process); 41 41 if (!cell->process || !cell->file_exists) { continue; } 42 pmFPAfileIOChecks (config ->files, view, PM_FPA_BEFORE);42 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE); 43 43 44 44 // process each of the readouts 45 45 while ((readout = pmFPAviewNextReadout (view, output->fpa, 1)) != NULL) { 46 pmFPAfileIOChecks (config ->files, view, PM_FPA_BEFORE);46 pmFPAfileIOChecks (config, view, PM_FPA_BEFORE); 47 47 if (! readout->data_exists) { continue; } 48 48 49 pmFPAfileIOChecks (config ->files, view, PM_FPA_AFTER);49 pmFPAfileIOChecks (config, view, PM_FPA_AFTER); 50 50 } 51 pmFPAfileIOChecks (config ->files, view, PM_FPA_AFTER);51 pmFPAfileIOChecks (config, view, PM_FPA_AFTER); 52 52 } 53 pmFPAfileIOChecks (config ->files, view, PM_FPA_AFTER);53 pmFPAfileIOChecks (config, view, PM_FPA_AFTER); 54 54 } 55 pmFPAfileIOChecks (config ->files, view, PM_FPA_AFTER);55 pmFPAfileIOChecks (config, view, PM_FPA_AFTER); 56 56 57 57 psFree (view); -
trunk/psastro/src/psastroParseCamera.c
r7573 r7583 7 7 8 8 // the input image(s) are required arguments; they define the camera 9 pmFPAfile *input = pmFPAfile FromArgs (&status, config, "PSASTRO.INPUT", "INPUT");9 pmFPAfile *input = pmFPAfileDefineFromArgs (&status, config, "PSASTRO.INPUT", "INPUT"); 10 10 if (!status) { psAbort (__func__, "missing INPUT entry"); } 11 11 … … 20 20 21 21 // these calls bind the I/O handle to the specified fpa 22 pmFPAfileDefine (config->files, config->camera, input->fpa, "PSASTRO.OUTPUT");22 pmFPAfileDefineOutput (config->files, config->camera, input->fpa, "PSASTRO.OUTPUT"); 23 23 24 24 // supply the output name (from cmd-line) to all output (WRITE) files
Note:
See TracChangeset
for help on using the changeset viewer.
