EnviroDataQC
This library provides a framework for assessing quality of environmental data.
Data is assessed with respect to:
- Data Range
- Data rate of change
- Data flatlining
Additionally, special methods are provided for assessing wind speed and direction data. Data is classified as either suspicious or bad based on either default or custom user settings.
Installation
pip install envirodataqc
The configuration file is currently a python script in the package, so it may be easier to clone the repository rather than install from PYPI if you want to change the configuration.
Basic Use
Pass data (Pandas series) and measurement type to check_vals(). A Pandas dataframe is returned with three new columns: 'flags_range', 'flags_rate', 'flags_flat'. Measurement types supported are defined in 'QCconfig.py'.
Flags:
- 0 : Good
- 1 : Suspicious
- 2 : Bad
Configuration
Change and/or add dictionaries defined in 'QCconfig.py'. Dictionary entries define "good" ranges and "suspicious" ranges for each flag category. Configuration ranges can be non-continuous and any overlap between "good" and "suspicious" ranges will be flagged as "good".
Wind specific checks
- check_windsp_ratio - Check ratio of mean windspeed to max
- check_windsp_withdir - Check if windspeed is consistent with direction
- check_winddir_withsp - Check if direction is consistent with windspeed
Other Functions
- check_gaps(index) - Given a Pandas datetime index outputs total time where gaps between timestamps are > 1hr.
- daily_quality(data) - Given a Pandas series (index=timestamp, values=data flags), return a pandas series with a consolidated daily quality level (0,1,2)
Metadata
Release files for envirodataqc 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| envirodataqc-0.3.1.tar.gz | 8.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| envirodataqc-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.2 kB
Release files / envirodataqc-0.3.1.tar.gz
| Download URL | envirodataqc-0.3.1.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f56b99857ccb371e9f4e29dff0fa444a74b36296303a17a0e8a20e595300e8bf
|
|
BLAKE2b-256 checksum How to use checksums |
c39e9f6f785ffc355325025ed4b6607c7f8565e4a3aab6d87a4a744dd818297d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7
|
Release files / envirodataqc-0.3.1-py3-none-any.whl
| Download URL | envirodataqc-0.3.1-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac646afb90c0b55323a0158cf5798c5c588b91d2da883a74769a1b7dd9a546ea
|
|
BLAKE2b-256 checksum How to use checksums |
70ef133067f41da9648f816fb78fef581b5175dd64bedf6f827682826c991017
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7
|
Security for envirodataqc 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.