IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41428 for trunk


Ignore:
Timestamp:
Oct 16, 2020, 7:07:10 AM (6 years ago)
Author:
eugene
Message:

extend mosaic analysis to GPC2, HSC, Megacam

Location:
trunk/Ohana/src/relphot
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relphot/include/relphot.h

    r41404 r41428  
    667667
    668668// in extra.c
     669int isMosaicChip  (int photcode);
     670
    669671int isGPC1chip  (int photcode);
     672int isGPC2chip  (int photcode);
    670673int isGPC1stack (int photcode);
    671674int isGPC1warp  (int photcode);
  • trunk/Ohana/src/relphot/src/ImageOps.c

    r41390 r41428  
    848848    if (image[i].flags & IMAGE_BAD) continue;
    849849
    850     if (FREEZE_IMAGES && isGPC1chip(image[i].photcode)) continue;
     850    if (FREEZE_IMAGES && isMosaicChip(image[i].photcode)) continue;
    851851
    852852    mlist[N] = image[i].McalPSF;
     
    961961  for (i = 0; i < Nimage; i++) {
    962962
    963     if (FREEZE_IMAGES && isGPC1chip(image[i].photcode)) continue;
     963    if (FREEZE_IMAGES && isMosaicChip(image[i].photcode)) continue;
    964964
    965965    Mlist[Nplot] = image[i].McalPSF;
     
    10081008
    10091009  for (i = 0; i < Nimage; i++) {
    1010     if (FREEZE_IMAGES && isGPC1chip(image[i].photcode)) continue;
     1010    if (FREEZE_IMAGES && isMosaicChip(image[i].photcode)) continue;
    10111011
    10121012    bin = image[i].dMcal / 0.00025;
     
    10451045    if (image[i].flags & IMAGE_BAD)  continue;
    10461046
    1047     if (FREEZE_IMAGES && isGPC1chip(image[i].photcode)) continue;
     1047    if (FREEZE_IMAGES && isMosaicChip(image[i].photcode)) continue;
    10481048
    10491049    N = 0;
     
    10941094    if (image[i].flags & IMAGE_BAD)  continue;
    10951095
    1096     if (FREEZE_IMAGES && isGPC1chip(image[i].photcode)) continue;
     1096    if (FREEZE_IMAGES && isMosaicChip(image[i].photcode)) continue;
    10971097
    10981098    list[n] = image[i].McalChiSq;
     
    11271127    if (image[i].flags & IMAGE_BAD)  continue;
    11281128
    1129     if (FREEZE_IMAGES && isGPC1chip(image[i].photcode)) continue;
     1129    if (FREEZE_IMAGES && isMosaicChip(image[i].photcode)) continue;
    11301130
    11311131    list[n] = image[i].McalPSF;
     
    11601160    if (image[i].flags & IMAGE_BAD)  continue;
    11611161
    1162     if (FREEZE_IMAGES && isGPC1chip(image[i].photcode)) continue;
     1162    if (FREEZE_IMAGES && isMosaicChip(image[i].photcode)) continue;
    11631163
    11641164    list[n] = image[i].dMcal;
  • trunk/Ohana/src/relphot/src/MosaicOps.c

    r41390 r41428  
    173173  int Nmoschip = 0;
    174174  for (i = 0; i < Nsubset; i++) {
    175     if (!isGPC1chip(subset[i].photcode)) continue;
     175    if (!isMosaicChip(subset[i].photcode)) continue;
    176176    startTimes[Nmoschip] = subset[i].tzero;
    177177    Nmoschip ++;
     
    238238    }
    239239   
    240     if (!isGPC1chip(image[i].photcode)) continue;
     240    if (!isMosaicChip(image[i].photcode)) continue;
    241241
    242242    /* set image time range */
     
    262262    ImageToMosaic[i] = -1;
    263263
    264     if (!isGPC1chip(subset[i].photcode)) {
     264    if (!isMosaicChip(subset[i].photcode)) {
    265265      Nsimple ++;
    266266      continue;
     
    346346  int Nmoschip = 0;
    347347  for (i = 0; i < Nimage; i++) {
    348     if (!isGPC1chip(image[i].photcode)) continue;
     348    if (!isMosaicChip(image[i].photcode)) continue;
    349349    startTimes[Nmoschip] = image[i].tzero;
    350350    Nmoschip ++;
     
    409409    ImageToMosaic[i] = -1;
    410410
    411     if (!isGPC1chip(image[i].photcode)) {
     411    if (!isMosaicChip(image[i].photcode)) {
    412412      Nsimple ++;
    413413      continue;
  • trunk/Ohana/src/relphot/src/extra.c

    r39926 r41428  
    11# include "relphot.h"
     2
     3int 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}
    211
    312// for now (20140710) I need to identify gpc1 chips explicitly.  generalize in the future
     
    2433  if (((photcode > 10400) && (photcode < 10477)) || (photcode == 4500)) return TRUE; // y-band
    2534  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
     40int 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
    2648
    2749  return FALSE;
Note: See TracChangeset for help on using the changeset viewer.