IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36936


Ignore:
Timestamp:
Jun 22, 2014, 7:41:56 PM (12 years ago)
Author:
eugene
Message:

FREEZE_IMAGE should only skip gpc1 camera chips (not skychips); make sure mean mags only use gpc1 chips

Location:
branches/eam_branches/ipp-20140610/Ohana/src/relphot/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140610/Ohana/src/relphot/src/ImageOps.c

    r36910 r36936  
    531531  liststats_setmode (&stats, STATMODE);
    532532
    533   if (FREEZE_IMAGES) return;
     533  // FREEZE_IMAGES only applies to mosaic data (eg, gpc1)
     534  // skip this function if photcode is gpc1 and FREEZE_IMAGES
     535  // otherwise, allow image to be calibrated
     536  // if (FREEZE_IMAGES) return;
    534537
    535538  fprintf (stderr, "limiting negative clouds to %f\n", CLOUD_TOLERANCE);
     
    561564      if (!bad) continue;
    562565    }     
     566
     567    int isGPC1cam = ((image[i].photcode >= 10000) && (image[i].photcode <= 10500));
     568    if (FREEZE_IMAGES && isGPC1cam) continue;
    563569
    564570    // UBERCAL image: if this is an ubercal image, set minUbercalDist to 0:
  • branches/eam_branches/ipp-20140610/Ohana/src/relphot/src/setMrelCatalog.c

    r36917 r36936  
    161161      if ((measureT[k].photcode >= 10000) && (measureT[k].photcode <= 10500)) {
    162162        NexpPS1 ++;
     163      }
     164
     165      // SKIP gpc1 stack data
     166      if ((measure[k].photcode >= 11000) && (measure[k].photcode <= 11500)) {
     167        continue;
     168      }
     169
     170      // SKIP gpc1 forced-warp data
     171      if ((measure[k].photcode >= 12000) && (measure[k].photcode <= 12500)) {
     172        continue;
    163173      }
    164174
     
    212222          }
    213223          havePS1 = TRUE;
    214         }
    215 
    216         // SKIP gpc1 stack data
    217         if ((measure[k].photcode >= 11000) && (measure[k].photcode <= 11500)) {
    218           continue;
    219         }
    220 
    221         // SKIP gpc1 forced-warp data
    222         if ((measure[k].photcode >= 12000) && (measure[k].photcode <= 12500)) {
    223           continue;
    224224        }
    225225
Note: See TracChangeset for help on using the changeset viewer.