- Timestamp:
- Nov 1, 2012, 10:22:47 AM (14 years ago)
- Location:
- trunk/Ohana/src/relphot
- Files:
-
- 7 edited
-
include/relphot.h (modified) (1 diff)
-
src/args.c (modified) (2 diffs)
-
src/load_catalogs.c (modified) (2 diffs)
-
src/reload_catalogs.c (modified) (2 diffs)
-
src/relphot_objects.c (modified) (1 diff)
-
src/select_images.c (modified) (1 diff)
-
src/setMrelFinal.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relphot/include/relphot.h
r34260 r34642 137 137 int NGRID; 138 138 int RESET; 139 int RESET_ZEROPTS; 139 140 int UPDATE; 140 141 int SAVE_IMAGE_UPDATES; -
trunk/Ohana/src/relphot/src/args.c
r34260 r34642 163 163 } 164 164 165 RESET_ZEROPTS = FALSE; 166 if ((N = get_argument (argc, argv, "-reset-zpts"))) { 167 remove_argument (N, &argc, argv); 168 RESET_ZEROPTS = TRUE; 169 } 170 165 171 UPDATE = FALSE; 166 172 if ((N = get_argument (argc, argv, "-update"))) { … … 418 424 remove_argument (N, &argc, argv); 419 425 RESET = TRUE; 426 } 427 428 RESET_ZEROPTS = FALSE; 429 if ((N = get_argument (argc, argv, "-reset-zpts"))) { 430 remove_argument (N, &argc, argv); 431 RESET_ZEROPTS = TRUE; 420 432 } 421 433 -
trunk/Ohana/src/relphot/src/load_catalogs.c
r34405 r34642 134 134 // KEEP_UBERCAL 135 135 // RESET (-reset) 136 // RESET_ZEROPTS (-reset-zpts) 136 137 // TimeSelect -time 137 138 // DophotSelect … … 150 151 if (VERBOSE2) { snprintf (tmpline, 1024, "%s -vv", command); strcpy (command, tmpline); } 151 152 if (RESET) { snprintf (tmpline, 1024, "%s -reset", command); strcpy (command, tmpline); } 153 if (RESET_ZEROPTS) { snprintf (tmpline, 1024, "%s -reset-zpts", command); strcpy (command, tmpline); } 152 154 if (!KEEP_UBERCAL) { snprintf (tmpline, 1024, "%s -reset-ubercal", command); strcpy (command, tmpline); } 153 155 if (DophotSelect) { snprintf (tmpline, 1024, "%s -dophot %d", command, DophotValue); strcpy (command, tmpline); } -
trunk/Ohana/src/relphot/src/reload_catalogs.c
r34088 r34642 172 172 // VERBOSE, VERBOSE2 173 173 // RESET 174 // RESET_ZEROPTS 174 175 // TimeSelect 175 176 // AreaSelect … … 182 183 if (VERBOSE2) { snprintf (tmpline, 1024, "%s -vv", command); strcpy (command, tmpline); } 183 184 if (RESET) { snprintf (tmpline, 1024, "%s -reset", command); strcpy (command, tmpline); } 185 if (RESET_ZEROPTS) { snprintf (tmpline, 1024, "%s -reset-zpts", command); strcpy (command, tmpline); } 184 186 if (UPDATE) { snprintf (tmpline, 1024, "%s -update", command); strcpy (command, tmpline); } 185 187 if (!KEEP_UBERCAL) { snprintf (tmpline, 1024, "%s -reset-ubercal", command); strcpy (command, tmpline); } -
trunk/Ohana/src/relphot/src/relphot_objects.c
r34429 r34642 162 162 if (VERBOSE2) { snprintf (tmpline, 1024, "%s -vv", command); strcpy (command, tmpline); } 163 163 if (RESET) { snprintf (tmpline, 1024, "%s -reset", command); strcpy (command, tmpline); } 164 if (RESET_ZEROPTS) { snprintf (tmpline, 1024, "%s -reset-zpts", command); strcpy (command, tmpline); } 164 165 if (UPDATE) { snprintf (tmpline, 1024, "%s -update", command); strcpy (command, tmpline); } 165 166 if (!KEEP_UBERCAL) { snprintf (tmpline, 1024, "%s -reset-ubercal", command); strcpy (command, tmpline); } -
trunk/Ohana/src/relphot/src/select_images.c
r34088 r34642 256 256 } 257 257 if (RESET) { 258 if (!KEEP_UBERCAL || !(image[nimage].flags & ID_IMAGE_PHOTOM_UBERCAL)) { 259 image[nimage].Mcal = 0.0; 260 image[nimage].dMcal = NAN; 261 image[nimage].flags &= ~ID_IMAGE_PHOTOM_UBERCAL; 258 if (RESET_ZEROPTS) { 259 if (!KEEP_UBERCAL || !(image[nimage].flags & ID_IMAGE_PHOTOM_UBERCAL)) { 260 image[nimage].Mcal = 0.0; 261 image[nimage].dMcal = NAN; 262 image[nimage].flags &= ~ID_IMAGE_PHOTOM_UBERCAL; 263 } 262 264 } 263 265 image[nimage].flags &= ~ID_IMAGE_PHOTOM_POOR; -
trunk/Ohana/src/relphot/src/setMrelFinal.c
r34429 r34642 75 75 } 76 76 } else { 77 if ( getImageEntry (m, 0) >= 0) {77 if (RESET_ZEROPTS && (getImageEntry (m, 0) >= 0)) { 78 78 catalog[0].measure[m].Mcal = 0.0; 79 79 }
Note:
See TracChangeset
for help on using the changeset viewer.
