cloudnetpy-qc 1.23.0__tar.gz → 1.24.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. {cloudnetpy_qc-1.23.0/cloudnetpy_qc.egg-info → cloudnetpy_qc-1.24.1}/PKG-INFO +4 -2
  2. {cloudnetpy_qc-1.23.0 → cloudnetpy_qc-1.24.1}/README.md +3 -1
  3. {cloudnetpy_qc-1.23.0 → cloudnetpy_qc-1.24.1}/cloudnetpy_qc/data/area-type-table.xml +8 -2
  4. {cloudnetpy_qc-1.23.0 → cloudnetpy_qc-1.24.1}/cloudnetpy_qc/data/cf-standard-name-table.xml +294 -139
  5. {cloudnetpy_qc-1.23.0 → cloudnetpy_qc-1.24.1}/cloudnetpy_qc/quality.py +67 -11
  6. {cloudnetpy_qc-1.23.0 → cloudnetpy_qc-1.24.1}/cloudnetpy_qc/utils.py +33 -7
  7. {cloudnetpy_qc-1.23.0 → cloudnetpy_qc-1.24.1}/cloudnetpy_qc/variables.py +15 -16
  8. {cloudnetpy_qc-1.23.0 → cloudnetpy_qc-1.24.1}/cloudnetpy_qc/version.py +2 -2
  9. {cloudnetpy_qc-1.23.0 → cloudnetpy_qc-1.24.1/cloudnetpy_qc.egg-info}/PKG-INFO +4 -2
  10. {cloudnetpy_qc-1.23.0 → cloudnetpy_qc-1.24.1}/pyproject.toml +8 -1
  11. {cloudnetpy_qc-1.23.0 → cloudnetpy_qc-1.24.1}/tests/test_qc.py +22 -6
  12. {cloudnetpy_qc-1.23.0 → cloudnetpy_qc-1.24.1}/LICENSE +0 -0
  13. {cloudnetpy_qc-1.23.0 → cloudnetpy_qc-1.24.1}/MANIFEST.in +0 -0
  14. {cloudnetpy_qc-1.23.0 → cloudnetpy_qc-1.24.1}/cloudnetpy_qc/__init__.py +0 -0
  15. {cloudnetpy_qc-1.23.0 → cloudnetpy_qc-1.24.1}/cloudnetpy_qc/data/data_quality_config.ini +0 -0
  16. {cloudnetpy_qc-1.23.0 → cloudnetpy_qc-1.24.1}/cloudnetpy_qc/data/standardized-region-list.xml +0 -0
  17. {cloudnetpy_qc-1.23.0 → cloudnetpy_qc-1.24.1}/cloudnetpy_qc/py.typed +0 -0
  18. {cloudnetpy_qc-1.23.0 → cloudnetpy_qc-1.24.1}/cloudnetpy_qc.egg-info/SOURCES.txt +0 -0
  19. {cloudnetpy_qc-1.23.0 → cloudnetpy_qc-1.24.1}/cloudnetpy_qc.egg-info/dependency_links.txt +0 -0
  20. {cloudnetpy_qc-1.23.0 → cloudnetpy_qc-1.24.1}/cloudnetpy_qc.egg-info/requires.txt +0 -0
  21. {cloudnetpy_qc-1.23.0 → cloudnetpy_qc-1.24.1}/cloudnetpy_qc.egg-info/top_level.txt +0 -0
  22. {cloudnetpy_qc-1.23.0 → cloudnetpy_qc-1.24.1}/setup.cfg +0 -0
  23. {cloudnetpy_qc-1.23.0 → cloudnetpy_qc-1.24.1}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cloudnetpy_qc
3
- Version: 1.23.0
3
+ Version: 1.24.1
4
4
  Summary: Quality control routines for CloudnetPy products
5
5
  Author-email: Finnish Meteorological Institute <actris-cloudnet@fmi.fi>
6
6
  License: MIT License
@@ -69,7 +69,8 @@ $ pip3 install cloudnetpy-qc
69
69
  ```python
70
70
  import json
71
71
  from cloudnetpy_qc import quality
72
- report = quality.run_tests('cloudnet-file.nc')
72
+ site_meta = {"latitude": 61.844, "longitude": 24.287, "altitude": 150}
73
+ report = quality.run_tests('cloudnet-file.nc', site_meta)
73
74
  json_object = json.dumps(report.to_dict(), indent=2)
74
75
  print(json_object)
75
76
  ```
@@ -137,6 +138,7 @@ print(json_object)
137
138
  | `TestCFConvention` | Test compliance with the CF metadata conventions. |
138
139
  | `TestComment` | Check that variables have expected comments. |
139
140
  | `TestCoordinateVariables` | Test dimensions of coordinate variables are correct. |
141
+ | `TestCoordinates` | Check that file coordinates match site coordinates. |
140
142
  | `TestDataCoverage` | Test that file contains enough data. |
141
143
  | `TestDataModel` | Test netCDF data model. |
142
144
  | `TestDataTypes` | Check that variables have expected data types. |
@@ -16,7 +16,8 @@ $ pip3 install cloudnetpy-qc
16
16
  ```python
17
17
  import json
18
18
  from cloudnetpy_qc import quality
19
- report = quality.run_tests('cloudnet-file.nc')
19
+ site_meta = {"latitude": 61.844, "longitude": 24.287, "altitude": 150}
20
+ report = quality.run_tests('cloudnet-file.nc', site_meta)
20
21
  json_object = json.dumps(report.to_dict(), indent=2)
21
22
  print(json_object)
22
23
  ```
@@ -84,6 +85,7 @@ print(json_object)
84
85
  | `TestCFConvention` | Test compliance with the CF metadata conventions. |
85
86
  | `TestComment` | Check that variables have expected comments. |
86
87
  | `TestCoordinateVariables` | Test dimensions of coordinate variables are correct. |
88
+ | `TestCoordinates` | Check that file coordinates match site coordinates. |
87
89
  | `TestDataCoverage` | Test that file contains enough data. |
88
90
  | `TestDataModel` | Test netCDF data model. |
89
91
  | `TestDataTypes` | Check that variables have expected data types. |
@@ -1,8 +1,8 @@
1
1
  <?xml version="1.0"?>
2
2
  <area_type_table xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="area-type-table-1.1.xsd">
3
3
  <title>Area Type Table</title>
4
- <version_number>12</version_number>
5
- <date>21 January 2025</date>
4
+ <version_number>13</version_number>
5
+ <date>20 March 2025</date>
6
6
  <institution>Centre for Environmental Data Analysis</institution>
7
7
  <contact>support@ceda.ac.uk</contact>
8
8
 
@@ -84,6 +84,9 @@
84
84
  <entry id="ice_sheet">
85
85
  <description>An area type of "ice_sheet" indicates where ice sheets are present. It includes both grounded ice sheets resting over bedrock and any ice shelves flowing over the ocean that are attached to grounded ice sheets. The ice_sheet area type excludes ice-caps and glaciers and any floating ice shelves and ice tongues attached to them, but the land_ice area type includes those as well as the ice_sheet area.</description>
86
86
  </entry>
87
+ <entry id="lake_and_inland_sea">
88
+ <description>The area type lake_and_inland_sea means a quasi-permanent body of water surrounded by land, which may include certain ponds and reservoirs, but excludes rivers and streams which by gravity convey water into and out of lakes or inland seas or into the ocean.</description>
89
+ </entry>
87
90
  <entry id="lake_ice_or_sea_ice">
88
91
  <description>Floating ice excluding ice-shelves and icebergs.</description>
89
92
  </entry>
@@ -135,6 +138,9 @@
135
138
  <entry id="rain">
136
139
  <description>An area_type of "rain" indicates that falling rain is present at some level in the atmospheric column above an area on the surface of the Earth.</description>
137
140
  </entry>
141
+ <entry id="river">
142
+ <description>The area type river means flowing water in a channel that is mainly driven by gravity. It includes streams, creeks and canals but not lakes or seas. It also includes water in a floodplain.</description>
143
+ </entry>
138
144
  <entry id="sea">
139
145
  <description>The area occupied by type "sea" is equal to the sum of the areas of types "ice_free_sea" and "sea_ice".</description>
140
146
  </entry>