Skip to main content

UAV instrument data processing

Project description

UAVision

UAVision is a Python package for UAV instrument data processing (particle counters, BME sensors, POPS, mCDA, OPC). It provides preprocessing utilities, concentration calculations.

Features

  • Preprocessing helpers and utilities for particle counters and sensor streams
  • Concentration / lag helpers for aerosol instruments (OPC / Mavic-like devices)
  • Bundled bin-edge and mid-bin resources for common instrument presets
  • Lazy-loading top-level submodules for fast imports

Package layout

Top-level submodules (imported lazily): mavic, bme, cpc, mcda, pops

Installation

From PyPI (when published):

pip install UAVision

From local source (development install):

git clone https://github.com/vietle94/UAVision.git
cd UAVision
pip install -e .

Quick usage

Show package version and available submodules:

import UAVision
print(UAVision.__version__)
print(UAVision.__all__)  # declared submodules

Access a submodule (imports lazily on first access):

#    mCDA processing, calculate derived parameters as well
from UAVision.mcda.preprocess import preprocess_mcda
df = preprocess_mcda("data_path/datafile.csv", # path to mcda csv file (string)
                    size) # size category string, one of the following
#                           ['PSL_0.6-40', 'PSL_0.15-17', 'water_0.6-40', 'water_0.15-17'] OR
#                           an array-like of mid-bin values (list/tuple/ndarray)
#                           If an array-like is provided, it must be length 256.
#    return: processed dataframe

#    POPS processing
from UAVision.pops.preprocess import preprocess_pops
df = preprocess_pops("data_path/datafile.csv", # path to pops csv file (string)
                    size=None, # optional. If None uses bundled pops_binedges (bin edges).
                            # If array-like is provided it must be the bin edges with length 17.
                    drop_aux=True) # bool, if True drop auxiliary columns (default True).
                            # If False keep them.
#    return: processed dataframe


#    CPC processing
from UAVision.cpc.preprocess import preprocess_cpc
df = preprocess_cpc("data_path/datafile.csv") # path to cpc csv file (string)
#    return: processed dataframe


#    BME processing
from UAVision.bme.preprocess import preprocess_bme
df = preprocess_bme("data_path/datafile.csv") # path to bme csv file (string)
#    return: processed dataframe

####################################################################################
# Check default bins
####################################################################################
# Check the mcda bins
mcda_midbin_all = UAVision.mcda.preprocess.mcda_midbin_all
print(mcda_midbin_all["water_0.15-17"])


# Check the pops bins
pops_binedges = UAVision.pops.preprocess.pops_binedges
print(pops_binedges)


# Check the OPC bins
# OPC N2
n2_binedges = UAVision.mavic.preprocess.n2_binedges
print(n2_binedges)

# OPC N3
n3_binedges = UAVision.mavic.preprocess.n3_binedges
print(n3_binedges)

Contributing / Contact

Github: https://github.com/vietle94/UAVision

Author: viet.le@fmi.fi — pull requests and bug reports welcome.

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

uavision-1.0.6.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

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

uavision-1.0.6-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

Details for the file uavision-1.0.6.tar.gz.

File metadata

  • Download URL: uavision-1.0.6.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for uavision-1.0.6.tar.gz
Algorithm Hash digest
SHA256 e68978d20b94294ac247195573c90bce087e6b1fb4e38854d88f2de1f7f77347
MD5 d5ae5e9a1e079af50540c0391f440e2c
BLAKE2b-256 c8e5b0b8e3aca6e435f121a38554cc042fe22e9bddc9a32501c8476656e9e9b5

See more details on using hashes here.

File details

Details for the file uavision-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: uavision-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 22.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for uavision-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a4b8b28932d1286a0e1bba3fd21824ff36f249fc7e7a12d8d72543b07cbaa7ce
MD5 8ea79db17ebf599351aad3771fddcdaf
BLAKE2b-256 a72483a64073599e6d12197e225eed747dd6b9847c00adf153d2048dc3ea46bb

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