Skip to main content

Quality control routines for CloudnetPy products

Project description

CloudnetPy-QC

CloudnetPy-QC CI PyPI version

Software for evaluating quality of ACTRIS-Cloudnet data products.

Installation

$ pip3 install cloudnetpy-qc

Usage

import json
from cloudnetpy_qc import quality
report = quality.run_tests('cloudnet-file.nc')
json_object = json.dumps(report.to_dict(), indent=2)
print(json_object)

Format of the report

  • timestamp: UTC timestamp of the test
  • qcVersion: cloudnetpy-qc version
  • tests: Test[]

Test

  • testId: Unique name of the test
  • exceptions: Exception[]

Exception

  • message: Free-form message about the exception
  • result: "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.
TestCFConvention Test compliance with the CF metadata conventions.
TestDataCoverage Test that file contains enough data.
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.
TestMask Test that data are not completely masked.
TestMedianLwp Test that LWP data are valid.
TestModelData Test that model data are valid.
TestStandardNames Check that variable have expected standard names.
TestTimeVector Test that time vector is continuous.
TestUnits Check that variables have expected units.
TestVariableNames Check that file contains required variables.
TestVariableNamesDefined Check that variables have expected names.

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.17.20.tar.gz (326.0 kB view details)

Uploaded Source

Built Distribution

cloudnetpy_qc-1.17.20-py3-none-any.whl (328.7 kB view details)

Uploaded Python 3

File details

Details for the file cloudnetpy_qc-1.17.20.tar.gz.

File metadata

  • Download URL: cloudnetpy_qc-1.17.20.tar.gz
  • Upload date:
  • Size: 326.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for cloudnetpy_qc-1.17.20.tar.gz
Algorithm Hash digest
SHA256 d18b1eb5b5c605b771186819003f0f0b32317538aa3f2b3999b1a1e703b75d0b
MD5 926f0f93fbc6129a6c65641caefdf122
BLAKE2b-256 e7d30e652dfa887d927f5951dca950e0df5939c34328e8e069abccb5a2aed8ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for cloudnetpy_qc-1.17.20.tar.gz:

Publisher: publish.yml on actris-cloudnet/cloudnetpy-qc

Attestations:

File details

Details for the file cloudnetpy_qc-1.17.20-py3-none-any.whl.

File metadata

File hashes

Hashes for cloudnetpy_qc-1.17.20-py3-none-any.whl
Algorithm Hash digest
SHA256 042a38ad63ccb5fce88c3433057ea9c0bce3a6ea2bba35102c3c9fc59fce3021
MD5 794ade3300c8540385f85531e1088482
BLAKE2b-256 46297221b06ec7e0da6d80d041593d6346deef5b9a1493c507ac37f13c636017

See more details on using hashes here.

Provenance

The following attestation bundles were made for cloudnetpy_qc-1.17.20-py3-none-any.whl:

Publisher: publish.yml on actris-cloudnet/cloudnetpy-qc

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page