Classes
FiberCollisions (ra, dec[, collision_radius, …]) |
Run an angular FOF algorithm to determine fiber collision groups from an input catalog, and then assign fibers such that the maximum amount of object receive a fiber. |
nbodykit.algorithms.fibercollisions.
FiberCollisions
(ra, dec, collision_radius=0.017222222222222226, seed=None, degrees=True, comm=None)[source]¶Run an angular FOF algorithm to determine fiber collision groups from an input catalog, and then assign fibers such that the maximum amount of object receive a fiber.
This amounts to determining the following population of objects:
Results are computed when the object is inititalized. See the documenation
of run()
for the attributes storing the results.
Parameters: |
|
---|
References
Methods
run () |
Run the fiber assignment algorithm. |
run
()[source]¶Run the fiber assignment algorithm. This attaches the following attribute to the object:
Note
The labels
attribute has a 1-to-1 correspondence with
the rows in the input source.
labels
¶ArrayCatalog
; size: size
– a CatalogSource that has the following columns:
source
, else it is set to -1