Changeset 40262
- Timestamp:
- Dec 8, 2017, 11:02:39 AM (9 years ago)
- Location:
- branches/eam_branches/ohana.20170822/src/relphot
- Files:
-
- 7 edited
-
include/relphot.h (modified) (1 diff)
-
src/StarOps.c (modified) (2 diffs)
-
src/args.c (modified) (2 diffs)
-
src/launch_region_hosts.c (modified) (1 diff)
-
src/reload_catalogs.c (modified) (1 diff)
-
src/relphot_objects.c (modified) (1 diff)
-
src/setMrelCatalog.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20170822/src/relphot/include/relphot.h
r40259 r40262 338 338 int ApplyOffsets; 339 339 int SyntheticPhotometry; 340 341 int USE_MCAL_PSF_FOR_STACK_APER; 340 342 341 343 char *PhotcodeList; -
branches/eam_branches/ohana.20170822/src/relphot/src/StarOps.c
r40245 r40262 496 496 497 497 // we need to use McalAPER for stacks (and only stacks) 498 int isStack =isGPC1stack(catalog[i].measureT[m].photcode);498 int useStackAper = !USE_MCAL_PSF_FOR_STACK_APER && isGPC1stack(catalog[i].measureT[m].photcode); 499 499 500 500 // note that measurements for which the image is not selected will not be modified … … 503 503 // set the output calibration 504 504 catalog[i].measure[m].McalPSF = McalPSF + Mmos + Mgrid; 505 catalog[i].measure[m].McalAPER = isStack? McalAPER + Mmos + Mgrid : McalPSF + Mmos + Mgrid;505 catalog[i].measure[m].McalAPER = useStackAper ? McalAPER + Mmos + Mgrid : McalPSF + Mmos + Mgrid; 506 506 507 507 if (catalog[i].measureT[m].dbFlags & ID_MEAS_PHOTOM_UBERCAL) { -
branches/eam_branches/ohana.20170822/src/relphot/src/args.c
r39926 r40262 325 325 remove_argument (N, &argc, argv); 326 326 CALIBRATE_STACKS_AND_WARPS = TRUE; 327 } 328 USE_MCAL_PSF_FOR_STACK_APER = FALSE; 329 if ((N = get_argument (argc, argv, "-use-mcal-psf-for-stack-aper"))) { 330 remove_argument (N, &argc, argv); 331 USE_MCAL_PSF_FOR_STACK_APER = TRUE; 327 332 } 328 333 … … 696 701 } 697 702 703 USE_MCAL_PSF_FOR_STACK_APER = FALSE; 704 if ((N = get_argument (argc, argv, "-use-mcal-psf-for-stack-aper"))) { 705 remove_argument (N, &argc, argv); 706 USE_MCAL_PSF_FOR_STACK_APER = TRUE; 707 } 708 698 709 /* define time */ 699 710 TimeSelect = FALSE; -
branches/eam_branches/ohana.20170822/src/relphot/src/launch_region_hosts.c
r40246 r40262 74 74 if (FREEZE_MOSAICS) strextend (&command, "-mosfreeze"); 75 75 if (CALIBRATE_STACKS_AND_WARPS) strextend (&command, "-only-stacks-and-warps"); 76 if (USE_MCAL_PSF_FOR_STACK_APER) { strextend (&command, "-use-mcal-psf-for-stack-aper"); } 76 77 77 78 if (PARALLEL) strextend (&command, "-parallel"); -
branches/eam_branches/ohana.20170822/src/relphot/src/reload_catalogs.c
r39926 r40262 247 247 if (SYNTH_ZERO_POINTS) { strextend (&command, "-synthphot-zpts %s", SYNTH_ZERO_POINTS); } 248 248 if (USE_BASIC_CHECK) { strextend (&command, "-basic-image-search"); } 249 if (USE_MCAL_PSF_FOR_STACK_APER) { strextend (&command, "-use-mcal-psf-for-stack-aper"); } 249 250 250 251 if (!(STAGES & STAGE_CHIP)) { strextend (&command, "-skip-chip"); } -
branches/eam_branches/ohana.20170822/src/relphot/src/relphot_objects.c
r39926 r40262 251 251 if (USE_BASIC_CHECK) { strextend (&command, "-basic-image-search"); } 252 252 if (USE_ALL_IMAGES) { strextend (&command, "-use-all-images"); } 253 if (USE_MCAL_PSF_FOR_STACK_APER) { strextend (&command, "-use-mcal-psf-for-stack-aper"); } 253 254 254 255 if (!(STAGES & STAGE_CHIP)) { strextend (&command, "-skip-chip"); } -
branches/eam_branches/ohana.20170822/src/relphot/src/setMrelCatalog.c
r40249 r40262 705 705 } else { 706 706 McalPSF = getMcal (meas, cat, MAG_CLASS_PSF); 707 McalAPER = getMcal (meas, cat, MAG_CLASS_KRON);707 McalAPER = USE_MCAL_PSF_FOR_STACK_APER ? getMcal (meas, cat, MAG_CLASS_PSF) : getMcal (meas, cat, MAG_CLASS_KRON); 708 708 Mmos = getMmos (meas, cat); 709 709 Mgrid = getMgrid (meas, cat); … … 768 768 769 769 // record the measurement which gave the best value 770 secfilt[Nsec].stackBestOff = (bestEntryMax >-1) ? -1 : bestEntryMax + measureOffset;770 secfilt[Nsec].stackBestOff = (bestEntryMax == -1) ? -1 : bestEntryMax + measureOffset; 771 771 myAssert (secfilt[Nsec].stackBestOff <= catalog[0].Nmeasure, "stackBestOff out of range"); 772 772
Note:
See TracChangeset
for help on using the changeset viewer.
