smpy.mapping_methods.aperture_mass.aperture_mass.ApertureMassMapper¶
- class smpy.mapping_methods.aperture_mass.aperture_mass.ApertureMassMapper(config)[source]¶
Implementation of aperture mass mapping using configurable filters.
This class implements the aperture mass mapping technique using various optimal filter functions. The method applies convolution with compact support filters to create localized mass reconstructions from shear data.
Notes
The aperture mass method uses filter functions Q(r) to compute: Map_E = conv(-g1, Q*cos(2φ)) + conv(-g2, Q*sin(2φ)) Map_B = conv(g1, Q*sin(2φ)) + conv(-g2, Q*cos(2φ)) where φ is the polar angle and Q(r) is the chosen filter function.
- __init__(config)¶
Initialize mass mapper with configuration.
- Parameters:
config (dict) – Configuration dictionary with nested structure containing ‘general’, ‘methods’, and ‘plotting’ sections.
Methods
__init__(config)Initialize mass mapper with configuration.
create_maps(g1_grid, g2_grid)Create aperture mass maps.
run(g1_grid, g2_grid, scaled_boundaries, ...)Run complete mass mapping pipeline.
Attributes
Name identifier for the aperture mass method.
- property name¶
Name identifier for the aperture mass method.
- Returns:
method_name – String identifier ‘aperture_mass’.
- Return type:
str
- create_maps(g1_grid, g2_grid)[source]¶
Create aperture mass maps.
Generate aperture mass maps from shear grids using the configured filter function and scale parameters.
- Parameters:
g1_grid (numpy.ndarray) – First shear component grid.
g2_grid (numpy.ndarray) – Second shear component grid.
- Returns:
map_e (numpy.ndarray) – E-mode aperture mass map.
map_b (numpy.ndarray) – B-mode aperture mass map.
- Raises:
KeyError – If required filter configuration parameters are missing.
Notes
This method validates the configuration and delegates to _compute_aperture_mass for the actual convolution computation.