IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 27, 2021, 11:41:52 AM (5 years ago)
Author:
eugene
Message:

consolidate reset operations for clarity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/relphot.20210521/src/load_images.c

    r41555 r41620  
    5757  // reset image values as needed.  always allow 'few' images to succeed, if possible (new
    5858  // images / detections may have been added
    59   for (off_t i = 0; i < Nsubset; i++) {
    60     // reset these two regardless (we will re-determine)
    61     subset[i].flags &= ~(ID_IMAGE_PHOTOM_NOCAL | ID_IMAGE_PHOTOM_POOR | ID_IMAGE_PHOTOM_SKIP | ID_IMAGE_PHOTOM_FEW);
    62     if (RESET) {
    63       if (RESET_ZEROPTS) {
    64         if (!KEEP_UBERCAL || !(subset[i].flags & ID_IMAGE_PHOTOM_UBERCAL)) {
    65           subset[i].McalPSF  = 0.0;
    66           subset[i].McalAPER = 0.0;
    67           subset[i].dMcal    = NAN;
    68           subset[i].flags   &= ~ID_IMAGE_PHOTOM_UBERCAL;
    69         }
    70       }
    71       subset[i].flags &= ~(ID_IMAGE_MOSAIC_POOR | ID_IMAGE_NIGHT_POOR);
    72       subset[i].flags &= ~(ID_IMAGE_IMAGE_PHOTCAL | ID_IMAGE_MOSAIC_PHOTCAL | ID_IMAGE_TGROUP_PHOTCAL);
    73       subset[i].ubercalDist = 1000;
    74     }
    75   }
     59  ResetImages (subset, Nsubset);
    7660
    7761  // XXX consider allowing relphot to skip the AstroMap load (do we need precise astrometry here?)
     
    11599  return TRUE;
    116100}
     101
     102// This function re-creates the image subset array using the array of LineNumbers saved
     103// initially by load_images.  This function is only called by relphot_images.c after the
     104// loops have been completed (if any).  I am not certain this function is doing anything
     105// at all : the values in the image subset are copied back to the master table in
     106// save_images_updates() so the values copied from the master to the subset should already
     107// be there.
    117108
    118109int reload_images (FITS_DB *db) {
Note: See TracChangeset for help on using the changeset viewer.