Astronomy Spectroscopic Analysis Toolkit
This repository contains a collection of Python functions for analyzing astronomical data. The functions provided here focus on spectral analysis and calculations related to galaxy properties. Below is an overview of the functionalities provided by this toolkit.
Features
Spectrum Analysis
- Read Spectrum: Read 1D spectra from FITS files using
specutils. - Load 2D Spectrum: Load 2D spectra from FITS files.
- Deredshift Spectrum: De-redshift the spectrum to its rest frame.
- Create Rest-frame Spectrum: Generate a rest-frame spectrum.
- Measure UV Slope (Beta): Calculate the UV slope beta of the spectrum.
- Measure UV Slope with Bootstrapping: Estimate UV slope beta with bootstrapping for error estimation.
- Measure Equivalent Width (EW): Compute the equivalent width of a spectral line.
Photometric Analysis
- Calculate 1500 Magnitude: Determine the 1500 magnitude of a spectrum given its redshift.
Nebular Line Analysis
- Calculate Intrinsic Ratios: Compute intrinsic ratios between H lines.
- Calculate Reddening Curves: Determine reddening curves at wavelengths of interest, assuming the Small Magellanic Cloud (SMC) extinction law.
- Calculate E(B-V): Estimate the reddening (E(B-V)) based on observed H line fluxes.
- Calculate Lyman-alpha Escape Fraction: Determine the Lyman-alpha escape fraction.
- Calculate Ionizing Photon Production Efficiency (xi_ion): Compute the ionizing photon production efficiency.
Requirements
- Python 3.x
- NumPy
- Matplotlib
- Astropy
- Specutils
- MPDAF
- PyNeb
- Dust_Extinction
Installation
- Clone the repository:
git clone https://github.com/yourusername/astronomy-analysis-toolkit.git
- Install the required dependencies:
pip install -r requirements.txt
Usage
Each Python file contains a set of functions related to a specific aspect of astronomy analysis. You can import these functions into your Python environment or scripts as needed. Make sure to provide proper inputs to each function as per the documentation provided.
Contributing
Contributions to this toolkit are welcome! If you encounter any bugs or have suggestions for new features, please open an issue or submit a pull request.
Metadata
Release files for measure-spec 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| measure_spec-0.1.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| measure_spec-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.6 kB
Release files / measure_spec-0.1.tar.gz
| Download URL | measure_spec-0.1.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47527a1016a5ff9bd9b71011506d59d06530ab0c999c98a5647adb7d57404d30
|
|
BLAKE2b-256 checksum How to use checksums |
14f956ebc1568bdecd5508ea0e8ad17ab891f679df71ff02ad2880ef0ef78c13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.9
|
Release files / measure_spec-0.1-py3-none-any.whl
| Download URL | measure_spec-0.1-py3-none-any.whl |
|---|---|
| Size | 2.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
23f6d1486e1e5cd6e5a6d89efb1bf5c6a7889eabdee5146486f9a44a5eb1d058
|
|
BLAKE2b-256 checksum How to use checksums |
e30b144274233416b3b2d9fef79da0fd97c1fba40231c4e41cc17c191f0f9c69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.9
|