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.

Files changed (59) hide show
  1. AeroViz/dataProcess/Chemistry/_mass_volume.py +4 -3
  2. AeroViz/dataProcess/Chemistry/_ocec.py +20 -7
  3. AeroViz/dataProcess/Optical/_IMPROVE.py +2 -3
  4. AeroViz/dataProcess/SizeDistr/__init__.py +6 -10
  5. AeroViz/plot/__init__.py +1 -0
  6. AeroViz/plot/meteorology/meteorology.py +2 -0
  7. AeroViz/plot/optical/optical.py +1 -1
  8. AeroViz/plot/pie.py +14 -2
  9. AeroViz/plot/radar.py +184 -0
  10. AeroViz/plot/scatter.py +16 -7
  11. AeroViz/plot/templates/koschmieder.py +11 -8
  12. AeroViz/plot/timeseries/timeseries.py +0 -1
  13. AeroViz/rawDataReader/__init__.py +75 -70
  14. AeroViz/rawDataReader/config/supported_instruments.py +70 -38
  15. AeroViz/rawDataReader/core/__init__.py +208 -178
  16. AeroViz/rawDataReader/script/AE33.py +1 -1
  17. AeroViz/rawDataReader/script/AE43.py +1 -1
  18. AeroViz/rawDataReader/script/APS_3321.py +2 -2
  19. AeroViz/rawDataReader/script/Aurora.py +1 -1
  20. AeroViz/rawDataReader/script/BC1054.py +1 -1
  21. AeroViz/rawDataReader/script/EPA.py +39 -0
  22. AeroViz/rawDataReader/script/GRIMM.py +1 -1
  23. AeroViz/rawDataReader/script/IGAC.py +6 -23
  24. AeroViz/rawDataReader/script/MA350.py +1 -1
  25. AeroViz/rawDataReader/script/Minion.py +102 -30
  26. AeroViz/rawDataReader/script/NEPH.py +1 -1
  27. AeroViz/rawDataReader/script/{Sunset_OCEC.py → OCEC.py} +2 -2
  28. AeroViz/rawDataReader/script/SMPS.py +77 -0
  29. AeroViz/rawDataReader/script/TEOM.py +2 -2
  30. AeroViz/rawDataReader/script/VOC.py +2 -2
  31. AeroViz/rawDataReader/script/XRF.py +11 -0
  32. AeroViz/rawDataReader/script/__init__.py +4 -6
  33. {AeroViz-0.1.5.dist-info → AeroViz-0.1.7.dist-info}/METADATA +57 -32
  34. {AeroViz-0.1.5.dist-info → AeroViz-0.1.7.dist-info}/RECORD +37 -55
  35. AeroViz/process/__init__.py +0 -31
  36. AeroViz/process/core/DataProc.py +0 -19
  37. AeroViz/process/core/SizeDist.py +0 -90
  38. AeroViz/process/core/__init__.py +0 -4
  39. AeroViz/process/method/PyMieScatt_update.py +0 -567
  40. AeroViz/process/method/__init__.py +0 -2
  41. AeroViz/process/method/mie_theory.py +0 -260
  42. AeroViz/process/method/prop.py +0 -62
  43. AeroViz/process/script/AbstractDistCalc.py +0 -143
  44. AeroViz/process/script/Chemical.py +0 -177
  45. AeroViz/process/script/IMPACT.py +0 -49
  46. AeroViz/process/script/IMPROVE.py +0 -161
  47. AeroViz/process/script/Others.py +0 -65
  48. AeroViz/process/script/PSD.py +0 -103
  49. AeroViz/process/script/PSD_dry.py +0 -93
  50. AeroViz/process/script/__init__.py +0 -5
  51. AeroViz/process/script/retrieve_RI.py +0 -69
  52. AeroViz/rawDataReader/script/EPA_vertical.py +0 -46
  53. AeroViz/rawDataReader/script/SMPS_TH.py +0 -41
  54. AeroViz/rawDataReader/script/SMPS_aim11.py +0 -51
  55. AeroViz/rawDataReader/script/SMPS_genr.py +0 -51
  56. AeroViz/rawDataReader/script/Table.py +0 -27
  57. {AeroViz-0.1.5.dist-info → AeroViz-0.1.7.dist-info}/LICENSE +0 -0
  58. {AeroViz-0.1.5.dist-info → AeroViz-0.1.7.dist-info}/WHEEL +0 -0
  59. {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()