Changeset 15477 for trunk/psModules/src/camera/pmFPAMosaic.c
- Timestamp:
- Nov 6, 2007, 1:15:12 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAMosaic.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAMosaic.c
r15288 r15477 704 704 psArray *readouts = cell->readouts; // The array of readouts 705 705 if (readouts->n > 1) { 706 ps LogMsg(__func__, PS_LOG_WARN, "Cell contains more than one readout (%ld) --- only the first will "707 "be mosaicked.\n",readouts->n);706 psWarning("Cell contains more than one readout (%ld) --- only the first will be mosaicked.\n", 707 readouts->n); 708 708 } 709 709 pmReadout *readout = readouts->data[0]; // The only readout we'll bother with … … 754 754 int x0Target = psMetadataLookupS32(&mdok, targetCell->concepts, "CELL.X0"); 755 755 if (!mdok) { 756 ps LogMsg(__func__, PS_LOG_WARN,"CELL.X0 is not set for the target cell; assuming 0.\n");756 psWarning("CELL.X0 is not set for the target cell; assuming 0.\n"); 757 757 FIX_CONCEPT(targetCell->concepts, "CELL.X0", S32, 0); 758 758 } 759 759 int y0Target = psMetadataLookupS32(&mdok, targetCell->concepts, "CELL.Y0"); 760 760 if (!mdok) { 761 ps LogMsg(__func__, PS_LOG_WARN,"CELL.Y0 is not set for the target cell; assuming 0.\n");761 psWarning("CELL.Y0 is not set for the target cell; assuming 0.\n"); 762 762 FIX_CONCEPT(targetCell->concepts, "CELL.Y0", S32, 0); 763 763 } 764 764 int xParityTarget = psMetadataLookupS32(&mdok, targetCell->concepts, "CELL.XPARITY"); 765 765 if (!mdok || (xParityTarget != -1 && xParityTarget != 1)) { 766 ps LogMsg(__func__, PS_LOG_WARN,"CELL.XPARITY is not set for the target cell; assuming 1.\n");766 psWarning("CELL.XPARITY is not set for the target cell; assuming 1.\n"); 767 767 FIX_CONCEPT(targetCell->concepts, "CELL.XPARITY", S32, 1); 768 768 xParityTarget = 1; … … 770 770 int yParityTarget = psMetadataLookupS32(&mdok, targetCell->concepts, "CELL.YPARITY"); 771 771 if (!mdok || (yParityTarget != -1 && yParityTarget != 1)) { 772 ps LogMsg(__func__, PS_LOG_WARN,"CELL.YPARITY is not set for the target cell; assuming 1.\n");772 psWarning("CELL.YPARITY is not set for the target cell; assuming 1.\n"); 773 773 FIX_CONCEPT(targetCell->concepts, "CELL.YPARITY", S32, 1); 774 774 yParityTarget = 1; … … 863 863 int x0Target = psMetadataLookupS32(&mdok, targetChip->concepts, "CHIP.X0"); 864 864 if (!mdok) { 865 ps LogMsg(__func__, PS_LOG_WARN,"CHIP.X0 is not set for the target chip; assuming 0.\n");865 psWarning("CHIP.X0 is not set for the target chip; assuming 0.\n"); 866 866 FIX_CONCEPT(targetChip->concepts, "CHIP.X0", S32, 0); 867 867 } 868 868 int y0Target = psMetadataLookupS32(&mdok, targetChip->concepts, "CHIP.Y0"); 869 869 if (!mdok) { 870 ps LogMsg(__func__, PS_LOG_WARN,"CHIP.Y0 is not set for the target chip; assuming 0.\n");870 psWarning("CHIP.Y0 is not set for the target chip; assuming 0.\n"); 871 871 FIX_CONCEPT(targetChip->concepts, "CHIP.Y0", S32, 0); 872 872 } 873 873 x0Target += psMetadataLookupS32(&mdok, targetCell->concepts, "CELL.X0"); 874 874 if (!mdok) { 875 ps LogMsg(__func__, PS_LOG_WARN,"CELL.X0 is not set for the target cell; assuming 0.\n");875 psWarning("CELL.X0 is not set for the target cell; assuming 0.\n"); 876 876 FIX_CONCEPT(targetCell->concepts, "CELL.X0", S32, 0); 877 877 } 878 878 y0Target += psMetadataLookupS32(&mdok, targetCell->concepts, "CELL.Y0"); 879 879 if (!mdok) { 880 ps LogMsg(__func__, PS_LOG_WARN,"CELL.Y0 is not set for the target cell; assuming 0.\n");880 psWarning("CELL.Y0 is not set for the target cell; assuming 0.\n"); 881 881 FIX_CONCEPT(targetCell->concepts, "CELL.Y0", S32, 0); 882 882 } 883 883 int xParityChipTarget = psMetadataLookupS32(&mdok, targetChip->concepts, "CHIP.XPARITY"); 884 884 if (!mdok || (xParityChipTarget != -1 && xParityChipTarget != 1)) { 885 ps LogMsg(__func__, PS_LOG_WARN,"CHIP.XPARITY is not set for the target chip; assuming 1.\n");885 psWarning("CHIP.XPARITY is not set for the target chip; assuming 1.\n"); 886 886 FIX_CONCEPT(targetChip->concepts, "CHIP.XPARITY", S32, 1); 887 887 xParityChipTarget = 1; … … 889 889 int yParityChipTarget = psMetadataLookupS32(&mdok, targetChip->concepts, "CHIP.YPARITY"); 890 890 if (!mdok || (yParityChipTarget != -1 && yParityChipTarget != 1)) { 891 ps LogMsg(__func__, PS_LOG_WARN,"CHIP.YPARITY is not set for the target chip; assuming 1.\n");891 psWarning("CHIP.YPARITY is not set for the target chip; assuming 1.\n"); 892 892 FIX_CONCEPT(targetChip->concepts, "CHIP.YPARITY", S32, 1); 893 893 yParityChipTarget = 1; … … 895 895 int xParityCellTarget = psMetadataLookupS32(&mdok, targetCell->concepts, "CELL.XPARITY"); 896 896 if (!mdok || (xParityCellTarget != -1 && xParityCellTarget != 1)) { 897 ps LogMsg(__func__, PS_LOG_WARN,"CELL.XPARITY is not set for the target cell; assuming 1.\n");897 psWarning("CELL.XPARITY is not set for the target cell; assuming 1.\n"); 898 898 FIX_CONCEPT(targetCell->concepts, "CELL.XPARITY", S32, 1); 899 899 xParityCellTarget = 1; … … 901 901 int yParityCellTarget = psMetadataLookupS32(&mdok, targetCell->concepts, "CELL.YPARITY"); 902 902 if (!mdok || (yParityCellTarget != -1 && yParityCellTarget != 1)) { 903 ps LogMsg(__func__, PS_LOG_WARN,"CELL.YPARITY is not set for the target cell; assuming 1.\n");903 psWarning("CELL.YPARITY is not set for the target cell; assuming 1.\n"); 904 904 FIX_CONCEPT(targetCell->concepts, "CELL.YPARITY", S32, 1); 905 905 yParityCellTarget = 1; … … 1334 1334 pmHDU *sourceHDU = pmHDUGetHighest(source, firstSourceChip, firstSourceCell); // The HDU for the source 1335 1335 if (!sourceHDU) { 1336 ps LogMsg(__func__, PS_LOG_WARN,"Unable to find HDU in source FPA; unable to copy headers.\n");1336 psWarning("Unable to find HDU in source FPA; unable to copy headers.\n"); 1337 1337 return false; 1338 1338 } 1339 1339 pmHDU *targetHDU = pmHDUGetHighest(target, targetChip, targetCell); // The HDU for the target 1340 1340 if (!targetHDU) { 1341 ps LogMsg(__func__, PS_LOG_WARN,"Unable to find HDU in target FPA; unable to copy headers.\n");1341 psWarning("Unable to find HDU in target FPA; unable to copy headers.\n"); 1342 1342 return false; 1343 1343 }
Note:
See TracChangeset
for help on using the changeset viewer.
