Skip to main content

Tools for loading and analyzing aerosol instrument data

Project description

aerosoltools

Tools for loading and analyzing aerosol instrument data

License Python Tests Docs PyPI version

Overview

aerosoltools is a Python library developed at NFA for loading, processing, analyzing, and plotting data from a variety of aerosol instruments. It provides a consistent data structure for time-resolved and size-resolved measurements using Aerosol1D, Aerosol2D, and AerosolAlt classes.

The package includes loaders for common instrument exports and a batch-loading utility for processing entire folders.

For the full documenation, and examples of use, visit:

View the documentation


🧰 Provided Loaders

Instrument Function Company
Aethalometer Load_Aethalometer_file() Magee Scientific
CPC Load_CPC_file() TSI Inc.
DiSCmini Load_DiSCmini_file() Testo
ELPI Load_ELPI_file() Dekati Ltd.
FMPS Load_FMPS_file() TSI Inc.
Fourtec Load_Fourtec() Fourtec Technologies
Grimm Load_Grimm_file() GRIMM Aerosol Technik
NS (NanoScan) Load_NS_file() TSI Inc.
OPC-N3 Load_OPCN3_file() Alphasense Ltd.
OPS Load_OPS_file() TSI Inc.
Partector Load_Partector_file() naneos GmbH
SMPS Load_SMPS_file() TSI Inc.

✨ Features

  • Unified interface for loaded aerosoldata, automatically handling:
    • Datetime conversion
    • Particle data formatting
    • Bin edge/midpoint parsing
    • Dtype tracking e.g. dN, dV, dM, dS as well as normalization via dlogDp
    • Metadata extraction
  • Batch loading via Load_data_from_folder()
  • Functions for time shifting, cropping, rebinning, and smoothing
  • Enables segmentation to group datapoints within specifc timeframes
  • Returns structured objects for plotting, statistics, or export
  • Functions to plot timeseries, PSD, and correlation plots

📦 Installation

The package is available via PyPI and can therefore be installed as:

 pip install aerosoltools 

Quickstart

Load a single instrument file

import aerosoltools as at
elpi = at.Load_ELPI_file("data/elpi_sample.txt")
elpi.plot_timeseries() 

Access metadata

elpi.metadata 

Batch-load a folder of files

folder_path = "data/cpc_campaign/"
data = at.Load_data_from_folder(folder_path, loader=at.Load_CPC_file) 

📄 License

This project is licensed under the MIT License — see the LICENSE file for details.


🙌 Acknowledgments

Developed by the NRCWE / NFA community to standardize and accelerate aerosol data workflows.

Feel free to contribute, submit issues, or request support!

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

aerosoltools-0.0.0.tar.gz (38.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aerosoltools-0.0.0-py3-none-any.whl (46.7 kB view details)

Uploaded Python 3

File details

Details for the file aerosoltools-0.0.0.tar.gz.

File metadata

  • Download URL: aerosoltools-0.0.0.tar.gz
  • Upload date:
  • Size: 38.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for aerosoltools-0.0.0.tar.gz
Algorithm Hash digest
SHA256 566bcda82992a3ff589bb348820609d9832cd8b0aac0df378947c40545bab0a4
MD5 376c5e61d7ea47a1fb44ecd1a5dcd4fc
BLAKE2b-256 c124de12bb1620097f93d594ebc065cffd7d0bbd17f50cb226623e1345b887e9

See more details on using hashes here.

File details

Details for the file aerosoltools-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: aerosoltools-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 46.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for aerosoltools-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 abd91eddf7a7720dbe6f35363e120aaa16350d9cceeeeb9eae32cb4ec8dcd91c
MD5 8690b3c74635196b1dab4b971f06bd73
BLAKE2b-256 30f15f9da6f93515a03750add5303f97e1761cb1c4a328fc05da854a4f58cbf7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page