IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 2, 2021, 2:44:04 PM (5 years ago)
Author:
eugene
Message:

on non-update analysis, free and exit normally; update the levels for non-tgroup analysis

File:
1 edited

Legend:

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

    r41625 r41631  
    104104
    105105  if (!TGROUP_ZEROPT && MOSAIC_ZEROPT) {
    106     if (CurrentLoop <= 4) {
     106    if (CurrentLoop < 6) {
    107107      TGROUP_ZPT_MODE = TGROUP_ZPT_MODE_NONE;
    108108      MOSAIC_ZPT_MODE = MOSAIC_ZPT_MODE_ALL;
    109109      IMAGE_ZPT_MODE  = IMAGE_ZPT_MODE_NONE;
    110110    }
    111     if ((CurrentLoop > 4) && (CurrentLoop <= 999)) {
     111    if ((CurrentLoop >= 6) && (CurrentLoop < 12)) {
    112112      // after iterating a few times on the Mosaic zero points:
    113113      // * identify the good / bad mosaics
     
    118118      clean_mosaics(); // do this on every pass or just sometimes?
    119119    }
     120    if ((CurrentLoop >= 12) && (CurrentLoop < 18)) {
     121      // after iterating a few times on the Mosaic zero points:
     122      // * identify the good / bad mosaics
     123      // * fit the images from the bad mosaics
     124      TGROUP_ZPT_MODE = TGROUP_ZPT_MODE_NONE; // stop fitting the bad nights
     125      MOSAIC_ZPT_MODE = MOSAIC_ZPT_MODE_GOOD_MOSAIC;
     126      IMAGE_ZPT_MODE  = IMAGE_ZPT_MODE_BAD_MOSAIC;
     127      clean_mosaics(); // do this on every pass or just sometimes?
     128      clean_images(); // do this on every pass
     129      clean_stars(catalog, Ncatalog); // do this on every pass
     130    }
     131    if ((CurrentLoop >= 18) && (CurrentLoop < 999)) {
     132      // after iterating a few times on the Mosaic zero points:
     133      // * identify the good / bad mosaics
     134      // * fit the images from the bad mosaics
     135      TGROUP_ZPT_MODE = TGROUP_ZPT_MODE_NONE; // stop fitting the bad nights
     136      MOSAIC_ZPT_MODE = MOSAIC_ZPT_MODE_GOOD_MOSAIC;
     137      IMAGE_ZPT_MODE  = IMAGE_ZPT_MODE_BAD_MOSAIC;
     138      GRID_ZPT_MODE  = GRID_ZPT_MODE_ALL; // only fit bad mosaics on bad nights
     139      clean_mosaics(); // do this on every pass or just sometimes?
     140      clean_images(); // do this on every pass
     141      clean_stars(catalog, Ncatalog); // do this on every pass
     142    }
    120143  }
    121144
Note: See TracChangeset for help on using the changeset viewer.