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
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 test
  • qcVersion: cloudnetpy-qc version
  • tests: Test[]
  • data_coverage: float

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.
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.
TestLWC Test that LWP and integrated LWC are consistent.
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

cloudnetpy_qc-1.30.7.tar.gz (368.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cloudnetpy_qc-1.30.7-py3-none-any.whl (370.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cloudnetpy_qc-1.30.7.tar.gz
  • Upload date:
  • Size: 368.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cloudnetpy_qc-1.30.7.tar.gz
Algorithm Hash digest
SHA256 e7afd81e12fdaa8ee460c48028301826fcc186ab77754d6d3a9ed3c3a5b6ecfb
MD5 1a696a6f9915442f965d70630b01c828
BLAKE2b-256 89c59dbe3827c8b0a7e428f7d362bf78109b7fb06bedc1afc654fe5e7d9bf897

See more details on using hashes here.

Provenance

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

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: cloudnetpy_qc-1.30.7-py3-none-any.whl
  • Upload date:
  • Size: 370.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cloudnetpy_qc-1.30.7-py3-none-any.whl
Algorithm Hash digest
SHA256 84f89197bba463bab70a2ce6f576e063473577b95de8d330fedb3b830d00c6a0
MD5 e5689793e3ac67cbbce3c211d72bd5a9
BLAKE2b-256 1f7f967a6afc6f624742fca701ddd2943f5aec0a8d761b7520537e8ff24a76a6

See more details on using hashes here.

Provenance

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

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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