Changeset 41610
- Timestamp:
- May 25, 2021, 2:07:05 PM (5 years ago)
- Location:
- branches/eam_branches/relphot.20210521/src
- Files:
-
- 1 added
- 2 edited
-
GridIO.c (added)
-
GridOps.c (modified) (2 diffs)
-
relphot_images.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/relphot.20210521/src/GridOps.c
r41608 r41610 16 16 */ 17 17 18 typedef struct {19 unsigned short photcode;20 float **Mgrid; // grid of average corrections21 float **dMgrid; // grid of stdev of corrections22 int **nMgrid; // grid of number of stars for corrections23 int Nx; // bin = int(Xchip * (Nx / NxChip))24 int Ny; // bin = int(Ychip * (Ny / NyChip))25 float dX; // bin = int(Xchip * dX), dX = Nx / NxChip26 float dY; // bin = int(Ychip * dY), dY = Ny / NyChip27 // NxChip, NyChip = 4900,4900 for now28 } GridCorrectionType;29 30 18 static GridCorrectionType **GridCorr = NULL; 31 19 static int NGridCorr = 0; … … 95 83 96 84 return; 85 } 86 87 GridCorrectionType *getGridCorr (int *Nlast) { 88 89 if (GridCorr == NULL) return NULL; 90 91 if (*Nlast >= NGridCorr) return NULL; 92 93 if (*Nlast < 0) *Nlast = -1; 94 95 GridCorrectionType *result = NULL; 96 for (int i = *Nlast + 1; i < NGridCorr; i++) { 97 if (GridCorr[i] == NULL) continue; 98 result = GridCorr[i]; 99 *Nlast = i; 100 } 101 return result; 97 102 } 98 103 -
branches/eam_branches/relphot.20210521/src/relphot_images.c
r41607 r41610 143 143 freeMosaicBins (Ncatalog, TRUE); 144 144 freeTGroupBins (Ncatalog); 145 146 GridCorrectionSave ("test.grid.fits"); 145 147 // end of if (NLOOP > 0) block : this loop determines the offsets per chip 146 148 } else {
Note:
See TracChangeset
for help on using the changeset viewer.
