[ascl:2403.001]
Pynkowski: Minkowski functionals and other higher order statistics
Pynkowski computes Minkowski Functionals and other higher order statistics of input fields, as well as their expected values for different kinds of fields. This package supports Minkowski functionals, and maxima and minima distributions. Supported input formats include scalar HEALPix maps such as those used by healpy (ascl:2008.022) and polarization HEALPix maps in the SO(3) formalism. Pynkowski also supports various theoretical fields, including Gaussian (<i>e.g.</i>, CMB Temperature or the initial density field), Chi squared (<i>e.g.</i>, CMB polarization intensity), and spin 2 maps in the SO(3) formalism.
[ascl:1304.021]
PyNeb: Analysis of emission lines
PyNeb (previously PyNebular) is an update and expansion of the IRAF package NEBULAR; rewritten in Python, it is designed to be more user-friendly and powerful, increasing the speed, easiness of use, and graphic visualization of emission lines analysis. In PyNeb, the atom is represented as an n-level atom. For given density and temperature, PyNeb solves the equilibrium equations and determines the level populations. PyNeb can compute physical conditions from suitable diagnostic line ratios and level populations, critical densities and line emissivities, and can compute and display emissivity grids as a function of Te and Ne. It can also deredden line intensities, read and manage observational data, and plot and compare atomic data from different publications, and compute ionic abundances from line intensities and physical conditions and elemental abundances from ionic abundances and icfs.
[ascl:2506.020]
pynchrotron: Synchrotron emission from cooling electrons
pynchrotron implements synchrotron emission from cooling electrons. It removes the need for GSL which was originally relied on for a quick computation of the synchrotron kernel. The code has been ported from GSL and written directly in python as well as accelerated with numba. pynchrotron also includes an astromodels (ascl:2506.019) function for direct use in 3ML (ascl:2506.018).
[ascl:1305.002]
pynbody: N-Body/SPH analysis for python
Pynbody is a lightweight, portable, format-transparent analysis package for astrophysical N-body and smooth particle hydrodynamic simulations supporting PKDGRAV/Gasoline, Gadget, N-Chilada, and RAMSES AMR outputs. Written in python, the core tools are accompanied by a library of publication-level analysis routines.
[ascl:2208.022]
PyNAPLE: Automated pipeline for detecting changes on the lunar surface
PyNAPLE (PYthon Nac Automated Pair Lunar Evaluator) detects changes and new impact craters on the lunar surface using Lunar Reconnaissance Orbiter Narrow Angle Camera (LRO NAC) images. The code enables large scale analyses of sub-kilometer scale cratering rates and refinement of both scaling laws and the luminous efficiency.
[ascl:1703.009]
PyMVPA: MultiVariate Pattern Analysis in Python
PyMVPA eases statistical learning analyses of large datasets. It offers an extensible framework with a high-level interface to a broad range of algorithms for classification, regression, feature selection, data import and export. It is designed to integrate well with related software packages, such as scikit-learn, shogun, and MDP.
[ascl:1806.028]
PyMUSE: VLT/MUSE data analyzer
PyMUSE analyzes VLT/MUSE datacubes. The package is optimized to extract 1-D spectra of arbitrary spatial regions within the cube and also for producing images using photometric filters and customized masks. It is intended to provide the user the tools required for a complete analysis of a MUSE data set.
[ascl:1606.005]
PyMultiNest: Python interface for MultiNest
PyMultiNest provides programmatic access to MultiNest (ascl:1109.006) and PyCuba, integration existing Python code (numpy, scipy), and enables writing Prior & LogLikelihood functions in Python. PyMultiNest can plot and visualize MultiNest's progress and allows easy plotting, visualization and summarization of MultiNest results. The plotting can be run on existing MultiNest output, and when not using PyMultiNest for running MultiNest.
[ascl:2312.018]
PyMsOfa: Python package for the Standards of Fundamental Astronomy (SOFA) service
PyMsOfa accesses the International Astronomical Union’s SOFA library (ascl:1403.026) from Python. It offers a wrapper package based on a foreign function library for Python (ctypes), a wrapper with the foreign function interface for Python calling C code (cffi), and a package directly written in pure Python codes from SOFA subroutines. PyMsOfa is suitable for the astrometric detection of habitable planets of the Closeby Habitable Exoplanet Survey (CHES) mission and for the frontier themes of black holes and dark matter related to astrometric calculations and other fields.
[ascl:1310.002]
PyMSES: Python modules for RAMSES
PyMSES provides a python solution for getting data out of <a href="http://ascl.net/1011.007">RAMSES</a> (ascl:1011.007) astrophysical fluid dynamics simulations. It permits transparent manipulation of large simulations and interfaces with common Python libraries and existing code, and can serve as a post-processing toolbox for data analysis. It also does three-dimensional volume rendering with a specific algorithm optimized to work on RAMSES distributed data (Guillet et al. 2011 and Jones et a. 2011).
[ascl:2501.002]
pympc: Minor planet checking
pympc performs checks for the presence of minor and major Solar System bodies at specified coordinates. Orbital elements from the Minor Planet Center are used to propagate orbits to determine the position of asteroids, comets, NEOS, planets and major moons at the request epoch. Topocentric corrections are included to allow for observatory-specific positions. The requested position can also be checked for being within the Hill Sphere (in projection) of any Solar System planet.
[ascl:1906.009]
PyMORESANE: Python MOdel REconstruction by Synthesis-ANalysis Estimators
PyMORESANE is a Python and pyCUDA-accelerated implementation of the MORESANE deconvolution algorithm, a sparse deconvolution algorithm for radio interferometric imaging. It can restore diffuse astronomical sources which are faint in brightness, complex in morphology and possibly buried in the dirty beam’s side lobes of bright radio sources in the field.
[ascl:1109.010]
PyModelFit: Model-fitting Framework and GUI Tool
PyModelFit provides a pythonic, object-oriented framework that simplifies the task of designing numerical models to fit data. This is a very broad task, and hence the current functionality of PyModelFit focuses on the simpler tasks of 1D curve-fitting, including a GUI interface to simplify interactive work (using Enthought Traits). For more complicated modeling, PyModelFit also provides a wide range of classes and a framework to support more general model/data types (2D to Scalar, 3D to Scalar, 3D to 3D, and so on).
[ascl:2502.011]
PyMieScatt: Forward and inverse Mie solving routines
PyMieScatt (Python Mie Scattering) calculates relevant parameters including absorption, scattering, extinction, asymmetry, and backscatter. The package also contains single-line functions to calculate optical coefficients (in Mm-1) of ensembles of particles in lognormal (with single or multiple modes) or custom size distributions. The inverse calculations retrieve the complex refractive index from laboratory measurements of scattering and absorption (or backscatter), useful for studying atmospheric organic aerosol of unknown composition.
[ascl:1808.008]
PyMieDap: Python Mie Doubling Adding Program
PyMieDAP (Python Mie Doubling Adding Program) makes light scattering computations with Mie scattering and radiative transfer computations with full orders of scattering and taking into account the polarization of the light scattered. Full planet modeling at any phase angle is possible. With the included subpackage exopy, it is also possible to simulate systems with a star, a planet and a possible moon.
[ascl:1401.003]
PyMidas: Interface from Python to Midas
PyMidas is an interface between Python and MIDAS, the major ESO legacy general purpose data processing system. PyMidas allows a user to exploit both the rich legacy of MIDAS software and the power of Python scripting in a unified interactive environment. PyMidas also allows the usage of other Python-based astronomical analysis systems such as <a href="http://ascl.net/1207.011">PyRAF</a>.
[ascl:1411.011]
PyMGC3: Finding stellar streams in the Galactic Halo using a family of Great Circle Cell counts methods
PyMGC3 is a Python toolkit to apply the Modified Great Circle Cell Counts (mGC3) method to search for tidal streams in the Galactic Halo. The code computes pole count maps using the full mGC3/nGC3/GC3 family of methods. The original GC3 method (Johnston <i>et al.</i>, 1996) uses positional information to search for 'great-circle-cell structures'; mGC3 makes use of full 6D data and nGC3 uses positional and proper motion data.
[ascl:2603.013]
PyMGal: Optical mock observations from hydrodynamical simulations
PyMGal generates optical mock observations from cosmological simulations. Incorporating methods from EzGal (ascl:1208.021), the program infers the spectral energy distributions (SEDs) of stellar particles within a simulation snapshot using customizable simple stellar population (SSP) models. These SEDs are used to calculate particle brightness through selected telescope filters. The results can be projected into realistic 2D images. The software is compatible with different simulation formats, including GADGET, GIZMO, and AREPO. Tested on IllustrisTNG, SIMBA, EAGLE, and The Three Hundred hydrodynamical simulations, PyMGal should work on other cosmological simulations as well.
[ascl:1902.003]
PyMF: Matched filtering techniques for astronomical images
PyMF performs spatial filtering (matched filter, matched multifilter, constrained matched filter and constrained matched mutifilter) image processing that provides optimal reduction of the contamination introduced by sources that can be approximated by templates. These techniques use the flat-sky approximation.
[ascl:2411.003]
PyMerger: Einstein Telescope binary black hole merger detector
PyMerger detects binary black hole mergers from the Einstein Telescope based on a Deep Residual Neural Network (ResNet) model; the model was trained on combined data from all three proposed sub-detectors of ET (TSDCD). The model achieved high BBH detection rates. Though not trained on BNS and BHNS mergers, PyMerger successfully detected 11,477 BNS and 323 BHNS mergers in ET-MDC, indicating its potential for broader applicability.
[ascl:1505.025]
pyMCZ: Oxygen abundances calculations and uncertainties from strong-line flux measurements
pyMCZ calculates metallicity according to a number of strong line metallicity diagnostics from spectroscopy line measurements and obtains uncertainties from the line flux errors in a Monte Carlo framework. Given line flux measurements and their uncertainties, pyMCZ produces synthetic distributions for the oxygen abundance in up to 13 metallicity scales simultaneously, as well as for E(B-V), and estimates their median values and their 68% confidence regions. The code can output the full MC distributions and their kernel density estimates.
[ascl:2207.024]
pymcfost: Python interface to the MCFOST 3D radiative transfer code
pymcfost provides an interface to and can be used to visualize results from the 3D radiative transfer code MCFOST (ascl:2207.023). pymcfost can set up continuum and line models, read a single model or library of models, plot basic quantities such as density structures and temperature maps, and plot observables, including SEDs, polarization maps, visibilities, and channels maps (with spatial and spectral convolution). It can also convert units (<i>e.g.</i> W.m-2 to Jy or brightness temperature), and it provides an interface to the ALMA CASA simulator (ascl:1107.013).
[ascl:2309.010]
pymccorrelation: Correlation coefficients with uncertainties
pymccorrelation calculates correlation coefficients for data, using bootstrapping and/or perturbation to estimate the uncertainties on the correlation coefficient and p-value. The code supports Pearson's r, Spearman's rho, and Kendall's tau. Calculations of Kendall's tau additionally support censored data. This code supercedes and expands the deprecated code pymcspearman (ascl:2309.009).
[ascl:2212.007]
PyMCCF: Python Modernized Cross Correlation Function for reverberation mapping studies
PyMCCF (Python Modernized Cross Correlation Function), also known as MCCF, cross correlates two light curves that are unevenly sampled using linear interpolation and measures the peak and centroid of the cross-correlation function. Based on PyCCF (ascl:1805.032) and ICCF, it introduces a new parameter, MAX, to reduce the number of interpolated points used to just those which are not farther from the nearest real one than the MAX. This significantly reduces noise from interpolation errors. The estimation of the errors in PyMCCF is exactly the same as in PyCCF.
[ascl:1610.016]
PyMC3: Python probabilistic programming framework
PyMC3 performs Bayesian statistical modeling and model fitting focused on advanced Markov chain Monte Carlo and variational fitting algorithms. It offers powerful sampling algorithms, such as the No U-Turn Sampler, allowing complex models with thousands of parameters with little specialized knowledge of fitting algorithms, intuitive model specification syntax, and optimization for finding the maximum a posteriori (MAP) point. PyMC3 uses Theano to compute gradients via automatic differentiation as well as compile probabilistic programs on-the-fly to C for increased speed.
[ascl:1506.005]
PyMC: Bayesian Stochastic Modelling in Python
PyMC is a python module that implements Bayesian statistical models and fitting algorithms, including Markov chain Monte Carlo. Its flexibility and extensibility make it applicable to a large suite of problems. Along with core sampling functionality, PyMC includes methods for summarizing output, plotting, goodness-of-fit and convergence diagnostics.
[ascl:2512.009]
PyLongslit: Astronomical long-slit spectra processor
PyLongslit processes astronomical long-slit spectral data recorded with CCD detectors. The software performs standard calibration steps on raw two-dimensional long-slit FITS frames, producing wavelength-calibrated 2D spectra and one-dimensional spectra for point-like sources. It supports extraction of flux-calibrated 1D spectra after detector calibrations such as bias subtraction, flat-fielding, and wavelength mapping, and includes quality-assessment plots to assist users in evaluating intermediate and final products. Designed to be instrument independent, PyLongslit works with generic long-slit spectrograph data meeting basic format and calibration frame requirements.
[ascl:1906.022]
pyLIMA: Microlensing modeling package
pyLIMA (python Lightcurve Identification and Microlensing Analysis) fits microlensing lightcurves and derives the physical quantities of lens systems. The package provides microlensing modeling, and the magnification estimation for high cadence lightcurves has been optimized. pyLIMA is designed to make microlensing modeling and event simulation widely available to the community.
[ascl:1612.018]
pylightcurve: Exoplanet lightcurve model
pylightcurve is a model for light-curves of transiting planets. It uses the four coefficients law for the stellar limb darkening and returns the relative flux, <em>F</em>(<em>t</em>), as a function of the limb darkening coefficients, <em>a<sub>n</sub></em>, the <em>R<sub>p</sub>/R<sub>*</sub></em> ratio and all the orbital parameters based on the nonlinear limb darkening model (Claret 2000).
[ascl:2403.012]
Pylians3: Libraries to analyze numerical simulations in Python 3
Pylians3 (Python3 libraries for the analysis of numerical simulations) provides a Python 3 version of Pylians (ascl:1811.008), which analyzes numerical simulations (both N-body and hydrodynamic); parts of the codebase are also written in cython and C. It computes density fields, power spectra, bispectra, and correlation functions, identifies voids, and populates halos with galaxies using an HOD. Pylians3 also applies HI+H2 corrections to the output of hydrodynamic simulations, make 21cm maps, computes DLAs column density distribution functions, and can plot density fields and make movies.
[ascl:1811.008]
Pylians: Python libraries for the analysis of numerical simulations
Pylians facilitates the analysis of numerical simulations (both N-body and hydro). This set of libraries, written in python, cython and C, compute power spectra, bispectra, and correlation functions, identifies voids, and populates halos with galaxies using an HOD. Pylians can also apply HI+H2 corrections to the output of hydrodynamic simulations, makes 21cm maps, computes DLAs column density distribution functions, and plots density fields. A Python 3 version of this code, Pylians3 (ascl:2403.012) is available.
[ascl:1510.003]
PyLDTk: Python toolkit for calculating stellar limb darkening profiles and model-specific coefficients for arbitrary filters
PyLDTk automates the calculation of custom stellar limb darkening (LD) profiles and model-specific limb darkening coefficients (LDC) using the library of PHOENIX-generated specific intensity spectra by Husser et al. (2013). It facilitates exoplanet transit light curve modeling, especially transmission spectroscopy where the modeling is carried out for custom narrow passbands. PyLDTk construct model-specific priors on the limb darkening coefficients prior to the transit light curve modeling. It can also be directly integrated into the log posterior computation of any pre-existing transit modeling code with minimal modifications to constrain the LD model parameter space directly by the LD profile, allowing for the marginalization over the whole parameter space that can explain the profile without the need to approximate this constraint by a prior distribution. This is useful when using a high-order limb darkening model where the coefficients are often correlated, and the priors estimated from the tabulated values usually fail to include these correlations.
[ascl:2509.002]
pyLDT-cosmo: Matter PDF predictions in Large Deviation Theory
pyLDT-cosmo generates matter probability distribution function (PDF) predictions in Large Deviation Theory for ΛCDM and alternative cosmologies. Based on the principles of Large Deviations Theory, the code is applicable to general extensions of the standard Lambda cold dark matter (ΛCDM) cosmology.
[ascl:1708.016]
pyLCSIM: X-ray lightcurves simulator
pyLCSIM simulates X-ray lightcurves from coherent signals and power spectrum models. Coherent signals can be specified as a sum of one or more sinusoids, each with its frequency, pulsed fraction and phase shift; or as a series of harmonics of a fundamental frequency (each with its pulsed fraction and phase shift). Power spectra can be simulated from a model of the power spectrum density (PSD) using as a template one or more of the built-in library functions. The user can also define his/her custom models. Models are additive.
[ascl:1506.001]
pyKLIP: PSF Subtraction for Exoplanets and Disks
pyKLIP subtracts out the stellar PSF to search for directly-imaged exoplanets and disks using a Python implementation of the Karhunen-Loève Image Projection (KLIP) algorithm. pyKLIP supports ADI, SDI, and ADI+SDI to model the stellar PSF and offers a large array of PSF subtraction parameters to optimize the reduction. pyKLIP relies on a minimal amount of dependencies (numpy, scipy, and astropy) and parallelizes the KLIP algorithm to speed up the reduction. pyKLIP supports GPI and P1640 data and can interface with other data sources with the addition of new modules. It also can inject simulated planets and disks as well as automatically search for point sources in PSF-subtracted data.
[ascl:1208.004]
PyKE: Reduction and analysis of Kepler Simple Aperture Photometry data
PyKE is a python-based <a href="http://ascl.net/1207.011">PyRAF</a> (ascl:1207.011) package that can also be run as a stand-alone program within a unix-based shell without compiling against PyRAF. It is a group of tasks developed for the reduction and analysis of Kepler Simple Aperture Photometry (SAP) data of individual targets with individual characteristics. The main purposes of these tasks are to i) re-extract light curves from manually-chosen pixel apertures and ii) cotrend and/or detrend the data in order to reduce or remove systematic noise structure using methods tunable to user and target-specific requirements. PyKE is an open source project and contributions of new tasks or enhanced functionality of existing tasks by the community are welcome.
[ascl:2004.014]
PyKat: Python interface and tools for Finesse
The Python wrapper PyKat extends the optical interferometer modeling software Finesse (ascl:2004.013). It provides an efficient GUI for conducting complex numerical simulations and manipulating and viewing simulation setups, and enables the use of Python's extensive scientific software ecosystem.
[ascl:2307.023]
PyIMRPhenomD: Stellar origin black hole binaries population estimator
PyIMRPhenomD estimates the population of stellar origin black hole binaries for LISA observations using a Bayesian parameter estimation algorithm. The code reimplements IMRPhenomD (ascl:2307.019) in a pure Python code, compiled with the Numba just-in-time compiler. The module implements the analytic first and second derivatives necessary to compute t(f) and t'(f) rather than computing them numerically. Using the analytic derivatives increases the code complexity but produces faster and more numerically accurate results; the improvement in numerical accuracy is particularly significant for t'(f).
[ascl:2404.017]
pyilc: Needlet ILC in Python
pyilc implements the needlet internal linear combination (NILC) algorithm for CMB component separation in pure Python; it also implements harmonic-space ILC. The code can also perform Cross-ILC, where the covariance matrices are computed only from independent splits of the maps. In addition, pyilc includes an inpainting code, diffusive_inpaint, that diffusively inpaints a masked region with the mean of the unmasked neighboring pixels.
[ascl:2205.010]
pyICs: Initial Conditions creator for isolated galaxy formation simulations
pyICs creates initial condition (IC) files for N-body simulations of the formation of isolated galaxies. It uses the <a href="http://ascl.net/1305.002">pynbody</a> analysis package (ascl:1305.002) to create the actual IC files. pyICs generates dark matter halos (DM) in dynamical equilibrium which host a rotating gas sphere. The DM particle velocities are drawn from the equilibrium distribution function and the gas sphere has an angular momentum profile. The DM and the gas share the same 3D radial density profile. The code natively supports the αβγ-models: ρ ~ (r/a)-γ[1+(r/a)α](γ-β)/α. If γ <= 3, the profiles are smoothly truncated outside the virial radius. The radial profile can be arbitrary as long as python functions for the profile itself and its first and second derivative with radius are given.
[ascl:2109.008]
pyia: Python package for working with Gaia data
pyia provides tools for working with Gaia data. It accesses Gaia data columns as Quantity objects, <i>i.e.</i>, with units (<i>e.g.</i>, data.parallax will have units ‘milliarcsecond’)
, constructs covariance matrices for Gaia data, and generates random samples from the Gaia error distribution per source. pyia can also create SkyCoord objects from Gaia data and execute simple (small) remote queries via the Gaia science archive and automatically fetch the results.
[ascl:1511.005]
pyhrs: Spectroscopic data reduction package for SALT
The pyhrs package reduces data from the High Resolution Spectrograph (HRS) on the Southern African Large Telescope (SALT). HRS is a dual-beam, fiber fed echelle spectrectrograph with four modes of operation: low (R~16000), medium (R~34000), high (R~65000), and high stability (R~65000). pyhrs, written in Python, includes all of the steps necessary to reduce HRS low, medium, and high resolution data; this includes basic CCD reductions, order identification, wavelength calibration, and extraction of the spectra.
[ascl:2206.010]
pyHIIexplorerV2: Integrated spectra of HII regions extractor
pyHIIexplorerV2 extracts the integrated spectra of HII regions from integral field spectroscopy (IFS) datacubes. The detection of HII regions performed by pyHIIexplorer is based on two assumptions: 1) HII regions have strong emission lines that are clearly above the continuum emission and the average ionized gas emission across each galaxy, and 2) the typical size of HII regions is about a few hundreds of parsecs, which corresponds to a usual projected size of a few arcsec at the distance of our galaxies. These assumptions will define clumpy structures with a high Ha emission line contrast in comparison to the continuum. pyHIIexplorerV2 is written in Python; it is based on and is a successor to HIIexplorer (ascl:1603.017).
[ascl:2511.006]
pyhdust: Analysis tools for multi-technique astronomical data and hdust models
Pyhdust provides analysis and visualization tools for multi-technique stellar observations and for working with hdust models, with emphasis on Be-star applications. It reads and manipulates hdust outputs and includes modules for spectroscopy, polarimetry, and optical/IR interferometry. Pyhdust includes additional routines that cover photometric filters, image utilities, rotating-star and single-scattering calculations, Be-star quantity conversions, and BeAtlas helpers for grid/model handling.
[ascl:2002.011]
PyHammer: Python spectral typing suite
PyHammer performs rapid and automatic spectral classification of stars according to the Morgan-Keenan classification system; it is a Python revision of the IDL code The Hammer (ascl:1405.003) and offers additional capabilities. Working in the range of 3,650-10,200 Angstroms, the automatic spectral typing algorithm compares important spectral lines to template spectra and determines the best matching spectral type, ranging from O to L type stars. The code can also determine a star's metallicity ([Fe/H]) and radial velocity shifts. Once the automatic classification algorithm has run, PyHammer provides the user an interface for determining spectral types visually by comparing their spectra to provided templates.
[ascl:2307.025]
pyhalomodel: Halo-model implementation for power spectra
pyhalomodel computes halo-model power spectra for any desired tracer combination. The software requires only halo profiles for the tracers to be specified; these could be matter profiles, galaxy profiles, or something else, such as electron-pressure or HI profiles. pyhalomodel makes it easier to perform basic calculations using the halo model by reducing the changes of variables required to integrate halo profiles against halo mass functions, which can be confusing and tedious.
[ascl:2007.020]
pygwinc: Gravitational Wave Interferometer Noise Calculator
pygwinc processes and plots noise budgets for ground-based gravitational wave detectors. Its primary feature is a collection of mostly analytic noise calculation functions for various sources of noise affecting detectors, including quantum and seismic noise, mirror coating and substrate thermal noise, suspension fiber thermal noise, and residual gas noise. It is also a generalized noise budgeting tool that allows users to create arbitrary noise budgets for any experiment, not just ground-based GW detectors, using measured or analytically calculated data.
[ascl:2311.013]
pygwb: Lighweight python stochastic GWB analysis pipeline
Renzini, Arianna I.;
Romero-Rodríguez, Alba;
Talbot, Colm;
Lalleman, Max;
Kandhasamy, Shivaraj;
Turbang, Kevin;
Biscoveanu, Sylvia;
Martinovic, Katarina;
Meyers, Patrick;
Tsukada, Leo;
Janssens, Kamiel;
Davis, Derek;
Matas, Andrew;
Charlton, Philip;
Liu, Guo-Chin;
Dvorkin, Irina;
Banagiri, Sharan;
Bose, Sukanta;
Callister, Thomas;
De Lillo, Federico;
D'Onofrio, Luca;
Garufi, Fabio;
Harry, Gregg;
Lawrence, Jessica;
Mandic, Vuk;
Macquet, Adrian;
Michaloliakos, Ioannis;
Mitra, Sanjit;
Pham, Kiet;
Poggiani, Rosa;
Regimbau, Tania;
Romano, Joseph D.;
van Remortel, Nick;
Zhong, Haowen
pygwb analyzes laser interferometer data and designs a gravitational wave background (GWB) search pipeline. Its modular and flexible codebase is tailored to current ground-based interferometers such as LIGO Hanford, LIGO Livingston, and Virgo, but can be generalized to other configurations. It is based on GWpy (ascl:1912.016) and bilby (ascl:1901.011) for optimal integration with widely-used gravitational wave data analysis tools. pygwb also includes a set of scripts to analyze data and perform large-scale searches on a high-performance computing cluster efficiently.
[ascl:1907.004]
pyGTC: Parameter covariance plots
pyGTC creates giant triangle confusogram (GTC) plots. Triangle plots display the results of a Monte-Carlo Markov Chain (MCMC) sampling or similar analysis. The recovered parameter constraints are displayed on a grid in which the diagonal shows the one-dimensional posteriors (and, optionally, priors) and the lower-left triangle shows the pairwise projections. Such plots are useful for seeing the parameter covariances along with the priors when fitting a model to data.
[ascl:1611.013]
pyGMMis: Mixtures-of-Gaussians density estimation method
pyGMMis is a mixtures-of-Gaussians density estimation method that accounts for arbitrary incompleteness in the process that creates the samples as long as the incompleteness is known over the entire feature space and does not depend on the sample density (missing at random). pyGMMis uses the Expectation-Maximization procedure and generates its best guess of the unobserved samples on the fly. It can also incorporate an uniform "background" distribution as well as independent multivariate normal measurement errors for each of the observed samples, and then recovers an estimate of the error-free distribution from which both observed and unobserved samples are drawn. The code automatically segments the data into localized neighborhoods, and is capable of performing density estimation with millions of samples and thousands of model components on machines with sufficient memory.
[ascl:1402.021]
PyGFit: Python Galaxy Fitter
PyGFit measures PSF-matched photometry from images with disparate pixel scales and PSF sizes; its primary purpose is to extract robust spectral energy distributions (SEDs) from crowded images. It fits blended sources in crowded, low resolution images with models generated from a higher resolution image, thus minimizing the impact of crowding and also yielding consistently measured fluxes in different filters which minimizes systematic uncertainty in the final SEDs.
[ascl:1603.013]
PyGDSM: Python interface to Global Diffuse Sky Models
PyGDSM (formely PyGSM) is a Python interface for the Global Sky Model (GSM, ascl:1011.010). The GSM is a model of diffuse galactic radio emission, constructed from a variety of all-sky surveys spanning the radio band (e.g. Haslam and WMAP). PyGDSM uses the GSM to generate all-sky maps in Healpix format of diffuse Galactic radio emission from 10 MHz to 94 GHz. The PyGDSM module provides visualization utilities, file output in FITS format, and the ability to generate observed skies for a given location and date. PyGDSM requires <a href="https://healpy.readthedocs.org/en/latest/">Healpy</a> (ascl:2008.022), PyEphem (ascl:1112.014), and AstroPy (ascl:1304.002).
[ascl:2505.003]
pyGCG: Python Grism Classification GUI
pyGCG provides a graphical user interface for viewing and classifying NIRISS-WFSS data products. Though originally designed for use by the GLASS-JWST collaboration, this software has been tested against the data products from the PASSAGE collaboration as well. pyGCG allows users to interactively browse a selection of reduced data products with the option of also writing classifications to a table.
[ascl:1411.001]
pyGadgetReader: GADGET snapshot reader for python
pyGadgetReader is a universal GADGET snapshot reader for python that supports type-1, type-2, HDF5, and TIPSY (ascl:1111.015) binary formats. It additionally supports reading binary outputs from FoF_Special, P-StarGroupFinder, Rockstar (ascl:1210.008), and Rockstar-Galaxies.
[ascl:1811.014]
pygad: Analyzing Gadget Simulations with Python
pygad provides a framework for dealing with Gadget snapshots. The code reads any of the many different Gadget (ascl:0003.001) formats, allows easy masking snapshots to particles of interest, decorates the data blocks with units, allows to add automatically updating derived blocks, and provides several binning and plotting routines, among other tasks, to provide convenient, intuitive handling of the Gadget data without the need to worry about technical details. pygad provides access to single stellar population (SSP) models, has an interface to Rockstar (ascl:1210.008) output files, provides its own friends-of-friends (FoF) finder, calculates spherical overdensities, and has a sub-module to generate mock absorption lines.
[ascl:2203.005]
pygacs: Toolkit to manipulate Gaia catalog tables
pygacs manipulates Gaia catalog tables hosted at ESA's Gaia Archive Core Systems (GACS). It provides python modules for the access and manipulation of tables in GACS, such as a basic query on a single table or crossmatch between two tables. It employs the TAP command line access tools described in the Help section of the <a href="http://archives.esac.esa.int/gaia/">GACS web pages</a>. Both public and authenticated access have been implemented.
[ascl:2102.027]
PyFstat: Continuous gravitational-wave data analysis
PyFstat performs F-statistic-based continuous gravitational wave (CW) searches and other CW data analysis tasks. It is built on top of the LALSuite library (ascl:2012.021), making that library's functionality more accessible through a Python interface; it also provides MCMC-based followup of promising candidates from wide-parameter-space searches.
[submitted]
PyFOSC: a pipeline toolbox for BFOSC/YFOSC long-slit spectroscopy data reduction
PyFOSC is a pipeline toolbox for long-slit spectroscopy data reduction written in Python. It can be used for FOSC (Faint Object Spectrograph and Camera) data from Xinglong/Lijiang 2-meter telescopes in China. This pipeline privodes a neat way for data pre-processing, including updating missing header fileds for BFOSC data, reducing fits file extension for YFOSC data, etc. And it makes the data reduction procedure efficient by using previously identified lamp spectra as re-identification references during wavelength calibration, and applying multiprocessing in some modules. PyFOSC also enables customization for any other long-slit spectroscopy data.
[ascl:1103.012]
Pyflation: Second Order Perturbations During Inflation Beyond Slow-roll
Pyflation calculates cosmological perturbations during an inflationary expansion of the universe. The modules in the pyflation Python package can be used to run simulations of different scalar field models of the early universe. The main classes are contained in the cosmomodels module and include simulations of background fields and first order and second order perturbations. The sourceterm package contains modules required for the computation of the term required for the evolution of second order perturbations.
Alongside the Python package, the bin directory contains Python scripts which can run first and second order simulations. A helper script called pyflation-qsubstart.py sets up a full second order run (including background, first order and source calculations) to be used on queueing system which contains the qsub executable (e.g. a Rocks cluster).
[ascl:1207.009]
PyFITS: Python FITS Module
Barrett, Paul;
Hsu, J. C.;
Hanley, Chris;
Taylor, James;
Droettboom, Michael;
Bray, Erik M.;
Hack, Warren;
Greenfield, Perry;
Wyckoff, Eric;
Jedrzejewski, Robert;
De La Pena, Michele;
Hodge, Phil
PyFITS provides an interface to FITS formatted files in the Python scripting language and <a href="http://ascl.net/1207.011">PyRAF</a>, the Python-based interface to IRAF. It is useful both for interactive data analysis and for writing analysis scripts in Python using FITS files as either input or output. PyFITS is a development project of the Science Software Branch at the Space Telescope Science Institute.
<b>PyFITS has been deprecated. Please see <a href="https://ascl.net/1304.002">Astropy</a></b>.
[ascl:2109.009]
pyFFTW: Python wrapper around FFTW
pyFFTW is a pythonic wrapper around FFTW (ascl:1201.015), the speedy FFT library. Both the complex DFT and the real DFT are supported, as well as on arbitrary axes of arbitrary shaped and strided arrays, which makes it almost feature equivalent to standard and real FFT functions of numpy.fft. Additionally, it supports the clongdouble dtype, which numpy.fft does not, and operating FFTW in multithreaded mode.
[ascl:2407.002]
pyFAT: Python Fully Automated TiRiFiC
Python Fully Automated TiRiFiC (pyFAT) wraps around the tilted ring fitting code (TiRiFiC, ascl:1208.008) to fully automate the process of fitting simple tilted ring models to line emission cubes. pyFAT is the successor to the IDL/GDL FAT (ascl:1507.011) code and offers improved handling and fitting as well as several new features. PyFAT fits simple rotationally symmetric discs with asymmetric warps and surface brightness distributions, providing a base model that can can be used in TiRiFiC to explore large scale motions. pyFAT delivers much more control over the fitting procedure, which is made possible by the new modular setup and the use of omegaconf for the input and default settings.
[ascl:1403.002]
pyExtinction: Atmospheric extinction
The Python script/package pyExtinction computes and plots total atmospheric extinction from decomposition into physical components (Rayleigh attenuation, ozone absorption, aerosol extinction). Its default extinction parameters are adapted to mean Mauna Kea summit conditions.
[ascl:2301.013]
pyExoRaMa: An interactive tool to investigate the radius-mass diagram for exoplanets
pyExoRaMa visualizes and manipulates data related to exoplanets and their host stars in a multi-dimensional parameter space. It enables statistical studies based on the large and constantly increasing number of detected exoplanets, identifies possible interdependence among several physical parameters, and compares observables with theoretical models describing the exoplanet composition and structure.
[ascl:2409.016]
PyExoCross: Molecular line lists post-processor
PyExoCross, a Python adaptation of ExoCross (ascl:1803.014), post-processes molecular line lists generated by ExoMol, HITRAN, and HITEMP and other similar initiatives. It generates absorption and emission spectra and other properties, including partition functions, specific heats, and cooling functions, based on molecular line lists. The code also calculates cross sections with four line profiles: Doppler, Gaussian, Lorentzian, and Voigt. PyExoCross can convert data format between ExoMol and HITRAN, and supports importing and exporting line lists in the ExoMol and HITRAN/HITEMP formats.
[ascl:1609.025]
PYESSENCE: Generalized Coupled Quintessence Linear Perturbation Python Code
PYESSENCE evolves linearly perturbed coupled quintessence models with multiple (cold dark matter) CDM fluid species and multiple DE (dark energy) scalar fields, and can be used to generate quantities such as the growth factor of large scale structure for any coupled quintessence model with an arbitrary number of fields and fluids and arbitrary couplings.
[ascl:1112.014]
PyEphem: Astronomical Ephemeris for Python
PyEphem provides scientific-grade astronomical computations for the Python programming language. Given a date and location on the Earth’s surface, it can compute the positions of the Sun and Moon, of the planets and their moons, and of any asteroids, comets, or earth satellites whose orbital elements the user can provide. Additional functions are provided to compute the angular separation between two objects in the sky, to determine the constellation in which an object lies, and to find the times at which an object rises, transits, and sets on a particular day.
The numerical routines that lie behind PyEphem are those from the <a href="http://ascl.net/1112.013">XEphem astronomy application</a> (ascl:1112.013), whose author, Elwood Downey, generously gave permission for us to use them as the basis for PyEphem.
[ascl:2509.005]
PyEMILI: Spectral line identification tool
PyEMILI automates the identification of spectral lines, especially for emission-line objects such as planetary nebulae (PNe), H II regions, and Herbig–Haro (HH) objects. The package identifies emission lines in various astronomical objects and absorption lines in stellar spectra. PyEMILI can also automatically fit the continuum of the 1D spectrum and finds lines in the spectrum; it also offers an interactive interface for manually reviewing, adding, or revising spectral lines.
[ascl:2510.020]
pyEFPE: Waveform model for inspiralling precessing-eccentric compact binaries
pyEFPE implements a frequency-domain post-Newtonian waveform model for inspiralling, precessing, eccentric compact binaries. The code computes gravitational-wave signal templates by interpolating analytical Fourier-mode amplitudes and incorporating post-Newtonian corrections to enhance numerical stability and computational speed. It provides a user interface that accepts binary system parameters such as masses, spins, and eccentricity, and returns waveform data suitable for data-analysis applications. Designed for gravitational-wave astronomy, pyEFPE enables efficient waveform generation for eccentric, spin-precessing binaries.
[ascl:2103.008]
Pyedra: Python implementation for asteroid phase curve fitting
Pyedra performs asteroid phase curve fitting. From a simple table containing the asteroid MPC number, phase angle and reduced magnitude, Pyedra estimates the parameters of the phase function using the least squares method. The user can choose from three different models for the phase curve fit: H-G model, H-G1-G2 model and the Shevchenko model. The output in all cases is a table containing the adjusted parameters and their corresponding errors. This package allows carrying out phase function analysis for a few asteroids as well as to process large volumes of data such as those released by current large surveys.
[ascl:1401.005]
PyDrizzle: Python version of Drizzle
PyDrizzle provides a semi-automated interface for computing the parameters necessary for running <a href="http://ascl.net/1212.011">Drizzle</a> (ascl:1212.011). PyDrizzle performs the task of determining the parameters necessary for aligning images based on the WCS information in the input image headers, as well as any supplemental alignment information provided in shift files, and combines the images onto the same WCS. Though it does not identify cosmic rays, it has the ability to ignore pixels flagged as bad, such as pixels identified by other programs as affected by cosmic rays.
[ascl:2106.003]
PyDoppler: Wrapper for Doppler tomography software
PyDoppler is a python-based wrapper for the Spruit Doppler tomography software dopmap (ascl:2106.002). PyDoppler is designed to study time-resolved spectroscopic datasets of accreting compact binaries. This code can produce a trail spectra of a dataset and create Doppler tomography maps. It is intended to be a light-weight code for single emission line datasets.
[ascl:2511.020]
pyDIA: Star detection, difference imaging, and photometry
pyDIA performs star detection, kernel-based difference imaging, and photometry on astronomical images. Its modular design separates routines for image alignment, image subtraction, source detection, and photometric measurement, so users can run end-to-end difference-imaging pipelines or call individual components in custom workflows. pyDIA is written in Python with some C components.
[submitted]
pydftools: Distribution function fitting in Python
pydftools is a pure-python port of the dftools R package (ascl:1805.002), which finds the most likely P parameters of a D-dimensional distribution function (DF) generating N objects, where each object is specified by D observables with measurement uncertainties. For instance, if the objects are galaxies, it can fit a MF (P=1), a mass-size distribution (P=2) or the mass-spin-morphology distribution (P=3). Unlike most common fitting approaches, this method accurately accounts for measurement in uncertainties and complex selection functions. Though this package imitates the dftools package quite closely while being as Pythonic as possible, it has not implemented 2D+ nor non-parametric.
[ascl:1509.010]
PyCS : Python Curve Shifting
PyCS is a software toolbox to estimate time delays between multiple images of strongly lensed quasars, from resolved light curves such as obtained by the COSMOGRAIL monitoring program. The pycs package defines a collection of classes and high level functions, that you can script in a flexible way. PyCS makes it easy to compare different point estimators (including your own) without much code integration. The package heavily depends on numpy, scipy, and matplotlib.
[ascl:2307.040]
pycrires: Data reduction pipeline for VLT/CRIRES+
pycrires runs the CRIRES+ recipes of EsoRex. The pipeline organizes the raw data, creates SOF and configuration files, runs the calibration and science recipes, and creates plots of the images and extracted spectra. Additionally, it corrects remaining inaccuracies in the wavelength solution and the spectrum curvature. pycrires also provides dedicated routines for the extraction, calibration, and detection of spatially-resolved objects such as directly imaged planets.
[ascl:1810.008]
pycraf: Spectrum-management compatibility
The pycraf Python package provides functions and procedures for spectrum-management compatibility studies, such as calculating the interference levels at a radio telescope produced from a radio broadcasting tower. It includes an implementation of ITU-R Recommendation P.452-16 for calculating path attenuation for the distance between an interferer and the victim service. It supports NASA's Shuttle Radar Topography Mission (SRTM) data for height-profile generation, includes a full implementation of ITU-R Rec. P.676-10, which provides two atmospheric models to calculate the attenuation for paths through Earth's atmosphere, and provides various antenna patterns necessary for compatibility studies (e.g., RAS, IMT, fixed-service links). The package can also convert power flux densities, field strengths, transmitted and received powers at certain distances and frequencies into each other.
[ascl:2004.007]
PyCosmo: Multi-purpose cosmology calculation tool
PyCosmo provides accurate predictions for cosmological observables including background quantities, power spectra and Limber and beyond-Limber angular power spectra. The software is designed to be interactive and user-friendly. It is available for download and is also offered on an interactive platform (PyCosmo Hub), which allows users to perform their own computations using Jupyter Notebooks without installing any software.
[ascl:2411.009]
pycosmicstar: PYthon cosmic STar formAtion Rate
Pycosmicstar studies the star formation history for different cosmological models. The package contains two abstract classes, cosmology and structureabstract. The class cosmology is passed as a parameter for the classes that implement structureabstract. This approach takes polymorphism into account. The modeling of structures and star formation are not strongly dependent on the cosmology. Pycosmicstar generates a new cosmological class that implements the methods of abstract class cosmology that is useful to study, for example, the role of dark energy in the cosmic star formation rate evolution.
[ascl:1210.027]
PyCosmic: Detecting cosmics in CALIFA and other fiber-fed integral-field spectroscopy datasets
The detection of cosmic ray hits (cosmics) in fiber-fed integral-field spectroscopy (IFS) data of single exposures is a challenging task because of the complex signal recorded by IFS instruments. Existing detection algorithms are commonly found to be unreliable in the case of IFS data, and the optimal parameter settings are usually unknown a priori for a given dataset. The Calar Alto legacy integral field area (CALIFA) survey generates hundreds of IFS datasets for which a reliable and robust detection algorithm for cosmics is required as an important part of the fully automatic CALIFA data reduction pipeline. PyCosmic combines the edge-detection algorithm of L.A.Cosmic with a point-spread function convolution scheme. PyCosmic is the only algorithm that achieves an acceptable detection performance for CALIFA data. Only for strongly undersampled IFS data does L.A.Cosmic exceed the performance of PyCosmic by a few percent. Thus, PyCosmic appears to be the most versatile cosmics detection algorithm for IFS data.
[ascl:2407.003]
pycosie: Python analysis code used on Technicolor Dawn
pycosie is analysis code used for Technicolor Dawn (TD), a Gadget-3 derived cosmological radiative SPH simulation suite. The target analyses are to complement what is done with TD and other analysis software in its suite. pycosie creates power spectrum from generated Lyman-alpha forests spectra, links absorbers to potential host galaxies, grids gas information for each galaxy, and reads specific output files from software such as Rockstar (ascl:1210.008) and SKID (ascl:1102.020).
[ascl:2403.009]
pycorr: Two-point correlation function estimation
pycorr wraps two-point counter engines such as Corrfunc (ascl:1703.003) to estimate the correlation function. It supports theta (angular), s, s-mu, rp-pi binning schemes, analytical two-point counts with periodic boundary conditions, and inverse bitwise weights (in any integer format) and (angular) upweighting. It also provides MPI parallelization and jackknife estimate of the correlation function covariance matrix.
[ascl:1311.002]
PyCOOL: Cosmological Object-Oriented Lattice code
PyCOOL is a Python + CUDA program that solves the evolution of interacting scalar fields in an expanding universe. PyCOOL uses modern GPUs to solve this evolution and to make the computation much faster. The code includes numerous post-processing functions that provide useful information about the cosmological model, including various spectra and statistics of the fields.
[ascl:2303.007]
PyCom: Interstellar communication
PyCom provides function calls for deriving the optimal communication scheme to maximize the data rate between a remote probe and home-base. It includes models for the loss of photons from diffraction, technological limitations, interstellar extinction and atmospheric transmission, and manages major atmospheric, zodiacal, stellar and instrumental noise sources. It also includes scripts for creating figures appearing in the referenced paper.
[ascl:1509.007]
pycola: N-body COLA method code
pycola is a multithreaded Python/Cython N-body code, implementing the Comoving Lagrangian Acceleration (COLA) method in the temporal and spatial domains, which trades accuracy at small-scales to gain computational speed without sacrificing accuracy at large scales. This is especially useful for cheaply generating large ensembles of accurate mock halo catalogs required to study galaxy clustering and weak lensing. The COLA method achieves its speed by calculating the large-scale dynamics exactly using LPT while letting the N-body code solve for the small scales, without requiring it to capture exactly the internal dynamics of halos.
[ascl:1304.020]
pyCloudy: Tools to manage astronomical Cloudy photoionization code
PyCloudy is a Python library that handles input and output files of the <a href="http://ascl.net/9910.001">Cloudy photoionization code</a> (Gary Ferland). It can also generate 3D nebula from various runs of the 1D Cloudy code. pyCloudy allows you to:
- define and write input file(s) for Cloudy code. As you can have it in a code, you may generate automatically sets of input files, changing parameters from one to the other.
- read the Cloudy output files and play with the data: you will be able to plot line emissivity ratio vs. the radius of the nebula, the electron temperature, or any Cloudy output.
- build pseudo-3D models, a la <a href="http://ascl.net/1103.015">Cloudy_3D</a>, by running a set of models, changing parameters (e.g. inner radius, density) following angular laws, reading the outputs of the set of models and interpolating the results (Te, ne, line emissivities) in a 3D cube.
[submitted]
Pyckles
A super lightweight interface in Python to load spectra from the Pickles 1998 (stellar) and Brown 2014 (galactic) spectral catalogues
[ascl:2312.034]
pycheops: Light curve analysis for ESA CHEOPS data
Maxted, P. F. L.;
Ehrenreich, D.;
Wilson, T. G.;
Alibert, Y.;
Cameron, A. Collier;
Hoyer, S.;
Sousa, S. G.;
Olofsson, G.;
Bekkelien, A.;
Deline, A.;
Delrez, L.;
Bonfanti, A.;
Borsato, L.;
Alonso, R.;
Anglada Escudé, G.;
Barrado, D.;
Barros, S. C. C.;
Baumjohann, W.;
Beck, M.;
Beck, T.;
Benz, W.;
Billot, N.;
Biondi, F.;
Bonfils, X.;
Brandeker, A.;
Broeg, C.;
Bárczy, T.;
Cabrera, J.;
Charnoz, S.;
Corral Van Damme, C.;
Csizmadia, Sz;
Davies, M. B.;
Deleuil, M.;
Demangeon, O. D. S.;
Demory, B. -O.;
Erikson, A.;
Florén, H. G.;
Fortier, A.;
Fossati, L.;
Fridlund, M.;
Futyan, D.;
Gandolfi, D.;
Gillon, M.;
Guedel, M.;
Guterman, P.;
Heng, K.;
Isaak, K. G.;
Kiss, L.;
Laskar, J.;
Lecavelier des Etangs, A.;
Lendl, M.;
Lovis, C.;
Magrin, D.;
Nascimbeni, V.;
Ottensamer, R.;
Pagano, I.;
Pallé, E.;
Peter, G.;
Piotto, G.;
Pollacco, D.;
Pozuelos, F. J.;
Queloz, D.;
Ragazzoni, R.;
Rando, N.;
Rauer, H.;
Reimers, C.;
Ribas, I.;
Salmon, S.;
Santos, N. C.;
Scandariato, G.;
Simon, A. E.;
Smith, A. M. S.;
Steller, M.;
Swayne, M. I.;
Szabó, Gy M.;
Ségransan, D.;
Thomas, N.;
Udry, S.;
Van Grootel, V.;
Walton, N. A.
pycheops analyzes CHEOPS light curve data. The models in the package can also be applied to other types of data. pycheops includes a "cook book" and examples; in addition, it provides a command-line tool that aids in the preparation of observing requests for CHEOPS observers.
[submitted]
pycf3 - Cosmicflows-3 Distance-Velocity Calculator client for Python
The project is a simple Python client for Cosmicflows-3 Distance-Velocity Calculator at distances less than 400 Mpc (http://edd.ifa.hawaii.edu/CF3calculator/)
Compute expectation distances or velocities based on smoothed velocity field from the Wiener filter model of https://ui.adsabs.harvard.edu/abs/2019MNRAS.488.5438G/abstract.
[ascl:2112.001]
pycelp: Python package for Coronal Emission Line Polarization
pyCELP (aka "pi-KELP") calculates Coronal Emission Line Polarization. It forward synthesizes the polarized emission of ionized atoms formed in the solar corona and calculates the atomic density matrix elements for a single ion under coronal equilibrium conditions and excited by a prescribed radiation field and thermal collisions. pyCELP solves a set of statistical equilibrium equations in the spherical statistical tensor representation for a multi-level atom for the no-coherence case. This approximation is useful in the case of forbidden line emission by visible and infrared lines, such as Fe XIII 1074.7 nm and Si X 3934 nm.
[ascl:2504.006]
pycdata: Dataset importer for pycheops
pycdata imports datasets from various telescopes/instruments in pycheops (ascl:2312.034), thus providing the facility pycheops lacks to model transits, eclipses, phase curves from other telescopes/instruments and the PSF photometry produced by PIPE (ascl:2404.002). pycdata automatically puts resultant data products into the pycheops cache directory so that it can be directly readable from the pycheops command line.
[ascl:1805.032]
PyCCF: Python Cross Correlation Function for reverberation mapping studies
PyCCF emulates a Fortran program written by B. Peterson for use with reverberation mapping. The code cross correlates two light curves that are unevenly sampled using linear interpolation and measures the peak and centroid of the cross-correlation function. In addition, it is possible to run Monte Carlo iterations using flux randomization and random subset selection (RSS) to produce cross-correlation centroid distributions to estimate the uncertainties in the cross correlation results.
[ascl:1805.030]
PyCBC: Gravitational-wave data analysis toolkit
PyCBC analyzes data from gravitational-wave laser interferometer detectors, finds signals, and studies their parameters. It contains algorithms that can detect coalescing compact binaries and measure the astrophysical parameters of detected sources. PyCBC was used in the first direct detection of gravitational waves by LIGO and is used in the ongoing analysis of LIGO and Virgo data.
[ascl:2601.003]
PyCatIndex: Flexible pipeline for measuring Calcium II Triplet line strengths
The PyCatIndex pipeline automates the measurement of Equivalent Widths (EW) for the near-infrared Calcium II Triplet lines (~850 nm) in stellar spectra. The tool also performs the radial velocity correction via cross-correlation, robust continuum normalization using iterative polynomial fitting, and automated line profile fitting. PyCatIndex supports multiple analytical profiles, including Gaussian, Rutledge, and a combined Gaussian+Lorentzian model, with optimization performed through either Levenberg-Marquardt least-squares or Markov Chain Monte Carlo methods using emcee (ascl:1303.002). The code is highly configurable via a single YAML file, allowing users to define custom passbands and manage batch processing of large spectral datasets in FITS, CSV, or ASCII formats. PyCatIndex provides diagnostic multi-panel plots for quality control and outputs a comprehensive results table including signal-to-noise estimates and fit uncertainties.
[ascl:2206.021]
PyCASSO2: Stellar population and emission line fits in integral field spectra
PyCASSO runs the STARLIGHT code (ascl:1108.006) in integral field spectra (IFS). Cubes from various instruments are supported, including PMAS/PPAK (CALIFA), MaNGA, GMOS and MUSE. Emission lines can be measured using DOBBY, which is included in the package. The package also includes tools for IFS cubes analysis and plotting.
[ascl:2509.015]
pyCARPool: Convergence Acceleration by Regression and Pooling
pyCARPool provides a custom class and functions to implement the Convergence Acceleration by Regression and Pooling (CARPool) method; this method exploits the correlation between simulations and surrogates to compute fast, reduced-variance statistics of large-scale structure observables without model error at the cost of only a few simulations. The method's estimates are unbiased, and achieve unbiased variance reduction factors of up to ∼10 without any further tuning. CARPool can also remove model error from ensembles of fast surrogates by combining them with a few high-accuracy simulations.
[ascl:2511.013]
PyCALI: Intercalibrate light curves
PyCALI intercalibrates astronomical light curves using a Bayesian MCMC framework. It applies additive and multiplicative factors to light curves to bring them into a common scale by modeling the variability with a damped random walk process. Systematic error factors and error scale factors can also be incorporated.
[ascl:2107.017]
PyCactus: Post-processing tools for Cactus computational toolkit simulation data
PyCactus contains tools for postprocessing data from numerical simulations performed with the Einstein Toolkit, based on the Cactus computational toolkit. The main package is PostCactus, which provides a high-level Python interface to the various data formats in a simulation folder. Further, the package SimRep allows the automatic creation of html reports for a simulation, and the SimVideo package allows the creation of movies visualizing simulation data.