Skip to main content

Overview

Name:

Extragalactic Point Sources

Author:

Shikhar Mittal

Paper:

Mittal et al (2024)

Documentation:

epspy.readthedocs.io

Why do you need this code?

Use this code to generate the foregrounds due to extragalactic point sources.

A cosmological global 21-cm signal hides under foregrounds due to galactic and extragalactic emissions. These foregrounds can easily be 4 to 5 orders of magnitude higher than the signal of interest. For a reliable inference, it is important to accurately model these foregrounds. While we have a reasonable understanding of galactic emission (typically fit as a log-log polynomial), we do not understand the extragalactic contributions. This package models the foregrounds due to extragalactic radio sources.

Read more about it in the paper Mittal et al (2024).

Installation and requirements

This package can be installed as

pip install epspy

It is recommended to work on a Python version > 3.8. Packages required are

Quick start

The code is run in two main steps:

  • Assign the point sources flux densities (at a chosen reference frequency) and spectral indices.

  • Then generate the sky maps at desired frequencies of observation.

The following code captures the main functionalities of this package.

from epspy import meps

#Step-1 initialise the object with default settings
obj = meps.eps()

#Step-2 generate the data at the reference frequency
obj.ref_freq()

#Step-3 generate the sky maps at multiple frequencies as well as their sky average
obj.gen_freq()

#Step-4 finally, generate a sky-averaged spectrum vs frequency figure
obj.visual()

Save the above code as (say) eg_script.py and run it as

python eg_script.py

Running the above will generate several files. The terminal messages will guide you to these output files. The most important of all files of your interest will be Tb_nu_map.npy. To visualise your outputs use the function visual(). Refer to the documentation for more details. To learn about the physics of this package see our paper.

The default values in this package have been chosen such that the users can run their scripts on a PC. Since modern PCs have at least 4 cores, for a better performance, one could also run eg_script.py parallelly as

mpirun -np 4 python eg_script.py

In general, and for more realistic flux density ranges and high-resolution maps, it is recommended to use the code on high-performance clusters.

Documentation

For more details on the working of the package and understanding the output files refer to the documentation.

License and citation

The software is free to use on the MIT open-source license. If you use the software then please cite Mittal et al (2024).

If the code is used in a project where the author has provided significant scientific input, guidance on methodology, or assistance with interpretation of results, then co-authorship on resulting publications is expected, following standard academic practice.

Users are encouraged to contact the author when using the code for new scientific applications or major projects.

Acknowledgement

I thank Girish Kulkarni, Dominic Anstey, and Eloy de Lera Acedo for helpful comments and feedback during the development of this code.

Metadata

Release files for epspy 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for epspy 1.0.1
File Size Uploaded Provenance Actions
epspy-1.0.1.tar.gz 22.8 kB Without provenance Details for epspy-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for epspy 1.0.1
File Interpreter ABI Platform Actions
epspy-1.0.1-py3-none-any.whl Python 3 none any Details for epspy-1.0.1-py3-none-any.whl

Total release size: 37.3 kB

Release files / epspy-1.0.1.tar.gz

Download URL epspy-1.0.1.tar.gz
Size 22.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9edd60103f02c59b13a2b8ea18a444f3982612fc32b167d1c64645302ca33c41
BLAKE2b-256 checksum
How to use checksums
70b466788a167e1a14dfc0fadbbc28aee2574f763f7dc0d8ca3d3f38dd61b4c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / epspy-1.0.1-py3-none-any.whl

Download URL epspy-1.0.1-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89e36eee05401f5f1070111b4b7e2d4cf08b1ce1bec8370c5d1494d1a0b3c951
BLAKE2b-256 checksum
How to use checksums
d1470922932221b131eac77279fef6b19992ff2392809a1d8388807d46a06339
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Security for epspy 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page