sp_validation.survey¶
SURVEY.
- Description:
This file contains methods to deal with the survey geometry. Some methods are UNIONS-/CFIS-specific.
- Author:
Martin Kilbinger <martin.kilbinger@cea.fr>
- get_area(dd, area_tile, verbose=False)[source]¶
Get area.
Return total survey area. This ignores masking as well as overlaps between tiles, and provides therefore an overestimation. of the actual observed area.
- Parameters:
dd (numpy.ndarray) – galaxy catalog
area_tile (float) – area per tile in square degree
verbose (bool, optional) – verbose output if True, default is False
- Returns:
float – area in square degrees
float – area in square arc minutes
list of float – tile IDs
- missing_tiles(tile_IDs, path_tile_ID, path_found_ID, path_missing_ID, verbose=False)[source]¶
Missing tiles.
Compute completeness, and identify missing tiles.
- Parameters:
- Returns:
int – number of tiles found, -1 if ID file path not found
int – number of tiles missing, -1 if ID file path not found
- write_tile_id_gal_counts(detection_IDs, galaxy_IDs, shape_IDs, fname)[source]¶
Write Tile ID Galaxy Counts.
Write number of galaxies per tile ID to file.
- area_from_coords(ra, dec, nside)[source]¶
Survey area from galaxy coordinates via HEALPix pixel counting.
Bins the galaxy positions onto a HEALPix grid at resolution
nsideand sums the area of every occupied pixel. This ignores partial-pixel coverage and so overestimates the true observed area, but needs no external mask.
- n_eff_density(w, area_deg2)[source]¶
Effective galaxy number density per square arcminute.
Uses the weighted definition
n_eff = (Σw)² / (A · Σw²)whereAis the survey area in square arcminutes (area_deg2 · 3600). Returns0.0whenΣw² == 0to avoid division by zero.
- ellipticity_dispersion(e1, e2, w)[source]¶
Per-component weighted ellipticity dispersion.
Computes
sqrt(0.5 · (⟨e1²⟩ + ⟨e2²⟩))where each component average is weighted byw². This is the per-component RMS convention; it differs by a factor√2from the summed-componentsigma_ereturned byeffective_survey_stats(). Keep the two conventions distinct.
- additive_bias(e1, e2, w, R)[source]¶
Weighted additive-bias estimates
(c1, c2).Returns the weighted mean of the response-corrected ellipticities
⟨e1 / R⟩and⟨e2 / R⟩, weighted byw.- Parameters:
- Returns:
(c1, c2)additive-bias estimates.- Return type:
- effective_survey_stats(e1, e2, w, area_deg2)[source]¶
Effective survey statistics for a shear catalogue.
Bundles the area-dependent number density and the summed-component shape noise. Here
sigma_e = sqrt(Σ[w²(e1² + e2²)] / Σw²)sums over both components (no0.5factor); this is distinct from the per-componentellipticity_dispersion(), differing by a factor√2.