Continuum Source detection
Detection of continuum sources in dithered frames. Use smoothed spectra to construct a significance map using the sampe procedure employed by the PointSourceDetector
.
ContSourceDetector::ContSourceDetector | ( | const DitherEnvironment & | DE | ) | [inline] |
void ContSourceDetector::detect | ( | ) |
Run the detection process for continuum sources: Compute the significance map, segment it, and output the on-sky geometry of segments passing some significance criteria.
References computeSignificanceMap(), DetectOptions::cont_sigma, DE_, DetectOptions::dump_segments, g, DitherEnvironment::get_detect_parameters(), DetectOptions::read_csigma, ImageSegmenter::segment(), and write_continuum_catalog().
Referenced by main().
void ContSourceDetector::write_continuum_catalog | ( | const list< ImSegment > & | segments, | |
const SignificanceMap & | Sigma | |||
) | const [protected] |
Write a catalog containing the coordinates, significances, and geometric properties (projected on the sky) of continuum sources. Contains the information necessary to perform various kinds of (on-sky) aperture photometry and extraction.
References ImSegment::a_, ImSegment::avgv_, ImSegment::b_, DE_, ImSegment::evalgood(), SignificanceMap::findex_to_l(), SignificanceMap::findex_to_x(), SignificanceMap::findex_to_y(), ImSegment::fwhmxy_, SignificanceMap::get_grid(), get_kron_aperture(), DitherEnvironment::get_output_basename(), ImSegment::icx_, ImSegment::icy_, ImSegment::ir1_, ImSegment::pa_, DitherEnvironment::write_cmd_line(), ImSegment::x1_, ImSegment::x2_, SkySampleLimits::xstep, ImSegment::y1_, ImSegment::y2_, SkySampleLimits::ystep, ImSegment::z1_, and ImSegment::z2_.
Referenced by detect().
SignificanceMap ContSourceDetector::computeSignificanceMap | ( | ) | const [protected] |
Compute the significance map for a set of dithes by testing for the presence of flux on coarse grid on sky and wavelength. The significance map contains the significance for a detection above the null-hypothesis that there's nothing there. Only the total amount of flux is tested.
References PointSource::DetectionData::ap_sigma, DetectOptions::aperture, SignificanceMap::clear(), compute_sigma(), DetectOptions::cont_sigma, PointSource::dd, DE_, PointSource::debug_reselem_list(), DetectOptions::dump_segments, DetectOptions::dump_sigma, ProjectorSet::findResElemsForPointSourceInAperture(), g, DitherEnvironment::get_detect_parameters(), DitherEnvironment::get_grid_limits(), DitherEnvironment::get_output_basename(), DitherEnvironment::get_projector_set(), SkySampleLimits::index_to_l(), SkySampleLimits::index_to_x(), SkySampleLimits::index_to_y(), PointSource::DetectionData::l, SkySampleLimits::lmax, SkySampleLimits::lmin, DetectOptions::lsample, SkySampleLimits::lstep, DetectOptions::lstep_mult, SkySampleLimits::nlstep, SkySampleLimits::nxstep, SkySampleLimits::nystep, P, DetectOptions::psf_size, SignificanceMap::set_sigma(), SignificanceMap::write_significance_map(), SkySampleLimits::x_to_index(), SkySampleLimits::xmax, SkySampleLimits::xmin, PointSource::DetectionData::xs, SkySampleLimits::xstep, SkySampleLimits::ymax, SkySampleLimits::ymin, PointSource::DetectionData::ys, and SkySampleLimits::ystep.
Referenced by detect().
void ContSourceDetector::compute_sigma | ( | PointSource & | data | ) | const [protected] |
compute significance of detection of tested LAE also set ignore flag in res elements that have continuum detections Input:
compute significance of continuum detection at a given location on the sky (and wavelength) by inspecting the smoothed continuum spectra, not the original images.
Input:
References PointSource::DetectionData::ap_sigma, ResElem::apfrac, PooledList< T >::begin(), consider_res_elem(), PointSource::DetectionData::cont, PointSource::DetectionData::dcont, PointSource::dd, DE_, PooledList< T >::end(), PointSource::DetectionData::fb_sigma, VFrame::get_cont(), VFrame::get_econt(), DitherEnvironment::get_vframe(), PointSource::PointSourceModel, ResElem::tf, ResElem::tu, and ResElem::x.
Referenced by computeSignificanceMap().
void ContSourceDetector::get_kron_aperture | ( | const ImSegment & | s, | |
float | minap, | |||
float | k, | |||
float * | ka, | |||
float * | kb | |||
) | const [protected] |
compute the kron-like aperture given the semi-axes, the intensity-weighted radius, a minimum aperture, and a kron factor.
References ImSegment::a_, ImSegment::b_, and ImSegment::ir1_.
Referenced by write_continuum_catalog().
bool ContSourceDetector::consider_res_elem | ( | const ResElem & | res | ) | const [inline, protected] |
check the properties of a resolution element to see if it should be dropped or included in the calculation of sigma, chi2, ...
References ResElem::apfrac, detect_pars_, DetectOptions::flux_thresh, and ResElem::ignore.
Referenced by compute_sigma().
const DitherEnvironment& ContSourceDetector::DE_ [protected] |
Referenced by compute_sigma(), computeSignificanceMap(), detect(), and write_continuum_catalog().
const DetectOptions& ContSourceDetector::detect_pars_ [protected] |
Referenced by consider_res_elem().
const ProjectorSet& ContSourceDetector::P_ [protected] |