🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

cloudnetpy-qc

Package Overview
Dependencies
Maintainers
0
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudnetpy-qc

Quality control routines for CloudnetPy products

1.26.1
PyPI
Maintainers
0

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

TestDescription
FindAttributeOutliersFind suspicious values in global attributes.
FindFoldingTest for radar folding.
FindVariableOutliersFind suspicious data values.
TestBrightnessTemperatureTest that brightness temperature data are valid.
TestCFConventionTest compliance with the CF metadata conventions.
TestCommentCheck that variables have expected comments.
TestCoordinateVariablesTest dimensions of coordinate variables are correct.
TestCoordinatesCheck that file coordinates match site coordinates.
TestDataCoverageTest that file contains enough data.
TestDataModelTest netCDF data model.
TestDataTypesCheck that variables have expected data types.
TestFillValueTest that fill value is explicitly set for variables with missing data.
TestFloatingPointValuesTest for special floating-point values which may indicate problems with the processing.
TestGlobalAttributesCheck that file contains required global attributes.
TestIfRangeCorrectedTest that beta is range corrected.
TestInstrumentPidTest that valid instrument PID exists.
TestLDRTest that LDR values are proper.
TestLidarBetaTest that one beta variable exists.
TestLongNamesCheck that variables have expected long names.
TestMWRMultiTemperatureTest that temperature data are valid.
TestMWRSingleLWPTest that LWP data are valid.
TestMaskTest that data are not completely masked.
TestMedianLwpTest that LWP data are valid.
TestModelDataTest that model data are valid.
TestRainfallConsistencyTest that precipitation rate and amount are consistent.
TestStandardNamesCheck that variable have expected standard names.
TestTimeVectorTest that time vector is continuous.
TestUnexpectedMaskTest if data contain unexpected masked values.
TestUnitsCheck that variables have expected units.
TestVariableNamesCheck that file contains required variables.
TestVariableNamesDefinedCheck that variables have expected names.
TestZenithAngleTest lidar zenith angle.

License

MIT

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts