1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

science/py-pyphot: New port: Library for computing photometry from spectra

This commit is contained in:
Yuri Victorovich 2024-09-21 21:11:53 -07:00
parent ac1a74a39b
commit 680659e894
4 changed files with 44 additions and 0 deletions

View File

@ -409,6 +409,7 @@
SUBDIR += py-pymbd
SUBDIR += py-pymol
SUBDIR += py-pyosf
SUBDIR += py-pyphot
SUBDIR += py-pyprecice
SUBDIR += py-pyqubo
SUBDIR += py-pysal

View File

@ -0,0 +1,27 @@
PORTNAME= pyphot
DISTVERSION= 1.4.7
CATEGORIES= science
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Library for computing photometry from spectra
WWW= https://mfouesneau.github.io/pyphot/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PY_SETUPTOOLS}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}astropy>0:astro/py-astropy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}numpy>=2.0:math/py-numpy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tables>0:devel/py-tables@${PY_FLAVOR}
USES= python
USE_PYTHON= distutils autoplist pytest
NO_ARCH= yes
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1726947143
SHA256 (pyphot-1.4.7.tar.gz) = 001ebeb7741e81bf864b0240ecf32eed9c613e79ab06d2274042d7669f754df6
SIZE (pyphot-1.4.7.tar.gz) = 14971120

View File

@ -0,0 +1,13 @@
PYPHOT is a set of tools to compute synthetic photometry in a simple way, ideal
to integrate in larger projects.
The inputs are photonic or energetic response functions for the desired
photometric bands and stellar spectra. The modules are flexible to handle units
in the wavelength definition through a simplified version of pint.
Filters are represented individually by a Filter object. Collections of filters
are handled with a Library. We provide an internal library that contains a
signitificant amount of common filters.
Each filter is minimally defined by a wavelength and throughput. Many properties
such as central of pivot wavelength are computed internally.