# Using RealGalLocator to put galaxies (bulge + disk) on the targeted image...
# path2image: /Users/inchiu/GitHub/ComEst/example/outdir_example/bnb.identical.bnb.fits
# psf_dict: {'moffat': {'beta': 3.5, 'fwhm': 0.9}}
# random_seed: 926
# sims_nameroot: realgal_0
# stamp_size_arcsec: 20.0
# mag_dict: {'lo': 20.0, 'hi': 25.0}
# hlr_dict: {'lo': 0.35, 'hi': 0.75}
# fbulge_dict: {'lo': 0.5, 'hi': 0.9}
# q_dict: {'lo': 0.4, 'hi': 1.0}
# pos_ang_dict: {'lo': 0.0, 'hi': 180.0}
# ngals_arcmin2: 15.0
# nsimimages: 5
# ncpu: 3
# Process-14: for file simulated 1 image was done.
# Process-13: for file simulated 0 image was done.
# Process-15: for file simulated 2 image was done.
# Process-13: for file simulated 4 image was done.
# Process-14: for file simulated 3 image was done.
# Total time takes: 878.95004797
# sims image: /Users/inchiu/GitHub/ComEst/example/outdir_example/realgal_0_sims/realgal_0.sims.fits
# sims cat: /Users/inchiu/GitHub/ComEst/example/outdir_example/realgal_0_sims/realgal_0.sims.cat.fits
# Using RealGalLocator to put galaxies (bulge + disk) on the targeted image...
# path2image: /Users/inchiu/GitHub/ComEst/example/outdir_example/bnb.identical.bnb.fits
# psf_dict: {'moffat': {'beta': 3.5, 'fwhm': 0.9}}
# random_seed: 327
# sims_nameroot: realgal_1
# stamp_size_arcsec: 20.0
# mag_dict: {'lo': 20.0, 'hi': 25.0}
# hlr_dict: {'lo': 0.35, 'hi': 0.75}
# fbulge_dict: {'lo': 0.5, 'hi': 0.9}
# q_dict: {'lo': 0.4, 'hi': 1.0}
# pos_ang_dict: {'lo': 0.0, 'hi': 180.0}
# ngals_arcmin2: 15.0
# nsimimages: 5
# ncpu: 3
# Process-16: for file simulated 0 image was done.
# Process-18: for file simulated 2 image was done.
# Process-17: for file simulated 1 image was done.
# Process-16: for file simulated 3 image was done.
# Process-18: for file simulated 4 image was done.
# Total time takes: 745.625920057
# sims image: /Users/inchiu/GitHub/ComEst/example/outdir_example/realgal_1_sims/realgal_1.sims.fits
# sims cat: /Users/inchiu/GitHub/ComEst/example/outdir_example/realgal_1_sims/realgal_1.sims.cat.fits
# Running SE for sims...
# sims_nameroot: realgal_0 [Important: the sims_nameroot has to match the nameroot you create sims.]
# sims_sex_args: -DETECT_MINAREA 5 -DETECT_THRESH 1.5 -ANALYSIS_THRESH 1.5 -DEBLEND_NTHRESH 32 -DEBLEND_MINCONT 0.005 -CLEAN Y -CLEAN_PARAM 1.0 -BACKPHOTO_THICK 24.0 -WEIGHT_TYPE MAP_WEIGHT -WEIGHT_IMAGE /Users/inchiu/GitHub/ComEst/example/DEEPi.cutout.wgt.fits -FILTER_NAME /usr/local/lib/python2.7/site-packages/comest/templates/filters/default.conv -STARNNW_NAME /usr/local/lib/python2.7/site-packages/comest/templates/filters/default.nnw
# path2maskmap: /Users/inchiu/GitHub/ComEst/example/outdir_example/bnb.segmentation.fits
# outputcheckimage: False
# tol_fwhm: 1.0 [the objects are considered a matched pair if within this factor of fwhm.]
# number of the extension in /Users/inchiu/GitHub/ComEst/example/outdir_example/realgal_0_sims/realgal_0.sims.fits : 5
# Running SE on sims ...
# Process-19: for file SE on 0 image was done.
# Process-20: for file SE on 1 image was done.
# Process-21: for file SE on 2 image was done.
# Process-19: for file SE on 3 image was done.
# Process-20: for file SE on 4 image was done.
# Running SE on sims is done...
# Now it reads in the SE catalog and the truth catalog.
# Read in SE output cat is done.
# Start matching.
# Matching is done.
# Outputing.
# Output cats:
# merged true catalog [all true]: /Users/inchiu/GitHub/ComEst/example/outdir_example/realgal_0_sims/realgal_0.sims.sex.merged_true.cat.fits
# matched pairs [matched true] + [matched se]: /Users/inchiu/GitHub/ComEst/example/outdir_example/realgal_0_sims/realgal_0.sims.sex.matched_pairs.cat.fits
# unmatched src [true] - [matched true]: /Users/inchiu/GitHub/ComEst/example/outdir_example/realgal_0_sims/realgal_0.sims.sex.unmatched.cat.fits
# ghost [se] - [matched se]: /Users/inchiu/GitHub/ComEst/example/outdir_example/realgal_0_sims/realgal_0.sims.sex.ghost.cat.fits
# Running SE for sims...
# sims_nameroot: realgal_1 [Important: the sims_nameroot has to match the nameroot you create sims.]
# sims_sex_args: -DETECT_MINAREA 5 -DETECT_THRESH 1.5 -ANALYSIS_THRESH 1.5 -DEBLEND_NTHRESH 32 -DEBLEND_MINCONT 0.005 -CLEAN Y -CLEAN_PARAM 1.0 -BACKPHOTO_THICK 24.0 -WEIGHT_TYPE MAP_WEIGHT -WEIGHT_IMAGE /Users/inchiu/GitHub/ComEst/example/DEEPi.cutout.wgt.fits -FILTER_NAME /usr/local/lib/python2.7/site-packages/comest/templates/filters/default.conv -STARNNW_NAME /usr/local/lib/python2.7/site-packages/comest/templates/filters/default.nnw
# path2maskmap: /Users/inchiu/GitHub/ComEst/example/outdir_example/bnb.segmentation.fits
# outputcheckimage: False
# tol_fwhm: 1.0 [the objects are considered a matched pair if within this factor of fwhm.]
# number of the extension in /Users/inchiu/GitHub/ComEst/example/outdir_example/realgal_1_sims/realgal_1.sims.fits : 5
# Running SE on sims ...
# Process-23: for file SE on 2 image was done.
# Process-24: for file SE on 1 image was done.
# Process-22: for file SE on 0 image was done.
# Process-24: for file SE on 4 image was done.
# Process-23: for file SE on 3 image was done.
# Running SE on sims is done...
# Now it reads in the SE catalog and the truth catalog.
# Read in SE output cat is done.
# Start matching.
# Matching is done.
# Outputing.
# Output cats:
# merged true catalog [all true]: /Users/inchiu/GitHub/ComEst/example/outdir_example/realgal_1_sims/realgal_1.sims.sex.merged_true.cat.fits
# matched pairs [matched true] + [matched se]: /Users/inchiu/GitHub/ComEst/example/outdir_example/realgal_1_sims/realgal_1.sims.sex.matched_pairs.cat.fits
# unmatched src [true] - [matched true]: /Users/inchiu/GitHub/ComEst/example/outdir_example/realgal_1_sims/realgal_1.sims.sex.unmatched.cat.fits
# ghost [se] - [matched se]: /Users/inchiu/GitHub/ComEst/example/outdir_example/realgal_1_sims/realgal_1.sims.sex.ghost.cat.fits
# Using PntSrcLocator to put point sources on the targeted image...
# path2image: /Users/inchiu/GitHub/ComEst/example/outdir_example/bnb.identical.bnb.fits
# psf_dict: {'moffat': {'beta': 3.5, 'fwhm': 0.9}}
# random_seed: 1444
# sims_nameroot: pntsrc_0
# stamp_size_arcsec: 20.0
# mag_dict: {'lo': 20.0, 'hi': 25.0}
# hlr_dict: {'lo': 0.35, 'hi': 0.75}
# fbulge_dict: {'lo': 0.5, 'hi': 0.9}
# q_dict: {'lo': 0.4, 'hi': 1.0}
# pos_ang_dict: {'lo': 0.0, 'hi': 180.0}
# ngals_arcmin2: 15.0
# nsimimages: 5
# ncpu: 3
# Process-27: for file simulated 2 image was done.
# Process-25: for file simulated 0 image was done.
# Process-26: for file simulated 1 image was done.
# Process-25: for file simulated 4 image was done.
# Process-27: for file simulated 3 image was done.
# Total time takes: 3.16406083107
# sims image: /Users/inchiu/GitHub/ComEst/example/outdir_example/pntsrc_0_sims/pntsrc_0.sims.fits
# sims cat: /Users/inchiu/GitHub/ComEst/example/outdir_example/pntsrc_0_sims/pntsrc_0.sims.cat.fits
# Using PntSrcLocator to put point sources on the targeted image...
# path2image: /Users/inchiu/GitHub/ComEst/example/outdir_example/bnb.identical.bnb.fits
# psf_dict: {'moffat': {'beta': 3.5, 'fwhm': 0.9}}
# random_seed: 752
# sims_nameroot: pntsrc_1
# stamp_size_arcsec: 20.0
# mag_dict: {'lo': 20.0, 'hi': 25.0}
# hlr_dict: {'lo': 0.35, 'hi': 0.75}
# fbulge_dict: {'lo': 0.5, 'hi': 0.9}
# q_dict: {'lo': 0.4, 'hi': 1.0}
# pos_ang_dict: {'lo': 0.0, 'hi': 180.0}
# ngals_arcmin2: 15.0
# nsimimages: 5
# ncpu: 3
# Process-29: for file simulated 1 image was done.
# Process-28: for file simulated 0 image was done.
# Process-30: for file simulated 2 image was done.
# Process-29: for file simulated 3 image was done.
# Process-28: for file simulated 4 image was done.
# Total time takes: 3.04968190193
# sims image: /Users/inchiu/GitHub/ComEst/example/outdir_example/pntsrc_1_sims/pntsrc_1.sims.fits
# sims cat: /Users/inchiu/GitHub/ComEst/example/outdir_example/pntsrc_1_sims/pntsrc_1.sims.cat.fits
# Running SE for sims...
# sims_nameroot: pntsrc_0 [Important: the sims_nameroot has to match the nameroot you create sims.]
# sims_sex_args: -DETECT_MINAREA 5 -DETECT_THRESH 1.5 -ANALYSIS_THRESH 1.5 -DEBLEND_NTHRESH 32 -DEBLEND_MINCONT 0.005 -CLEAN Y -CLEAN_PARAM 1.0 -BACKPHOTO_THICK 24.0 -WEIGHT_TYPE MAP_WEIGHT -WEIGHT_IMAGE /Users/inchiu/GitHub/ComEst/example/DEEPi.cutout.wgt.fits -FILTER_NAME /usr/local/lib/python2.7/site-packages/comest/templates/filters/default.conv -STARNNW_NAME /usr/local/lib/python2.7/site-packages/comest/templates/filters/default.nnw
# path2maskmap: /Users/inchiu/GitHub/ComEst/example/outdir_example/bnb.segmentation.fits
# outputcheckimage: False
# tol_fwhm: 1.0 [the objects are considered a matched pair if within this factor of fwhm.]
# number of the extension in /Users/inchiu/GitHub/ComEst/example/outdir_example/pntsrc_0_sims/pntsrc_0.sims.fits : 5
# Running SE on sims ...
# Process-33: for file SE on 2 image was done.
# Process-31: for file SE on 0 image was done.
# Process-32: for file SE on 1 image was done.
# Process-33: for file SE on 3 image was done.
# Process-31: for file SE on 4 image was done.
# Running SE on sims is done...
# Now it reads in the SE catalog and the truth catalog.
# Read in SE output cat is done.
# Start matching.
# Matching is done.
# Outputing.
# Output cats:
# merged true catalog [all true]: /Users/inchiu/GitHub/ComEst/example/outdir_example/pntsrc_0_sims/pntsrc_0.sims.sex.merged_true.cat.fits
# matched pairs [matched true] + [matched se]: /Users/inchiu/GitHub/ComEst/example/outdir_example/pntsrc_0_sims/pntsrc_0.sims.sex.matched_pairs.cat.fits
# unmatched src [true] - [matched true]: /Users/inchiu/GitHub/ComEst/example/outdir_example/pntsrc_0_sims/pntsrc_0.sims.sex.unmatched.cat.fits
# ghost [se] - [matched se]: /Users/inchiu/GitHub/ComEst/example/outdir_example/pntsrc_0_sims/pntsrc_0.sims.sex.ghost.cat.fits
# Running SE for sims...
# sims_nameroot: pntsrc_1 [Important: the sims_nameroot has to match the nameroot you create sims.]
# sims_sex_args: -DETECT_MINAREA 5 -DETECT_THRESH 1.5 -ANALYSIS_THRESH 1.5 -DEBLEND_NTHRESH 32 -DEBLEND_MINCONT 0.005 -CLEAN Y -CLEAN_PARAM 1.0 -BACKPHOTO_THICK 24.0 -WEIGHT_TYPE MAP_WEIGHT -WEIGHT_IMAGE /Users/inchiu/GitHub/ComEst/example/DEEPi.cutout.wgt.fits -FILTER_NAME /usr/local/lib/python2.7/site-packages/comest/templates/filters/default.conv -STARNNW_NAME /usr/local/lib/python2.7/site-packages/comest/templates/filters/default.nnw
# path2maskmap: /Users/inchiu/GitHub/ComEst/example/outdir_example/bnb.segmentation.fits
# outputcheckimage: False
# tol_fwhm: 1.0 [the objects are considered a matched pair if within this factor of fwhm.]
# number of the extension in /Users/inchiu/GitHub/ComEst/example/outdir_example/pntsrc_1_sims/pntsrc_1.sims.fits : 5
# Running SE on sims ...
# Process-35: for file SE on 1 image was done.
# Process-36: for file SE on 2 image was done.
# Process-34: for file SE on 0 image was done.
# Process-35: for file SE on 3 image was done.
# Process-36: for file SE on 4 image was done.
# Running SE on sims is done...
# Now it reads in the SE catalog and the truth catalog.
# Read in SE output cat is done.
# Start matching.
# Matching is done.
# Outputing.
# Output cats:
# merged true catalog [all true]: /Users/inchiu/GitHub/ComEst/example/outdir_example/pntsrc_1_sims/pntsrc_1.sims.sex.merged_true.cat.fits
# matched pairs [matched true] + [matched se]: /Users/inchiu/GitHub/ComEst/example/outdir_example/pntsrc_1_sims/pntsrc_1.sims.sex.matched_pairs.cat.fits
# unmatched src [true] - [matched true]: /Users/inchiu/GitHub/ComEst/example/outdir_example/pntsrc_1_sims/pntsrc_1.sims.sex.unmatched.cat.fits
# ghost [se] - [matched se]: /Users/inchiu/GitHub/ComEst/example/outdir_example/pntsrc_1_sims/pntsrc_1.sims.sex.ghost.cat.fits