Changeset 21239 for branches/eam_branch_20081230/ppArith/src/ppArithLoop.c
- Timestamp:
- Jan 30, 2009, 12:00:45 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20081230/ppArith/src/ppArithLoop.c
r21229 r21239 6 6 * 7 7 * @author IfA 8 * @version $Revision: 1.6.28. 1$ $Name: not supported by cvs2svn $9 * @date $Date: 2009-01-30 01:39:11$8 * @version $Revision: 1.6.28.2 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-01-30 22:00:45 $ 10 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 11 */ … … 28 28 PS_ASSERT_PTR_NON_NULL(config, false); 29 29 30 bool mdok; / ** Status of MD lookup */31 const char *statsName = psMetadataLookupStr(&mdok, config->arguments, "STATS"); // Filename for statistics32 psMetadata *stats = NULL; / ** Container for statistics */33 FILE *statsFile = NULL; / ** File stream for statistics */30 bool mdok; ///< Status of MD lookup 31 const char *statsName = psMetadataLookupStr(&mdok, config->arguments, "STATS"); ///< Filename for statistics 32 psMetadata *stats = NULL; ///< Container for statistics 33 FILE *statsFile = NULL; ///< File stream for statistics 34 34 if (statsName && strlen(statsName) > 0) { 35 psString resolved = pmConfigConvertFilename(statsName, config, true, true); / ** Resolved filename */35 psString resolved = pmConfigConvertFilename(statsName, config, true, true); ///< Resolved filename 36 36 statsFile = fopen(resolved, "w"); 37 37 if (!statsFile) { … … 45 45 } 46 46 47 const char *outName = psMetadataLookupStr(NULL, config->arguments, "FILERULE.OUTPUT"); / ** Output filerule */48 pmFPAfile *output = psMetadataLookupPtr(NULL, config->files, outName); / ** Output file */47 const char *outName = psMetadataLookupStr(NULL, config->arguments, "FILERULE.OUTPUT"); ///< Output filerule 48 pmFPAfile *output = psMetadataLookupPtr(NULL, config->files, outName); ///< Output file 49 49 assert(output); // We added it earlier 50 50 51 const char *inName = psMetadataLookupStr(NULL, config->arguments, "FILERULE.INPUT"); / ** Input filerule */52 pmFPAfile *input1 = NULL, *input2 = NULL; / ** Input files */53 psString fileRegex = NULL; / ** Regular expression to find input files */51 const char *inName = psMetadataLookupStr(NULL, config->arguments, "FILERULE.INPUT"); ///< Input filerule 52 pmFPAfile *input1 = NULL, *input2 = NULL; ///< Input files 53 psString fileRegex = NULL; ///< Regular expression to find input files 54 54 psStringAppend(&fileRegex, "^%s$", inName); 55 psMetadataIterator *iter = psMetadataIteratorAlloc(config->files, PS_LIST_HEAD, fileRegex); // Iterator56 psMetadataItem *item = psMetadataGetAndIncrement(iter); / ** Item from iteration */55 psMetadataIterator *iter = psMetadataIteratorAlloc(config->files, PS_LIST_HEAD, fileRegex); ///< Iterator 56 psMetadataItem *item = psMetadataGetAndIncrement(iter); ///< Item from iteration 57 57 input1 = item->data.V; 58 58 assert(input1); // It should be there! … … 63 63 psFree(iter); 64 64 65 pmFPAview *view = pmFPAviewAlloc(0); / ** Pointer into FPA hierarchya */66 pmHDU *lastHDU = NULL; / ** Last HDU that was updated */65 pmFPAview *view = pmFPAviewAlloc(0); ///< Pointer into FPA hierarchy 66 pmHDU *lastHDU = NULL; ///< Last HDU that was updated 67 67 68 68 // Iterate over the FPA hierarchy … … 71 71 } 72 72 73 pmChip *outChip; / ** Output chip of interest */73 pmChip *outChip; ///< Output chip of interest 74 74 while ((outChip = pmFPAviewNextChip(view, output->fpa, 1)) != NULL) { 75 pmChip *inChip1 = pmFPAviewThisChip(view, input1->fpa); / ** Input chip of interest */76 pmChip *inChip2 = input2 ? pmFPAviewThisChip(view, input2->fpa) : NULL; / ** Input chip of interest */75 pmChip *inChip1 = pmFPAviewThisChip(view, input1->fpa); ///< Input chip of interest 76 pmChip *inChip2 = input2 ? pmFPAviewThisChip(view, input2->fpa) : NULL; ///< Input chip of interest 77 77 if (inChip2 && ((!inChip1->file_exists && inChip2->file_exists) || 78 78 (inChip1->file_exists && !inChip2->file_exists))) { … … 90 90 } 91 91 92 pmCell *outCell; / ** Cell of interest */92 pmCell *outCell; ///< Cell of interest 93 93 while ((outCell = pmFPAviewNextCell(view, output->fpa, 1)) != NULL) { 94 pmCell *inCell1 = pmFPAviewThisCell(view, input1->fpa); / ** Input cell of interest */95 pmCell *inCell2 = input2 ? pmFPAviewThisCell(view, input2->fpa) : NULL; / ** Input cell of interest */94 pmCell *inCell1 = pmFPAviewThisCell(view, input1->fpa); ///< Input cell of interest 95 pmCell *inCell2 = input2 ? pmFPAviewThisCell(view, input2->fpa) : NULL; ///< Input cell of interest 96 96 if (inCell2 && ((!inCell1->file_exists && inCell2->file_exists) || 97 97 (inCell1->file_exists && !inCell2->file_exists))) { … … 117 117 } 118 118 119 pmReadout *outRO; // Readout of interest119 pmReadout *outRO; ///< Readout of interest 120 120 while ((outRO = pmFPAviewNextReadout(view, output->fpa, 1))) { 121 121 if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) { 122 122 return false; 123 123 } 124 pmReadout *inRO1 = pmFPAviewThisReadout(view, input1->fpa);/ ** Input readout of interest */124 pmReadout *inRO1 = pmFPAviewThisReadout(view, input1->fpa);///< Input readout of interest 125 125 pmReadout *inRO2 = input2 ? pmFPAviewThisReadout(view, input2->fpa) : 126 NULL;/ ** Input readout of interest */126 NULL;///< Input readout of interest 127 127 128 128 if (inRO2 && ((!inRO1->data_exists && inRO2->data_exists) ||
Note:
See TracChangeset
for help on using the changeset viewer.
