Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cloudnetpy-qc

Package Overview
Dependencies
Maintainers
3
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.18.1
  • PyPI
  • Socket score

Maintainers
3

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

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.
TestDataCoverageTest that file contains enough data.
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.
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.

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc