hpmcm.match_utils module
- hpmcm.match_utils.heirarchicalProcessCluster(cluster, cell_data, pixel_r2_cut)[source]
Function that is called recursively to split clusters until they consist only of sources within the match radius of the cluster centroid.
Recursively process a cluster and make associated objects
- Return type:
list[ObjectData]- Parameters:
cluster (ClusterData) – Cluster being processed
cell_data (CellData) – Associated cell
pixel_r2_cut (float) – Distance cut for associated, in pixels**2
- Return type:
Objects produced in cluster processing
- hpmcm.match_utils.heirarchicalProcessObject(obj_data, cell_data, pixel_r2_cut, recurse=0)[source]
Recursively process an object and make sub-objects
- Return type:
None- Parameters:
obj_data (ObjectData) – Object being processed
cell_data (CellData) – Associated cell
pixel_r2_cut (float) – Distance cut for associated, in pixels**2
recurse (int) – Current recursion level
Notes
This function will test if the input obj_data is good, i.e., that all the sources lie within the pixel_r2_cut, and will split obj_data into multiple objects if some of the sources lie outside the cut
The new objects will be added to the parent cluster of the original object
- hpmcm.match_utils.heirarchicalSplitObject(obj_data, cell_data, pixel_r2_cut, recurse=0)[source]
Split up a cluster keeping only one source per input catalog
- Return type:
None- Parameters:
obj_data (ObjectData) – Object being processed
cell_data (CellData) – Associated cell
pixel_r2_cut (float) – Distance cut for associated, in pixels**2
recurse (int) – Current recursion level
Notes
This function actually does the splitting of objects