Skip to content

Sdw filter for sources pca map#1646

Merged
samdayweiss merged 2 commits into
masterfrom
sdw_filter_for_sources_PCA_map
May 27, 2026
Merged

Sdw filter for sources pca map#1646
samdayweiss merged 2 commits into
masterfrom
sdw_filter_for_sources_PCA_map

Conversation

@samdayweiss
Copy link
Copy Markdown
Contributor

Allows option to wrap calcualted pca modes and weights to the axis manager when calling filter_for_sources. We want this for the planet map maker so we can map the modes being removed. Also changes the process.py file accordingly to be able to use this new feature in a preprocess configuration file.

Copy link
Copy Markdown
Contributor

@mmccrackan mmccrackan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just one point regarding the docstring.

source_flags: "source_flags"
edge_guard: 10 # Number of samples to make the first and last flags False
trim_samps: 100
pca_wrap: "pca_model" # optional, if provided, the PCA model is wrapped into proc_aman under this name
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is wrapped under aman not proc_aman right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah shoot I totally didn't see this comment, yes it is under aman, but isn't that only after proc_aman gets wrapped into aman?

@samdayweiss samdayweiss merged commit 9956ed0 into master May 27, 2026
5 checks passed
@samdayweiss samdayweiss deleted the sdw_filter_for_sources_PCA_map branch May 27, 2026 15:05
@samdayweiss samdayweiss restored the sdw_filter_for_sources_PCA_map branch May 27, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants