PyKinematicalBroadening
email: antineutrinomuon@gmail.com, jean@astro.up.pt
last stable version: 0.0.9
github repository: PyKinematicalBroadening
© Copyright ®
J.G. - Jean Gomes
RESUME
PyKinematicalBroadening is a Python repository for Extragalactic Kinematics that performs kinematical broadening of a spectrum by convolving it with a kernel in velocity space, which results in a broadened model. This code provides a function called 'broadening,' which uses a Gaussian kernel for convolution. However, in addition to the Gaussian kernel, the code can also use Gauss-Hermite kernels for convolution.
The Gauss-Hermite kernels provide a more general perspective than the Gaussian kernels, as they can account for higher-order velocity moments of the broadening process. The code defines the width and mean velocity of the kernel with vd_sigma and vc0_gals, respectively, while the number of points for the kernel is set with the Ni_Gauss parameter. The output spectrum is defined at wavelengths lambda_s and is returned as fluxes_s. The fill_val parameter defines the value to use for regions outside of the original wavelength range, and verbosity controls the level of detail of console output.
In summary, the PyKinematicalBroadening code provides a flexible way to apply kinematical broadening to a spectrum using Gaussian or Gauss-Hermite kernels. The code reads in a test spectrum, interpolates it onto a set of equally spaced wavelength values, and loops over different velocity dispersions to call the 'broadening' function, which broadens the spectrum and plots the results.
INSTALLATION
You can easily install PyKinematicalBroadening by using pip - PyPI - The Python Package Index:
pip install PyKinematicalBroadening
or by using a generated conda repository https://anaconda.org/neutrinomuon/PyKinematicalBroadening:
conda install -c neutrinomuon PyKinematicalBroadening
OBS.: Linux, OS-X ad Windows pre-compilations available in conda.
You can also clone the repository and install by yourself in your machine:
git clone https://github.com/neutrinomuon/PyKinematicalBroadening python setup.py install
EXAMPLE
Example of the test spectrum test_spectrum.spec successively broadened by different velocity dispersions in [km/s]. The code is not optimized for cpu speed, but it shows the principle of how it works.
STRUCTURE
PyKinematicalBroadening
├── MANIFEST.in
├── dist
│ ├── PyKinematicalBroadening-0.0.3.tar.gz
│ ├── PyKinematicalBroadening-0.0.5.tar.gz
│ ├── PyKinematicalBroadening-0.0.6.tar.gz
│ └── PyKinematicalBroadening-0.0.4.tar.gz
├── README.md
├── figures
│ ├── KinematicalBroadening.png
│ └── cc_logo.png
├── PyKinematicalBroadening.egg-info
│ ├── PKG-INFO
│ ├── dependency_links.txt
│ ├── SOURCES.txt
│ ├── top_level.txt
│ └── requires.txt
├── LICENSE.txt
├── setup.py
├── tutorials
│ ├── .ipynb_checkpoints
│ │ └── Example 1 - Kinematical Broadening-checkpoint.ipynb
│ └── Example 1 - Kinematical Broadening.ipynb
├── pykinematicalbroadening
│ ├── win-32
│ │ └── pykinematicalbroadening-0.0.5-py39_0.tar.bz2
│ ├── linux-armv7l
│ │ └── pykinematicalbroadening-0.0.5-py39_0.tar.bz2
│ ├── linux-armv6l
│ │ ├── .projectignore
│ │ └── pykinematicalbroadening-0.0.5-py39_0.tar.bz2
│ ├── linux-s390x
│ │ └── pykinematicalbroadening-0.0.5-py39_0.tar.bz2
│ ├── linux-ppc64
│ │ └── pykinematicalbroadening-0.0.5-py39_0.tar.bz2
│ ├── linux-aarch64
│ │ ├── .projectignore
│ │ └── pykinematicalbroadening-0.0.5-py39_0.tar.bz2
│ ├── linux-32
│ │ ├── .projectignore
│ │ └── pykinematicalbroadening-0.0.5-py39_0.tar.bz2
│ ├── linux-64
│ │ ├── .projectignore
│ │ └── pykinematicalbroadening-0.0.5-py39_0.tar.bz2
│ ├── osx-64
│ │ └── pykinematicalbroadening-0.0.5-py39_0.tar.bz2
│ ├── meta.yaml
│ ├── win-64
│ │ └── pykinematicalbroadening-0.0.5-py39_0.tar.bz2
│ ├── README.txt
│ ├── linux-ppc64le
│ │ └── pykinematicalbroadening-0.0.5-py39_0.tar.bz2
│ └── osx-arm64
│ └── pykinematicalbroadening-0.0.5-py39_0.tar.bz2
├── Pykinematicalbroadening.egg-info
│ ├── PKG-INFO
│ ├── dependency_links.txt
│ ├── SOURCES.txt
│ ├── top_level.txt
│ └── requires.txt
├── src
│ └── python
│ ├── __pycache__
│ ├── test_spectrum.spec
│ ├── __init__.py
│ └── PyKinematicalBroadening.py
├── version.txt
└── build
└── lib
├── Pykinematicalbroadening
└── PyKinematicalBroadening
26 directories, 44 files
REFERENCES
-
Tonry, J., & Davis, M. "A survey of galaxy redshifts. I. Data reduction techniques". 1979, AJ, 84, 1511. DOI: 10.1086/112569. Available at: https://ui.adsabs.harvard.edu/abs/1979AJ.....84.1511T/abstract
-
van der Marel, R. P., & Franx, M. "A New Method for the Identification of Non-Gaussian Line Profiles in Elliptical Galaxies" . 1993, ApJ, 407, 525. DOI: 10.1086/172534. Available at: https://ui.adsabs.harvard.edu/abs/1993ApJ...407..525V/abstract
-
Emsellem, E., et al. "The SAURON project - III. Integral-field absorption-line kinematics of 48 elliptical and lenticular galaxies." Monthly Notices of the Royal Astronomical Society, Volume 352, Issue 3, pp. 721-743. DOI: 10.1111/j.1365-2966.2004.07948.x ; 10.48550/arXiv.astro-ph/0404034. Available at: https://ui.adsabs.harvard.edu/abs/2004MNRAS.352..721E/abstract
LICENSE
Attribution-NonCommercial-NoDerivatives 4.0 (CC BY-NC-ND 4.0)
Creative Commons Attribution-NonCommercial-NoDerivs (CC-BY-NC-ND)
Metadata
Release files for PyKinematicalBroadening 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PyKinematicalBroadening-0.0.9.tar.gz | 41.0 kB | Without provenance | Details for PyKinematicalBroadening-0.0.9.tar.gz |
Release files / PyKinematicalBroadening-0.0.9.tar.gz
| Download URL | PyKinematicalBroadening-0.0.9.tar.gz |
|---|---|
| Size | 41.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a5277efdabb00a3da6da8d9b263f755a80e771c829490a8e6eaff27487c2fba7
|
|
BLAKE2b-256 checksum How to use checksums |
fa4e426b8240046232e99eeb3fe35daa923a11292a166580330ab60992cbae6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Security for PyKinematicalBroadening 0.0.9
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.