{"id":24867069,"url":"https://github.com/simonsobs/ksz4","last_synced_at":"2025-03-26T20:14:17.022Z","repository":{"id":272602021,"uuid":"917141319","full_name":"simonsobs/ksz4","owner":"simonsobs","description":"Code for estimating the kSZ trispectrum","archived":false,"fork":false,"pushed_at":"2025-02-12T11:02:51.000Z","size":417,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-12T11:37:15.327Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonsobs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-15T12:40:09.000Z","updated_at":"2025-02-12T11:02:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"914ae590-5046-4c44-8840-9079610564d7","html_url":"https://github.com/simonsobs/ksz4","commit_stats":null,"previous_names":["simonsobs/ksz4"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsobs%2Fksz4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsobs%2Fksz4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsobs%2Fksz4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonsobs%2Fksz4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonsobs","download_url":"https://codeload.github.com/simonsobs/ksz4/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245727707,"owners_count":20662556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-01T01:56:34.588Z","updated_at":"2025-03-26T20:14:17.015Z","avatar_url":"https://github.com/simonsobs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ksz4\n\nksz4 provides tools for estimating the kSZ trispectrum from CMB data, as motivated by Smith and Ferraro (https://arxiv.org/abs/1607.01769), Ferraro and Smith (https://arxiv.org/abs/1803.07036). Based on the code used for MacCrann et al. 2024 (https://arxiv.org/abs/2405.01188)\n\nWe use a quadratic estimator approach, i.e. the trispectrum, $C_L^{KK}$, is calculated as the power spectrum of $K = Q(T_1, T_2)$, with $Q(T_1, T_2)$ denoting a quadratic estimator applied to CMB temperature maps $T_1$ and $T_2$. We use the formalism because of the similiarities to CMB lensing estimation, from which we adapt various tools such as Gaussian noise ($N^0$) estimation and bias-hardening. \n\nAs well as \"lensing-hardened\" estimators (see MacCrann et al. 2024), we provide estimators and analytic $N^0$ calcualations for the general case $C_L^{KK} = \u003c Q(T_1,T_2) Q(T_3,T_4) \u003e$, where $T_i$ could be CMB temperature maps with e.g. different noise levels (e.g. because they have different foreground treatments applied). \n\n## Dependencies\n- [healpy](https://healpy.readthedocs.io/en/latest/index.html#)\n- [pixell](https://github.com/simonsobs/pixell)\n- [oprhics](https://github.com/msyriac/orphics)\n- [falafel](https://github.com/simonsobs/falafel/tree/master)\n- [tempura](https://github.com/simonsobs/tempura)\n\n\n## How to use\n\n- The notebook `examples/test_simple` goes through the basic usage - applying the estimator to a simulated map and subtracting $N^0$.\n- The notebooks `examples/test_signal_and_N0.ipynb` and `examples/test_bias-hardening.ipynb` go through more complex usage, more general estimators and bias-hardening respectively. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonsobs%2Fksz4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonsobs%2Fksz4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonsobs%2Fksz4/lists"}