IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 21, 2021, 10:03:06 AM (5 years ago)
Author:
eugene
Message:

major revision of the photometric flat-field correction / grid analysis; strip out code which uses astrometric information to define the grid

File:
1 edited

Legend:

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

    r41598 r41603  
    4949      clean_mosaics(); // do this on every pass
    5050    }
    51     if ((CurrentLoop >= 18) && (CurrentLoop <= 999)) {
     51    if ((CurrentLoop >= 18) && (CurrentLoop < 21)) {
    5252      // after iterating a few times on the TGroup & Mosaic zero points:
    5353      // * identify the good / bad Mosaics
     
    6060      clean_images(); // do this on every pass
    6161    }
     62    if ((CurrentLoop >= 21) && (CurrentLoop <= 999)) {
     63      // after iterating a few times on the TGroup & Mosaic zero points:
     64      // * identify the good / bad Mosaics
     65      // * fit the chips from the bad Mosaics
     66      TGROUP_ZPT_MODE = TGROUP_ZPT_MODE_GOOD_NIGHT; // stop fitting the bad nights
     67      MOSAIC_ZPT_MODE = MOSAIC_ZPT_MODE_BAD_NIGHT_GOOD_MOSAIC; // only fit good mosaics on bad nights
     68      IMAGE_ZPT_MODE  = IMAGE_ZPT_MODE_BAD_NIGHT_BAD_MOSAIC; // only fit bad mosaics on bad nights
     69      GRID_ZPT_MODE  = GRID_ZPT_MODE_ALL; // only fit bad mosaics on bad nights
     70      clean_tgroups(); // do this on every pass
     71      clean_mosaics(); // do this on every pass
     72      clean_images(); // do this on every pass
     73    }
    6274  }
    6375
     
    6880      MOSAIC_ZPT_MODE = MOSAIC_ZPT_MODE_NONE;
    6981    }
    70     if ((CurrentLoop > 4) && (CurrentLoop <= 999)) {
     82    if ((CurrentLoop > 4) && (CurrentLoop <= 8)) {
    7183      // after iterating a few times on the TGroup zero points:
    7284      // * identify the photometric nights
     
    7587      MOSAIC_ZPT_MODE = MOSAIC_ZPT_MODE_NONE;
    7688      IMAGE_ZPT_MODE  = IMAGE_ZPT_MODE_BAD_NIGHT;
     89      clean_tgroups(); // do this on every pass or just sometimes?
     90    }
     91    if ((CurrentLoop > 8) && (CurrentLoop <= 999)) {
     92      // after iterating a few times on the TGroup zero points:
     93      // * identify the photometric nights
     94      // * fit the images from the non-photometric nights
     95      TGROUP_ZPT_MODE = TGROUP_ZPT_MODE_GOOD_NIGHT; // stop fitting the bad nights
     96      MOSAIC_ZPT_MODE = MOSAIC_ZPT_MODE_NONE;
     97      IMAGE_ZPT_MODE  = IMAGE_ZPT_MODE_BAD_NIGHT;
     98      GRID_ZPT_MODE  = GRID_ZPT_MODE_ALL; // only fit bad mosaics on bad nights
    7799      clean_tgroups(); // do this on every pass or just sometimes?
    78100    }
Note: See TracChangeset for help on using the changeset viewer.