Changeset 41631
- Timestamp:
- Jun 2, 2021, 2:44:04 PM (5 years ago)
- Location:
- branches/eam_branches/relphot.20210521/src
- Files:
-
- 2 edited
-
ZeroPointModes.c (modified) (2 diffs)
-
relphot_images.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/relphot.20210521/src/ZeroPointModes.c
r41625 r41631 104 104 105 105 if (!TGROUP_ZEROPT && MOSAIC_ZEROPT) { 106 if (CurrentLoop < = 4) {106 if (CurrentLoop < 6) { 107 107 TGROUP_ZPT_MODE = TGROUP_ZPT_MODE_NONE; 108 108 MOSAIC_ZPT_MODE = MOSAIC_ZPT_MODE_ALL; 109 109 IMAGE_ZPT_MODE = IMAGE_ZPT_MODE_NONE; 110 110 } 111 if ((CurrentLoop > 4) && (CurrentLoop <= 999)) {111 if ((CurrentLoop >= 6) && (CurrentLoop < 12)) { 112 112 // after iterating a few times on the Mosaic zero points: 113 113 // * identify the good / bad mosaics … … 118 118 clean_mosaics(); // do this on every pass or just sometimes? 119 119 } 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 } 120 143 } 121 144 -
branches/eam_branches/relphot.20210521/src/relphot_images.c
r41625 r41631 166 166 // be used. 167 167 freeMosaics (); 168 freeTGroups (); 168 169 MOSAIC_ZEROPT = FALSE; 169 170 TGROUP_ZEROPT = FALSE; 170 171 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 171 181 reload_images (&db); 172 182 173 // only change the real database files if -update is requested174 if (!UPDATE) exit (0);175 176 183 /* Load catalog data from region files, update Mrel include all data. In a parallel 177 184 context, this function writes the image parameters as a subset table for the remote
Note:
See TracChangeset
for help on using the changeset viewer.
