punchbowl.levelq.pca#

Functions#

pca_filter(→ None)

Run PCA-based filtering.

check_file(→ bool)

Check if a file should be used.

load_files(→ numpy.ndarray)

Load files.

run_pca_filtering(→ numpy.ndarray)

Run PCA filtering.

find_bodies_in_image(→ list)

Find celestial bodies in image.

Module Contents#

punchbowl.levelq.pca.pca_filter(input_cube: ndcube.NDCube, files_to_fit: list[ndcube.NDCube | collections.abc.Callable | str], n_components: int = 50, med_filt: int = 5) None#

Run PCA-based filtering.

punchbowl.levelq.pca.check_file(mean: float, median: float) bool#

Check if a file should be used.

punchbowl.levelq.pca.load_files(input_cube: ndcube.NDCube, files_to_fit: list[ndcube.NDCube | str | collections.abc.Callable]) numpy.ndarray#

Load files.

punchbowl.levelq.pca.run_pca_filtering(input_cube: ndcube.NDCube, all_files_to_fit: numpy.ndarray, n_components: int, med_filt: int) numpy.ndarray#

Run PCA filtering.

punchbowl.levelq.pca.find_bodies_in_image(frame: str | ndcube.NDCube | astropy.wcs.WCS) list#

Find celestial bodies in image.