IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41631


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

Location:
branches/eam_branches/relphot.20210521/src
Files:
2 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
  • branches/eam_branches/relphot.20210521/src/relphot_images.c

    r41625 r41631  
    166166  // be used.
    167167  freeMosaics ();
     168  freeTGroups ();
    168169  MOSAIC_ZEROPT = FALSE;
    169170  TGROUP_ZEROPT = FALSE;
    170171
     172  // only change the real database files if -update is requested
     173  if (!UPDATE) {
     174    dvo_image_unlock (&db);
     175    freeImages (db.ftable.buffer);
     176    gfits_db_free (&db);
     177    freeGridBins ();
     178    return TRUE;
     179  }
     180 
    171181  reload_images (&db);
    172182
    173   // only change the real database files if -update is requested
    174   if (!UPDATE) exit (0);
    175  
    176183  /* Load catalog data from region files, update Mrel include all data.  In a parallel
    177184     context, this function writes the image parameters as a subset table for the remote
Note: See TracChangeset for help on using the changeset viewer.