- Timestamp:
- Oct 16, 2020, 7:07:10 AM (6 years ago)
- Location:
- trunk/Ohana/src/relphot
- Files:
-
- 4 edited
-
include/relphot.h (modified) (1 diff)
-
src/ImageOps.c (modified) (7 diffs)
-
src/MosaicOps.c (modified) (5 diffs)
-
src/extra.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relphot/include/relphot.h
r41404 r41428 667 667 668 668 // in extra.c 669 int isMosaicChip (int photcode); 670 669 671 int isGPC1chip (int photcode); 672 int isGPC2chip (int photcode); 670 673 int isGPC1stack (int photcode); 671 674 int isGPC1warp (int photcode); -
trunk/Ohana/src/relphot/src/ImageOps.c
r41390 r41428 848 848 if (image[i].flags & IMAGE_BAD) continue; 849 849 850 if (FREEZE_IMAGES && is GPC1chip(image[i].photcode)) continue;850 if (FREEZE_IMAGES && isMosaicChip(image[i].photcode)) continue; 851 851 852 852 mlist[N] = image[i].McalPSF; … … 961 961 for (i = 0; i < Nimage; i++) { 962 962 963 if (FREEZE_IMAGES && is GPC1chip(image[i].photcode)) continue;963 if (FREEZE_IMAGES && isMosaicChip(image[i].photcode)) continue; 964 964 965 965 Mlist[Nplot] = image[i].McalPSF; … … 1008 1008 1009 1009 for (i = 0; i < Nimage; i++) { 1010 if (FREEZE_IMAGES && is GPC1chip(image[i].photcode)) continue;1010 if (FREEZE_IMAGES && isMosaicChip(image[i].photcode)) continue; 1011 1011 1012 1012 bin = image[i].dMcal / 0.00025; … … 1045 1045 if (image[i].flags & IMAGE_BAD) continue; 1046 1046 1047 if (FREEZE_IMAGES && is GPC1chip(image[i].photcode)) continue;1047 if (FREEZE_IMAGES && isMosaicChip(image[i].photcode)) continue; 1048 1048 1049 1049 N = 0; … … 1094 1094 if (image[i].flags & IMAGE_BAD) continue; 1095 1095 1096 if (FREEZE_IMAGES && is GPC1chip(image[i].photcode)) continue;1096 if (FREEZE_IMAGES && isMosaicChip(image[i].photcode)) continue; 1097 1097 1098 1098 list[n] = image[i].McalChiSq; … … 1127 1127 if (image[i].flags & IMAGE_BAD) continue; 1128 1128 1129 if (FREEZE_IMAGES && is GPC1chip(image[i].photcode)) continue;1129 if (FREEZE_IMAGES && isMosaicChip(image[i].photcode)) continue; 1130 1130 1131 1131 list[n] = image[i].McalPSF; … … 1160 1160 if (image[i].flags & IMAGE_BAD) continue; 1161 1161 1162 if (FREEZE_IMAGES && is GPC1chip(image[i].photcode)) continue;1162 if (FREEZE_IMAGES && isMosaicChip(image[i].photcode)) continue; 1163 1163 1164 1164 list[n] = image[i].dMcal; -
trunk/Ohana/src/relphot/src/MosaicOps.c
r41390 r41428 173 173 int Nmoschip = 0; 174 174 for (i = 0; i < Nsubset; i++) { 175 if (!is GPC1chip(subset[i].photcode)) continue;175 if (!isMosaicChip(subset[i].photcode)) continue; 176 176 startTimes[Nmoschip] = subset[i].tzero; 177 177 Nmoschip ++; … … 238 238 } 239 239 240 if (!is GPC1chip(image[i].photcode)) continue;240 if (!isMosaicChip(image[i].photcode)) continue; 241 241 242 242 /* set image time range */ … … 262 262 ImageToMosaic[i] = -1; 263 263 264 if (!is GPC1chip(subset[i].photcode)) {264 if (!isMosaicChip(subset[i].photcode)) { 265 265 Nsimple ++; 266 266 continue; … … 346 346 int Nmoschip = 0; 347 347 for (i = 0; i < Nimage; i++) { 348 if (!is GPC1chip(image[i].photcode)) continue;348 if (!isMosaicChip(image[i].photcode)) continue; 349 349 startTimes[Nmoschip] = image[i].tzero; 350 350 Nmoschip ++; … … 409 409 ImageToMosaic[i] = -1; 410 410 411 if (!is GPC1chip(image[i].photcode)) {411 if (!isMosaicChip(image[i].photcode)) { 412 412 Nsimple ++; 413 413 continue; -
trunk/Ohana/src/relphot/src/extra.c
r39926 r41428 1 1 # include "relphot.h" 2 3 int isMosaicChip (int photcode) { 4 5 if (isGPC1chip(photcode)) return TRUE; 6 if (isGPC2chip(photcode)) return TRUE; 7 if (isHSCchip(photcode)) return TRUE; 8 if (isCFHchip(photcode)) return TRUE; // this is megacam 9 return FALSE; 10 } 2 11 3 12 // for now (20140710) I need to identify gpc1 chips explicitly. generalize in the future … … 24 33 if (((photcode > 10400) && (photcode < 10477)) || (photcode == 4500)) return TRUE; // y-band 25 34 if (((photcode > 10500) && (photcode < 10577)) || (photcode == 4600)) return TRUE; // w-band 35 36 return FALSE; 37 } 38 39 // for now, I need to identify gpc2 chips explicitly. generalize in the future 40 int isGPC2chip (int photcode) { 41 42 if ((photcode >= 30000) && (photcode <= 30077)) return TRUE; // g-band 43 if ((photcode >= 30100) && (photcode <= 30177)) return TRUE; // r-band 44 if ((photcode >= 30200) && (photcode <= 30277)) return TRUE; // i-band 45 if ((photcode >= 30300) && (photcode <= 30377)) return TRUE; // z-band 46 if ((photcode >= 30400) && (photcode <= 30477)) return TRUE; // y-band 47 if ((photcode >= 30500) && (photcode <= 30577)) return TRUE; // w-band 26 48 27 49 return FALSE;
Note:
See TracChangeset
for help on using the changeset viewer.
