Skip to content

API - Frame Normalized PCA

The frame_normalized_pca.py file contains helper methods for doing FN-PCA as part of or outside of the Erebus pipeline.

frame_normalized_pca

perform_fn_pca_on_aperture(aperture_frames: np.ndarray) -> Tuple[np.ndarray, np.ndarray]

Performs Frame-Normalized PCA on a photometric time series data set. Expects the star to be centered on each frame. Expects each frame to already be normalized and background subtracted, with pixels outside the aperture set to 0.

Returns the eigenvalue-eigenimage pairs and ratios of explained variance.

perform_fnpca_on_full_frame(frames: np.ndarray, radius: int, annulus_start: int, annulus_end: int) -> Tuple[np.ndarray, np.ndarray]

Performs Frame-Normalized PCA on a photometric time series data set. Expects the star to be centered on each frame.

Returns the eigenvalue-eigenimage pairs and ratios of explained variance.