part2pop
A unified analysis framework for standardizing aerosol populations from models, observations, and parameterizations.
part2pop is a lightweight Python library that provides a standardized representation of aerosol particles and populations. By translating model-derived, observation-constrained, and parameterized population descriptions into a common particle-population interface, particle-level process models and diagnostics can be applied consistently across data sources. Its modular, registry-based architecture keeps extension points explicit, supporting extensible population builders, reusable analyses, and maintainable development by both researchers and AI coding assistants.
Features
- Standardized aerosol representation via
AerosolSpecies,Particle, andParticlePopulation - Species registry with density, hygroscopicity (
kappa), molar mass, and surface tension - Population builders for monodisperse, lognormal, sampled, observation-based, and model-derived populations
- Optical-property builders supporting homogeneous spheres, core-shell particles, and fractal aggregates
- Freezing-property builders for immersion-freezing metrics
- Analysis utilities for size distributions, hygroscopic growth, CCN activation, optical properties, freezing diagnostics, and bulk moments
- Visualization tools for time series, size distributions, optical coefficients, and freezing curves
Installation
pip install part2pop
For development:
git clone https://github.com/pnnl/part2pop.git
cd part2pop
pip install -e .
Quick start
from part2pop.population.builder import build_population
config = {
"type": "monodisperse",
"N": [1.0e8],
"D": [0.2e-6],
"aero_spec_names": [["SO4", "BC"]],
"aero_spec_fracs": [[0.7, 0.3]],
"D_is_wet": False,
}
pop = build_population(config)
print(pop.get_Ntot())
print([species.name for species in pop.species])
For end-to-end analysis and plotting workflows, see the notebooks in examples/.
Documentation
User documentation is available in docs/, including:
Contributing and support
Please use GitHub Issues for bug reports, questions, and feature requests. See CONTRIBUTING.md for contribution guidelines.
Research use and integrations
part2pop is used as a shared aerosol-population layer in related research software.
- In LD-Chem,
part2popis a core dependency for constructing particle populations used as model input and for analyzing model output. - In AMBRS,
part2popprovides a unified population representation and diagnostic framework for comparing aerosol box-model output.
License
part2pop is distributed under the MIT License. See the LICENSE file for details.
Metadata
Release files for part2pop 1.1.0
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 |
|---|---|---|---|---|
| part2pop-1.1.0.tar.gz | 11.9 MB | Without provenance | Details for part2pop-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| part2pop-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for part2pop-1.1.0-py3-none-any.whl |
Total release size: 12.0 MB
Release files / part2pop-1.1.0.tar.gz
| Download URL | part2pop-1.1.0.tar.gz |
|---|---|
| Size | 11.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe09843a2f76b4f7c07f02107f355df107485adfd131ce9536cb3bd17f578ad8
|
|
BLAKE2b-256 checksum How to use checksums |
c8e7d2a143fdfcba999ee817a442fd9d9766c271c315459cc789f1a61dec9950
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / part2pop-1.1.0-py3-none-any.whl
| Download URL | part2pop-1.1.0-py3-none-any.whl |
|---|---|
| Size | 149.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f7223ce456e1c0244128efcc89d0b8ca23d93753380a346c093f060d4d897c8b
|
|
BLAKE2b-256 checksum How to use checksums |
84222987d86ecc9c64561c968f30d055eba481c4162b38cc5c15785ef86200ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for part2pop 1.1.0
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.