PyPhotometry is a Python package based on a Fortran legacy package that allows you to compute photometric fluxes and magnitudes in various photometric systems.
Project description
PyPhotometry
Fully based on a Fortran legacy package to easily compute the photometric fluxes and magnitudes in different systems
email: antineutrinomuon@gmail.com, jean@astro.up.pt
github repository: PyPhotometry
last stable version: 0.0.1
© Copyright ®
J.G. - Jean Gomes @ 2023
RESUME
Original Fortran 2003+ routines date back to 2003-2004. Read the LICENSE.txt file.
PyPhotometry is a Python package based on a Fortran legacy package that allows you to compute photometric fluxes and magnitudes in various photometric systems. The package provides different magnitude systems, such as VEGA standard, VEGA proposed by Bohlin and Gilland 2004, AB system, TG standard system (Thuan & Gunn), WFPC2 system, FOCA at 2000, and without any calibration.
Pyphot from M. FouesneauA is NOT part of the distribution, but used as a comparison: https://mfouesneau.github.io/pyphot/index.html#package-main-content. If you want to install for comparison then:
pip install pyphot
However, it is not necessary for the usage of this package. Accompanying there are several routines.
INSTALLATION
You can easily install PyPhotometry by using pip - PyPI - The Python Package Index:
pip install PyPhotometry
or by using a generated conda repository https://anaconda.org/neutrinomuon/PyPhotometry:
conda install -c neutrinomuon PyPhotometry
OBS.: Linux, OS-X and 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/PyPhotometry python setup.py install
METHOD & REFERENCES
Magnitude Systems
The following magnitude systems are supported by PyPhotometry:
- VEGA standard: Based on the Bessel (2005), Cousins & Jones (1976), and Kitchin (2003) references.
- VEGA proposed by Bohlin and Gilland 2004;
- AB standard system: Based on Oke (1974) reference;
- TG standard system (Thuan & Gunn): Based on Oke & Gunn (1983), Schild (1984), Schneider et al. (1983), Thuan & Gunn (1976), and Wade et al. (1979) references;
- WFPC2 system: Based on the Stone (1996) reference;
- FOCA at 2000 system;
- Without any calibration.
Calibration Stars
PyPhotometry provides calibration stars used in the magnitude systems:
- VEGA spectrum: Intrinsic Flux - [erg/s/cm2/A].
- SUN spectrum: Intrinsic Flux - [erg/s/A].
- F subdwarf: Used to calibrate the Thuan & Gunn system.
For more details on the usage and options, please refer to the PyPhotometry GitHub repository.
STRUCTURE
The main structure of the directories and files are:
PyPhotometry ├── Literature │ └── Bohlin and Gilland (2004) - Absolute Flux Distribution of the SDSS Standard BD +17_4708.pdf ├── README.md ├── __pycache__ │ └── Filters.cpython-39.pyc ├── showdown.min.js ├── scripts │ └── update_readme.py ├── index.html ├── LICENSE.txt ├── data │ ├── IRAS.12mu.txt │ ├── Herschel_SPIRE.PSW_ext.txt │ ├── GalexNUV.txt │ ├── SDSSg.txt │ ├── 2MASSJ.txt │ ├── WISE4.txt │ ├── 2MASSKs.txt │ ├── Herschel_SPIRE.PLW_ext.txt │ ├── GalexFUV.txt │ ├── filters.db │ ├── Herschel_SPIRE.PMW_ext.txt │ ├── IRAS.60mu.txt │ ├── SDSSr.txt │ ├── calibration_stars │ │ ├── sun_reference_stis_001.fits │ │ ├── Filters_ReadMe.txt │ │ ├── kp00_6000.ascii │ │ ├── Sun_LR.dat │ │ ├── bd17d4708_stisnic_001.fits │ │ ├── BD+17o4708.dat │ │ ├── BD+17d4708.dat │ │ ├── VegaLR_OLD.dat │ │ ├── VegaLR.dat │ │ └── Sun.dat │ ├── 2MASSH.txt │ ├── IRAS.100mu.txt │ ├── WISE3.txt │ ├── ListFilters.txt │ ├── SDSSi.txt │ ├── SDSSz.txt │ ├── IRAS.25mu.txt │ ├── SDSSu.txt │ ├── WISE2.txt │ └── WISE1.txt ├── setup.py ├── tutorials │ └── PyPhotometry.png ├── src │ ├── python │ │ ├── __pycache__ │ │ ├── __init__.py │ │ └── Photometry.py │ └── fortran │ ├── EvalFilters.compile │ ├── IntegralALL.f90 │ ├── PropFilters.compile │ ├── DataTypes.f90 │ ├── PropFilters.f90 │ ├── EvalFilters.cpython-39-x86_64-linux-gnu.so │ ├── ReadFilters.f90 │ ├── GaussLegendreQuadrature.f90 │ ├── PropFilters.cpython-39-x86_64-linux-gnu.so │ ├── makefile │ ├── LINinterpol.f90 │ └── EvalFilters.f90 ├── version.txt ├── PyPhotometry.egg-info │ ├── PKG-INFO │ ├── dependency_links.txt │ ├── SOURCES.txt │ ├── top_level.txt │ └── requires.txt └── build ├── lib.linux-x86_64-3.9 │ └── PyPhotometry ├── src.linux-x86_64-3.9 │ ├── PyPhotometry │ ├── build │ └── numpy └── temp.linux-x86_64-3.9 ├── ccompiler_opt_cache_ext.py ├── src ├── PyPhotometry ├── .libs └── build 23 directories, 63 files
PyPhotometry.py is a python wrapper to the library in fortran called
PyPhotometry.flib. The fortran directory can be compiled separately for
each individual subroutine.
ISSUES AND CONTRIBUTIONS
If you encounter any issues with this project, please feel free to submit an issue on the GitHub repository. We appreciate your feedback and are committed to improving the quality of our codebase.
If you'd like to contribute to this project, we welcome pull requests from the community. Before submitting a pull request, please make sure to fork the repository and create a new branch for your changes. Once your changes are complete, submit a pull request and we'll review your code as soon as possible.
For any questions or concerns about contributing, please contact the project maintainer at antineutrinomuon@gmail.com. Thank you for your interest in contributing to our project!
LICENSE
This software is provided "AS IS" (see DISCLAIMER below). Permission to use, for non-commercial purposes is granted. Permission to modify for personal or internal use is granted, provided this copyright and disclaimer are included in ALL copies of the software. All other rights are reserved. In particular, redistribution of the code is not allowed without explicit permission by the author.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file PyPhotometry-0.0.2.tar.gz
.
File metadata
- Download URL: PyPhotometry-0.0.2.tar.gz
- Upload date:
- Size: 353.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 pkginfo/1.8.2 readme-renderer/27.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.3 keyring/23.4.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f15ecd311d21aa92fc9fc01917adc9d2f3e849fedf3b987d207ed7d58800104c |
|
MD5 | 9e0cfcf0141a128a58ce432b3de0a368 |
|
BLAKE2b-256 | 4da7168e825b7cda5097a33707ebfcddbfda7d94364607cc73b7ae84a340c118 |