AeroViz 0.1.5__py3-none-any.whl → 0.1.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of AeroViz might be problematic. Click here for more details.
- AeroViz/dataProcess/Chemistry/_mass_volume.py +4 -3
- AeroViz/dataProcess/Chemistry/_ocec.py +20 -7
- AeroViz/dataProcess/Optical/_IMPROVE.py +2 -3
- AeroViz/dataProcess/SizeDistr/__init__.py +6 -10
- AeroViz/plot/__init__.py +1 -0
- AeroViz/plot/meteorology/meteorology.py +2 -0
- AeroViz/plot/optical/optical.py +1 -1
- AeroViz/plot/pie.py +14 -2
- AeroViz/plot/radar.py +184 -0
- AeroViz/plot/scatter.py +16 -7
- AeroViz/plot/templates/koschmieder.py +11 -8
- AeroViz/plot/timeseries/timeseries.py +0 -1
- AeroViz/rawDataReader/__init__.py +75 -70
- AeroViz/rawDataReader/config/supported_instruments.py +70 -38
- AeroViz/rawDataReader/core/__init__.py +208 -178
- AeroViz/rawDataReader/script/AE33.py +1 -1
- AeroViz/rawDataReader/script/AE43.py +1 -1
- AeroViz/rawDataReader/script/APS_3321.py +2 -2
- AeroViz/rawDataReader/script/Aurora.py +1 -1
- AeroViz/rawDataReader/script/BC1054.py +1 -1
- AeroViz/rawDataReader/script/EPA.py +39 -0
- AeroViz/rawDataReader/script/GRIMM.py +1 -1
- AeroViz/rawDataReader/script/IGAC.py +6 -23
- AeroViz/rawDataReader/script/MA350.py +1 -1
- AeroViz/rawDataReader/script/Minion.py +102 -30
- AeroViz/rawDataReader/script/NEPH.py +1 -1
- AeroViz/rawDataReader/script/{Sunset_OCEC.py → OCEC.py} +2 -2
- AeroViz/rawDataReader/script/SMPS.py +77 -0
- AeroViz/rawDataReader/script/TEOM.py +2 -2
- AeroViz/rawDataReader/script/VOC.py +2 -2
- AeroViz/rawDataReader/script/XRF.py +11 -0
- AeroViz/rawDataReader/script/__init__.py +4 -6
- {AeroViz-0.1.5.dist-info → AeroViz-0.1.7.dist-info}/METADATA +57 -32
- {AeroViz-0.1.5.dist-info → AeroViz-0.1.7.dist-info}/RECORD +37 -55
- AeroViz/process/__init__.py +0 -31
- AeroViz/process/core/DataProc.py +0 -19
- AeroViz/process/core/SizeDist.py +0 -90
- AeroViz/process/core/__init__.py +0 -4
- AeroViz/process/method/PyMieScatt_update.py +0 -567
- AeroViz/process/method/__init__.py +0 -2
- AeroViz/process/method/mie_theory.py +0 -260
- AeroViz/process/method/prop.py +0 -62
- AeroViz/process/script/AbstractDistCalc.py +0 -143
- AeroViz/process/script/Chemical.py +0 -177
- AeroViz/process/script/IMPACT.py +0 -49
- AeroViz/process/script/IMPROVE.py +0 -161
- AeroViz/process/script/Others.py +0 -65
- AeroViz/process/script/PSD.py +0 -103
- AeroViz/process/script/PSD_dry.py +0 -93
- AeroViz/process/script/__init__.py +0 -5
- AeroViz/process/script/retrieve_RI.py +0 -69
- AeroViz/rawDataReader/script/EPA_vertical.py +0 -46
- AeroViz/rawDataReader/script/SMPS_TH.py +0 -41
- AeroViz/rawDataReader/script/SMPS_aim11.py +0 -51
- AeroViz/rawDataReader/script/SMPS_genr.py +0 -51
- AeroViz/rawDataReader/script/Table.py +0 -27
- {AeroViz-0.1.5.dist-info → AeroViz-0.1.7.dist-info}/LICENSE +0 -0
- {AeroViz-0.1.5.dist-info → AeroViz-0.1.7.dist-info}/WHEEL +0 -0
- {AeroViz-0.1.5.dist-info → AeroViz-0.1.7.dist-info}/top_level.txt +0 -0
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
from pandas import to_datetime, read_table, to_numeric
|
|
2
|
-
|
|
3
|
-
from AeroViz.rawDataReader.core import AbstractReader
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class Reader(AbstractReader):
|
|
7
|
-
nam = 'SMPS_genr'
|
|
8
|
-
|
|
9
|
-
def _raw_reader(self, file):
|
|
10
|
-
with open(file, 'r', encoding='utf-8', errors='ignore') as f:
|
|
11
|
-
|
|
12
|
-
skiprows = 0
|
|
13
|
-
for _line in f:
|
|
14
|
-
|
|
15
|
-
if _line.split('\t')[0] == 'Sample #':
|
|
16
|
-
f.seek(0)
|
|
17
|
-
break
|
|
18
|
-
|
|
19
|
-
skiprows += 1
|
|
20
|
-
|
|
21
|
-
_df = read_table(f, skiprows=skiprows)
|
|
22
|
-
_tm_idx = to_datetime(_df['Date'] + _df['Start Time'], format='%m/%d/%y%X', errors='coerce')
|
|
23
|
-
|
|
24
|
-
# index
|
|
25
|
-
_df = _df.set_index(_tm_idx).loc[_tm_idx.dropna()]
|
|
26
|
-
|
|
27
|
-
# keys
|
|
28
|
-
_key = to_numeric(_df.keys(), errors='coerce')
|
|
29
|
-
_df.columns = _key
|
|
30
|
-
_df = _df.loc[:, ~_key.isna()]
|
|
31
|
-
|
|
32
|
-
return _df.apply(to_numeric, errors='coerce')
|
|
33
|
-
|
|
34
|
-
# QC data
|
|
35
|
-
def _QC(self, _df):
|
|
36
|
-
import numpy as n
|
|
37
|
-
|
|
38
|
-
# mask out the data size lower than 7
|
|
39
|
-
_df['total'] = _df.sum(axis=1, min_count=1) * (n.diff(n.log(_df.keys().to_numpy(float)))).mean()
|
|
40
|
-
_df_size = _df['total'].dropna().resample('1h').size().resample(_df.index.freq).ffill()
|
|
41
|
-
_df = _df.mask(_df_size < 7)
|
|
42
|
-
|
|
43
|
-
# remove total conc. lower than 2000
|
|
44
|
-
_df = _df.mask(_df['total'] < 2000)
|
|
45
|
-
|
|
46
|
-
# remove the bin over 400 nm which num. conc. larger than 4000
|
|
47
|
-
_df_remv_ky = _df.keys()[:-2][_df.keys()[:-2] >= 400.]
|
|
48
|
-
|
|
49
|
-
_df[_df_remv_ky] = _df[_df_remv_ky].copy().mask(_df[_df_remv_ky] > 4000.)
|
|
50
|
-
|
|
51
|
-
return _df[_df.keys()[:-1]]
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# read meteorological data from google sheet
|
|
2
|
-
|
|
3
|
-
from pandas import read_csv, to_datetime
|
|
4
|
-
|
|
5
|
-
from AeroViz.rawDataReader.core import AbstractReader
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class Reader(AbstractReader):
|
|
9
|
-
nam = 'Table'
|
|
10
|
-
|
|
11
|
-
def _raw_reader(self, file):
|
|
12
|
-
with file.open('r', encoding='utf-8-sig', errors='ignore') as f:
|
|
13
|
-
_df = read_csv(f, low_memory=False, index_col=0)
|
|
14
|
-
|
|
15
|
-
_df.index = to_datetime(_df.index, errors='coerce')
|
|
16
|
-
_df.index.name = 'time'
|
|
17
|
-
|
|
18
|
-
_df.columns = _df.keys().str.strip(' ')
|
|
19
|
-
|
|
20
|
-
return _df.loc[~_df.index.duplicated() & _df.index.notna()]
|
|
21
|
-
|
|
22
|
-
def _QC(self, _df):
|
|
23
|
-
# remove negative value
|
|
24
|
-
_df = _df.mask((_df < 0).copy())
|
|
25
|
-
|
|
26
|
-
# QC data in 6h
|
|
27
|
-
return _df.resample('6h').apply(self.basic_QC).resample(self.meta.get("freq")).mean()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|