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 cloudnetpy_qc import quality
site_meta = {"latitude": 61.844, "longitude": 24.287, "altitude": 150}
report = quality.run_tests('cloudnet-file.nc', site_meta)
json_object = json.dumps(report.to_dict(), indent=2)
print(json_object)
Format of the report
timestamp: UTC timestamp of the testqcVersion:cloudnetpy-qcversiontests:Test[]data_coverage: float
Test
testId: Unique name of the testexceptions:Exception[]
Exception
message: Free-form message about the exceptionresult:"info","error"or"warning"
Example:
{
"timestamp": "2022-10-13T07:00:26.906815Z",
"qcVersion": "1.1.2",
"tests": [
{
"testId": "TestUnits",
"exceptions": []
},
{
"testId": "TestInstrumentPid",
"exceptions": [
{
"message": "Instrument PID is missing.",
"result": "warning"
}
]
},
{
"testId": "TestTimeVector",
"exceptions": []
},
{
"testId": "TestVariableNames",
"exceptions": []
},
{
"testId": "TestCFConvention",
"exceptions": []
}
]
}
Tests
| Test | Description |
|---|---|
FindAttributeOutliers |
Find suspicious values in global attributes. |
FindFolding |
Test for radar folding. |
FindVariableOutliers |
Find suspicious data values. |
TestBrightnessTemperature |
Test that brightness temperature data are valid. |
TestCFConvention |
Test compliance with the CF metadata conventions. |
TestComment |
Check that variables have expected comments. |
TestCompression |
Test netCDF compression. |
TestCoordinateVariables |
Test dimensions of coordinate variables are correct. |
TestCoordinates |
Check that file coordinates match site coordinates. |
TestDataCoverage |
Test that file contains enough data. |
TestDataModel |
Test netCDF data model. |
TestDataTypes |
Check that variables have expected data types. |
TestFillValue |
Test that fill value is explicitly set for variables with missing data. |
TestFloatingPointValues |
Test for special floating-point values which may indicate problems with the processing. |
TestGlobalAttributes |
Check that file contains required global attributes. |
TestIfRangeCorrected |
Test that beta is range corrected. |
TestInstrumentPid |
Test that valid instrument PID exists. |
TestLDR |
Test that LDR values are proper. |
TestLidarBeta |
Test that one beta variable exists. |
TestLongNames |
Check that variables have expected long names. |
TestMWRMultiTemperature |
Test that temperature data are valid. |
TestMWRSingleLWP |
Test that LWP data are valid. |
TestMask |
Test that data are not completely masked. |
TestMedianLwp |
Test that LWP data are valid. |
TestModelData |
Test that model data are valid. |
TestRainfallConsistency |
Test that precipitation rate and amount are consistent. |
TestRangeAndHeight |
Test that range and height data are valid. |
TestStandardNames |
Check that variable have expected standard names. |
TestTimeVector |
Test that time vector is continuous. |
TestUnexpectedMask |
Test if data contain unexpected masked values. |
TestUnits |
Check that variables have expected units. |
TestVariableNames |
Check that file contains required variables. |
TestVariableNamesDefined |
Check that variables have expected names. |
TestZenithAngle |
Test lidar zenith angle. |
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cloudnetpy_qc-1.30.4.tar.gz.
File metadata
- Download URL: cloudnetpy_qc-1.30.4.tar.gz
- Upload date:
- Size: 364.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69e8eead17c5e408209dd969b1a5e8d818539ba11667f7a25f699d3160661a29
|
|
| MD5 |
d99489525a5045726791808dcd16847d
|
|
| BLAKE2b-256 |
47d62f1789c75b680ac801c45afc3ead036050022d9ec9ff0f99074d7ea3e07c
|
Provenance
The following attestation bundles were made for cloudnetpy_qc-1.30.4.tar.gz:
Publisher:
publish.yml on actris-cloudnet/cloudnetpy-qc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cloudnetpy_qc-1.30.4.tar.gz -
Subject digest:
69e8eead17c5e408209dd969b1a5e8d818539ba11667f7a25f699d3160661a29 - Sigstore transparency entry: 908287936
- Sigstore integration time:
-
Permalink:
actris-cloudnet/cloudnetpy-qc@d348a90dbeadab7b3335e9775ffe2278781c7fc0 -
Branch / Tag:
refs/tags/v1.30.4 - Owner: https://github.com/actris-cloudnet
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d348a90dbeadab7b3335e9775ffe2278781c7fc0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cloudnetpy_qc-1.30.4-py3-none-any.whl.
File metadata
- Download URL: cloudnetpy_qc-1.30.4-py3-none-any.whl
- Upload date:
- Size: 366.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1173e1e3de2584f581c753e700441a525aea30c513d87d5c65050f52e0cf37b5
|
|
| MD5 |
7881d150a807415ae3b2608c94559edb
|
|
| BLAKE2b-256 |
55635b0cc3f6db935d3b3179851f970bed39265036ad802a5a588ea81bafe9e9
|
Provenance
The following attestation bundles were made for cloudnetpy_qc-1.30.4-py3-none-any.whl:
Publisher:
publish.yml on actris-cloudnet/cloudnetpy-qc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cloudnetpy_qc-1.30.4-py3-none-any.whl -
Subject digest:
1173e1e3de2584f581c753e700441a525aea30c513d87d5c65050f52e0cf37b5 - Sigstore transparency entry: 908287980
- Sigstore integration time:
-
Permalink:
actris-cloudnet/cloudnetpy-qc@d348a90dbeadab7b3335e9775ffe2278781c7fc0 -
Branch / Tag:
refs/tags/v1.30.4 - Owner: https://github.com/actris-cloudnet
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d348a90dbeadab7b3335e9775ffe2278781c7fc0 -
Trigger Event:
push
-
Statement type: