Changeset 41646 for branches/eam_branches/relphot.20210521/src/GridOps.c
- Timestamp:
- Jun 7, 2021, 4:11:39 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/relphot.20210521/src/GridOps.c
r41637 r41646 19 19 static int NGridCorr = 0; 20 20 21 # if ( 1)21 # if (0) 22 22 /* PS1 / PS2 values */ 23 23 # define NX_CHIP 4900 … … 25 25 # define NX_BIN 16 26 26 # define NY_BIN 16 27 # else 27 # endif 28 28 29 /* test values */ 29 # define NX_CHIP 1000 30 # define NY_CHIP 1000 31 # define NX_BIN 2 32 # define NY_BIN 2 33 # endif 30 # define NX_CHIP_DEFAULT 1000 31 # define NY_CHIP_DEFAULT 1000 32 # define NX_BIN_DEFAULT 2 33 # define NY_BIN_DEFAULT 2 34 34 35 35 void initGridBins (void) { … … 141 141 if (!code) continue; 142 142 143 int NX_CHIP = NX_CHIP_DEFAULT; 144 int NY_CHIP = NY_CHIP_DEFAULT; 145 int NX_BIN = NX_BIN_DEFAULT; 146 int NY_BIN = NY_BIN_DEFAULT; 147 if (isGPC1chip(code)) { NX_CHIP = 4900; NY_CHIP = 4900; NX_BIN = NY_BIN = GRID_BIN_GPC1; } 148 if (isGPC2chip(code)) { NX_CHIP = 4900; NY_CHIP = 4900; NX_BIN = NY_BIN = GRID_BIN_GPC2; } 149 if (isHSCchip(code)) { NX_CHIP = 2100; NY_CHIP = 4200; NX_BIN = NY_BIN = GRID_BIN_HSC; } 150 if (isCFHchip(code)) { NX_CHIP = 2100; NY_CHIP = 4200; NX_BIN = NY_BIN = GRID_BIN_CFH; } 151 143 152 if (GridCorr[code]) continue; // already created this one 144 153 … … 150 159 GridCorr[code]->Ny = NY_BIN; 151 160 GridCorr[code]->dX = NX_BIN / (float) NX_CHIP; 152 GridCorr[code]->dY = NY_BIN / (float) N X_CHIP;161 GridCorr[code]->dY = NY_BIN / (float) NY_CHIP; 153 162 154 163 // we are normally accessing this array randomly, so there is no advantage to
Note:
See TracChangeset
for help on using the changeset viewer.
