punchbowl.levelq.pca#
Functions#
|
Run PCA-based filtering. |
|
Check if a file should be used. |
|
Load files. |
|
Run PCA filtering. |
|
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.