Quality control routines for CloudnetPy products
Project description
CloudnetPy-QC
Software for evaluating quality of ACTRIS-Cloudnet data products.
Installation
$ pip3 install cloudnetpy-qc
Usage
import json
from pathlib import Path
from cloudnetpy_qc import quality
report = quality.run_tests(Path('cloudnet-file.nc'))
json_object = json.dumps(report, indent=2)
print(json_object)
Format of the report
timestamp
: UTC timestamp of the testqcVersion
:cloudnetpy-qc
versiontests
:Test[]
Test
testId
: Unique name of the testdescription
: Free-form description of the testexceptions
:Exception[]
Exception
message
: Free-form message about the exceptionresult
:"error"
or"warning"
Example:
{
"timestamp": "2022-10-13T07:00:26.906815Z",
"qcVersion": "1.1.2",
"tests": [
{
"testId": "TestUnits",
"description": "Test that unit attribute of variable matches expected value",
"exceptions": []
},
{
"testId": "TestInstrumentPid",
"description": "Test that valid instrument PID exists",
"exceptions": [
{
"message": "Instrument PID is missing.",
"result": "warning"
}
]
},
{
"testId": "TestTimeVector",
"description": "Test that time vector is continuous",
"exceptions": []
},
{
"testId": "TestVariableNames",
"description": "Find missing variables",
"exceptions": []
},
{
"testId": "TestCFConvention",
"description": "Test that file passes CF convention",
"exceptions": []
}
]
}
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cloudnetpy_qc-1.2.0.tar.gz
(10.7 kB
view hashes)
Built Distribution
Close
Hashes for cloudnetpy_qc-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 672704011ad520ff2967645c8b80b66c7ac3634f8447034e813166537d73afa0 |
|
MD5 | 7953a90a2c2b446c123ceb68c3d9812e |
|
BLAKE2b-256 | 46bd6896646ec9c362a550c8a7ca90129e2c2247e7f14c8e3c1fb3e155583b8b |