crispy.grid_ridge#

Functions for gridding and processing CRISPy results on reference images.

This module provides tools to map CRISPy ridge detection results onto a reference image grid, clean and refine the skeleton structures, and handle input and output operations. Key functionalities include skeleton gridding, labeling, pruning, and advanced 2D/3D structure manipulation for astrophysical data.

Functions

clean_grid

Process and grid CRISPy coordinates onto a reference image, labeling and cleaning skeleton structures.

clean_grid_ppv

Process and grid CRISPy coordinates in PPV space onto a reference image, labeling and cleaning skeleton structures.

get_2d_length

Calculate the sky-projected length of a 3D skeleton.

grid_skel

Map raw CRISPy results onto a reference image grid and save the gridded results.

grid_skeleton

Map CRISPy skeleton coordinates onto a reference image grid.

label_ridge

Label unconnected ridges using DBSCAN clustering.

make_skeleton

Map CRISPy skeleton coordinates onto a reference grid and clean the skeleton.

read_table

Read filament skeleton data from a file.

uniq_per_pix

Reduce a list of ridge coordinates to one unique point per pixel.

write_skel

Write a gridded image to a FITS file.