Direct estimator of aperture mass cumulants
There is currently a class for computing higher-order aperture mass and aperture counts statistics using the direct estimator approach.
- MapnEqual: Nth order equal-scale aperture mass statistics
Direct_MapnEqualDirect_MapnEqual.order_maxDirect_MapnEqual.RminDirect_MapnEqual.RmaxDirect_MapnEqual.fieldDirect_MapnEqual.filter_formDirect_MapnEqual.ap_weightsDirect_MapnEqual.__init__()Direct_MapnEqual.process()Direct_MapnEqual._getindex()Direct_MapnEqual._buildargs()Direct_MapnEqual._nzcombis_tot()Direct_MapnEqual._nzcombis_order()Direct_MapnEqual._cumnzcombis_order()Direct_MapnEqual.genzcombi()Direct_MapnEqual.getmap()Direct_MapnEqual.__annotations__Direct_MapnEqual.__module__
- NapnEqual: Nth order equal-scale aperture counts statistics
Direct_NapnEqualDirect_NapnEqual.order_maxDirect_NapnEqual.RminDirect_NapnEqual.RmaxDirect_NapnEqual.fieldDirect_NapnEqual.filter_formDirect_NapnEqual.ap_weightsDirect_NapnEqual.__init__()Direct_NapnEqual.process()Direct_NapnEqual._getindex()Direct_NapnEqual._buildargs()Direct_NapnEqual._nzcombis_tot()Direct_NapnEqual.__annotations__Direct_NapnEqual.__module__Direct_NapnEqual._nzcombis_order()Direct_NapnEqual._cumnzcombis_order()Direct_NapnEqual.genzcombi()Direct_NapnEqual.getnap()
Each of the above classes is a sub-class of the base class DirectEstimator, so they have a number of features in common about how they are constructed. The common features are documented here.
- class orpheus.direct.DirectEstimator(Rmin, Rmax, nbinsr=None, binsize=None, aperture_centers='grid', accuracies=2.0, frac_covs=[0.0, 0.1, 0.3, 0.5, 1.0], dpix_hash=1.0, weight_outer=1.0, weight_inpainted=0.0, method='Discrete', multicountcorr=True, shuffle_pix=1, tree_resos=[0, 0.25, 0.5, 1.0, 2.0], tree_redges=None, rmin_pixsize=20, resoshift_leafs=0, minresoind_leaf=None, maxresoind_leaf=None, nthreads=16)[source]
Class of aperture statistics up to nth order for various arbitrary tracer catalogs. This class contains attributes and methods that can be used across any of its children.
- nbinsr
The number of radial bins for the aperture radii. If set to
Nonethis attribute is inferred from thebinsizeattribute.- Type
int, optional
- binsize
The logarithmic size of the radial bins for the aperture radii. If set to
Nonethis attribute is inferred from thenbinsrattribute.- Type
int, optional
- accuracies
The sampling density of aperture centers.
If
aperture_centersis set to'grid', settingaccuracy == xplaces the apertures on a regular grid with pixel sizeR_ap / x.If
aperture_centersis set to'density', randomly selects as many galaxies as there would be aperture centers on the regular grid.
- Type
int or numpy.ndarray, optional
- frac_covs
The different aperture coverage bins for which the statistics are evaluated. The first bin only includes apertures with
coverage <= frac_covs[0]while the other coverage bins include the intervals betweenfrac_covs[i]andfrac_covs[i+1]. Coverage is defined as the percentage of the aperture area that is not within the survey area.- Type
numpy.ndarray, optional
- dpix_hash
The pixel size of the spatial hash used to search through the catalog.
- Type
float, optional
- weight_outer
The fractional weight applied to galaxies not contained within the interior of the catalog. This only affects catalogs which are overlapping patches of a full-sky catalog.
- Type
float, optional
- weight_inpainted
The fractional weight applied to virtual galaxies inpainted into the catalog. This only affects catalogs which have objects in them that are labeled as inpainted.
- Type
float, optional
- multicountcorr
Flag on whether to subtract multiplets in which the same tracer appears more than once. Defaults to
True.- Type
bool, optional
- shuffle_pix
Choice of how to define centers of the cells in the spatial hash structure. Defaults to
1, i.e. random positioning.- Type
int, optional
- rmin_pixsize
The limiting radial distance relative to the cell of the spatial hash after which one switches to the next hash in the hierarchy. At the moment has no effect. Defaults to
20.- Type
int, optional
- resoshift_leafs
Allows for a difference in how the hierarchical spatial hash is traversed for pixels at the base of the NPCF and pixels at leafs. Positive values indicate that leafs will be evaluated at coarser resolutions than the base. At the moment does have no effect. Defaults to
0.- Type
int, optional
- minresoind_leaf
Sets the smallest resolution in the spatial hash hierarchy which can be used to access tracers at leaf positions. If set to
Noneuses the smallest specified cell size. At the moment has no effect. Defaults toNone.- Type
int, optional
- maxresoind_leafint, optional
Sets the largest resolution in the spatial hash hierarchy which can be used to access tracers at leaf positions. If set to
Noneuses the largest specified cell size. At the moment has no effect. Defaults toNone.- nthreadsint, optional
The number of OpenMP threads used for the reduction procedure. Defaults to
16.
- get_pixelization(cat, R_ap, accuracy, R_crop=None, mgrid=True)[source]
Computes pixel grid on inner region of survey field.
- Parameters
- Returns
grid_x (array of floats) – The grid cell centers for the x-coordinate.
grid_y (array of floats) – The grid cell centers for the y-coordinate.
Notes
——
The grid covers the rectangle between the extremal x/y coordinates of
the galaxy catalogue.
- __getmap(R, cat, dotomo, field, filter_form)
This simply computes an aperture mass map together with weights and coverages