Metadata-Version: 2.4
Name: UAVision
Version: 1.0.1
Summary: UAV instrument data processing
Author-email: VIET LE <viet.le@fmi.fi>
License: MIT License
        
        Copyright (c) 2019-2025 Finnish Meteorological Institute
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: matplotlib
Requires-Dist: pandas
Dynamic: license-file

# 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 and derived metrics for MCDA, POPS and other instruments.
- OPC / Mavic helpers for concentration and lag calculations.
- Included bin-edge resources for common instruments (mcda, pops, opc).
- For mcda, there are 4 options for sizes: ['PSL_0.6-40', 'PSL_0.15-17', 'water_0.6-40', 'water_0.15-17']

## Key modules (examples)
- UAVision.preprocess — functions like preprocess_mcda, preprocess_pops, calculate_height_df.
- UAVision.mavic.preprocess — functions like calculate_concentration, calculate_lag.

## Example usage
```sh
from UAVision.preprocess import preprocess_mcda
df = preprocess_mcda("data_path/datafile.csv", size="water_0.15-17")
```
The bins and bins can be found as
```sh
import UAVision

mcda_midbin_all = UAVision.preprocess.mcda_midbin_all
print(mcda_midbin_all["water_0.15-17"])

pops_binedges = UAVision.preprocess.pops_binedges
print(pops_binedges)

import UAVision.mavic
n2_binedges = UAVision.mavic.preprocess.n2_binedges
print(n2_binedges)

n3_binedges = UAVision.mavic.preprocess.n3_binedges
print(n3_binedges)
```

# Contributing / Contact
Author: viet.le@fmi.fi — pull requests and bug reports welcome.
