cloudnetpy 1.49.0__py3-none-any.whl → 1.49.2__py3-none-any.whl
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.
- cloudnetpy/instruments/hatpro.py +3 -0
- cloudnetpy/output.py +2 -2
- cloudnetpy/plotting/plot_meta.py +8 -0
- cloudnetpy/plotting/plotting.py +3 -1
- cloudnetpy/products/mwr_single.py +9 -5
- cloudnetpy/version.py +1 -1
- {cloudnetpy-1.49.0.dist-info → cloudnetpy-1.49.2.dist-info}/METADATA +1 -1
- {cloudnetpy-1.49.0.dist-info → cloudnetpy-1.49.2.dist-info}/RECORD +11 -11
- {cloudnetpy-1.49.0.dist-info → cloudnetpy-1.49.2.dist-info}/LICENSE +0 -0
- {cloudnetpy-1.49.0.dist-info → cloudnetpy-1.49.2.dist-info}/WHEEL +0 -0
- {cloudnetpy-1.49.0.dist-info → cloudnetpy-1.49.2.dist-info}/top_level.txt +0 -0
cloudnetpy/instruments/hatpro.py
CHANGED
@@ -8,6 +8,7 @@ import mwrpy
|
|
8
8
|
import netCDF4
|
9
9
|
import numpy as np
|
10
10
|
from mwrpy.level1.lev1_meta_nc import ATTRIBUTES_1B01
|
11
|
+
from mwrpy.version import __version__ as mwrpy_version
|
11
12
|
from numpy import ma
|
12
13
|
|
13
14
|
from cloudnetpy import output, utils
|
@@ -73,6 +74,8 @@ def hatpro2l1c(
|
|
73
74
|
with netCDF4.Dataset(output_file, "a") as nc:
|
74
75
|
nc.cloudnet_file_type = "mwr-l1c"
|
75
76
|
nc.title = nc.title.replace("radiometer", "radiometer Level 1c")
|
77
|
+
nc.mwrpy_version = mwrpy_version
|
78
|
+
|
76
79
|
return uuid
|
77
80
|
|
78
81
|
|
cloudnetpy/output.py
CHANGED
@@ -229,7 +229,7 @@ def init_file(
|
|
229
229
|
for key, dimension in dimensions.items():
|
230
230
|
nc.createDimension(key, dimension)
|
231
231
|
_write_vars2nc(nc, cloudnet_arrays)
|
232
|
-
|
232
|
+
add_standard_global_attributes(nc, uuid)
|
233
233
|
return nc
|
234
234
|
|
235
235
|
|
@@ -392,7 +392,7 @@ def _get_identifier(short_id: str) -> str:
|
|
392
392
|
return short_id
|
393
393
|
|
394
394
|
|
395
|
-
def
|
395
|
+
def add_standard_global_attributes(
|
396
396
|
nc: netCDF4.Dataset, uuid: str | None = None
|
397
397
|
) -> None:
|
398
398
|
nc.Conventions = "CF-1.8"
|
cloudnetpy/plotting/plot_meta.py
CHANGED
@@ -345,6 +345,14 @@ ATTRIBUTES = {
|
|
345
345
|
plot_scale=Scale.LINEAR,
|
346
346
|
plot_type="model",
|
347
347
|
),
|
348
|
+
"potential_temperature": PlotMeta(
|
349
|
+
name="Potential temperature",
|
350
|
+
cbar="RdBu_r",
|
351
|
+
clabel="K",
|
352
|
+
plot_range=(260, 330),
|
353
|
+
plot_scale=Scale.LINEAR,
|
354
|
+
plot_type="model",
|
355
|
+
),
|
348
356
|
"absolute_humidity": PlotMeta(
|
349
357
|
name="Absolute humidity",
|
350
358
|
cbar="viridis",
|
cloudnetpy/plotting/plotting.py
CHANGED
@@ -109,7 +109,9 @@ def generate_figure(
|
|
109
109
|
plot_type = ATTRIBUTES[name].plot_type
|
110
110
|
if title:
|
111
111
|
_set_title(ax, name, "")
|
112
|
-
if not is_height or
|
112
|
+
if not is_height or (
|
113
|
+
cloudnet_file_type == "mwr-single" and name in ("lwp", "iwv")
|
114
|
+
):
|
113
115
|
unit = _get_variable_unit(nc_file, name)
|
114
116
|
source = ATTRIBUTES[name].source
|
115
117
|
time = _read_time_vector(nc_file)
|
@@ -2,9 +2,14 @@ from tempfile import NamedTemporaryFile
|
|
2
2
|
|
3
3
|
import netCDF4
|
4
4
|
from mwrpy.process_mwrpy import process_product
|
5
|
+
from mwrpy.version import __version__ as mwrpy_version
|
5
6
|
|
6
7
|
from cloudnetpy import utils
|
7
|
-
from cloudnetpy.output import
|
8
|
+
from cloudnetpy.output import (
|
9
|
+
add_standard_global_attributes,
|
10
|
+
copy_global,
|
11
|
+
copy_variables,
|
12
|
+
)
|
8
13
|
|
9
14
|
|
10
15
|
def generate_mwr_single(
|
@@ -39,11 +44,10 @@ def generate_mwr_single(
|
|
39
44
|
nc_output.createDimension("time", len(nc_lwp.variables["time"][:]))
|
40
45
|
|
41
46
|
# Global attributes
|
42
|
-
copy_global(
|
43
|
-
nc_l1c, nc_output, ("year", "month", "day", "Conventions", "location")
|
44
|
-
)
|
47
|
+
copy_global(nc_l1c, nc_output, ("year", "month", "day", "location"))
|
45
48
|
nc_output.title = f"MWR single-pointing from {nc_l1c.location}"
|
46
|
-
nc_output
|
49
|
+
add_standard_global_attributes(nc_output, file_uuid)
|
50
|
+
nc_output.mwrpy_version = mwrpy_version
|
47
51
|
nc_output.cloudnet_file_type = "mwr-single"
|
48
52
|
|
49
53
|
# History
|
cloudnetpy/version.py
CHANGED
@@ -5,10 +5,10 @@ cloudnetpy/constants.py,sha256=CC6qwVMcznFY6H4j3wz4mxUFnSn81QbScGi-PjF_3i4,402
|
|
5
5
|
cloudnetpy/datasource.py,sha256=k3kNlSV1g5n951qbY4aiXDJckOcVtL2YbccxbqAnZzw,7143
|
6
6
|
cloudnetpy/exceptions.py,sha256=sXcxhlyz_8ICLa1eliujfescrUuK1UM0aAEXexx91Gw,981
|
7
7
|
cloudnetpy/metadata.py,sha256=-oRmr4HWjG_-P8jOjdBYMgRkOYnJKr6jmGIF-38Tno8,5023
|
8
|
-
cloudnetpy/output.py,sha256=
|
8
|
+
cloudnetpy/output.py,sha256=ZZPjl_bZhKkOjEdjUtdtREqWgKSsxsjIYoxYURrgsE0,13546
|
9
9
|
cloudnetpy/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
10
|
cloudnetpy/utils.py,sha256=lKVPF7VpbX2IPXTztI8eJZm8rLne9IuhMngQXKP12vg,26971
|
11
|
-
cloudnetpy/version.py,sha256=
|
11
|
+
cloudnetpy/version.py,sha256=54ycNf6ds2OwkK-nHiBViLDtQ6Sxd0Simq95aY4skz4,72
|
12
12
|
cloudnetpy/categorize/__init__.py,sha256=gP5q3Vis1y9u9OWgA_idlbjfWXYN_S0IBSWdwBhL_uU,69
|
13
13
|
cloudnetpy/categorize/atmos.py,sha256=_8VU0UpzKh7ZFh3TbGs-g3SYMRsRIR5mio0PmP66O7o,12372
|
14
14
|
cloudnetpy/categorize/atmos_utils.py,sha256=6WdfGqzOvnaDW7vlMMrZBJIxW_eHQdjH-Xl_iPv1TTI,3716
|
@@ -32,7 +32,7 @@ cloudnetpy/instruments/cl61d.py,sha256=Qk2YQRrRkivc6nW2gOI7KKLt9rR4JAWF0bfbj8Hd_
|
|
32
32
|
cloudnetpy/instruments/cloudnet_instrument.py,sha256=nnaOtJJotXzYdoMoYGKeLZ1MciDYBx7tqVBFKBQjKL0,3304
|
33
33
|
cloudnetpy/instruments/copernicus.py,sha256=FDS7Rsunp4ieTPFh_T_LXvreNi5_HTv4ZzR3OnTcAX8,5013
|
34
34
|
cloudnetpy/instruments/galileo.py,sha256=F_XyoAb9PR-ifGhqhXziKnv0KfyOh-yEBaE1NgRMzNg,4318
|
35
|
-
cloudnetpy/instruments/hatpro.py,sha256=
|
35
|
+
cloudnetpy/instruments/hatpro.py,sha256=h2GuTN2XwbWq-fQ7jkOAeqbEVWv3k7Kvimix1P8HjQM,7382
|
36
36
|
cloudnetpy/instruments/instruments.py,sha256=FGiN0369--1z8uYzgDP9_1A7DFLL_Cl4-Ca-OMsjBdI,2824
|
37
37
|
cloudnetpy/instruments/lufft.py,sha256=E2qzvya206gNiML7BSM6vm1lzeOMBePrIuPT81NHPvw,3397
|
38
38
|
cloudnetpy/instruments/mira.py,sha256=wtcgTR_nqL_BPZ5yqvBYXpI9Qtwdvc_1v6N_r3hCEPc,4888
|
@@ -89,8 +89,8 @@ cloudnetpy/model_evaluation/tests/unit/test_plotting.py,sha256=fUxstYMjWSFXZaEV1
|
|
89
89
|
cloudnetpy/model_evaluation/tests/unit/test_statistical_methods.py,sha256=CPbFwLQNn5PKRMQvTNzmsV8AWm7ODtVk7vDygh3G5RA,8795
|
90
90
|
cloudnetpy/model_evaluation/tests/unit/test_tools.py,sha256=84b1TxMogC1hyACQol7xthOWNkYXp3oZJF4GFokEkd4,3630
|
91
91
|
cloudnetpy/plotting/__init__.py,sha256=3bhBlLx8o_SjVyuPxgT7mfZ145pd5erwcCoVNuj2z48,62
|
92
|
-
cloudnetpy/plotting/plot_meta.py,sha256=
|
93
|
-
cloudnetpy/plotting/plotting.py,sha256=
|
92
|
+
cloudnetpy/plotting/plot_meta.py,sha256=CrRCwh5-YxOrIe2bJXnL9akdUGi-amsUCCHc5VoHAL8,26217
|
93
|
+
cloudnetpy/plotting/plotting.py,sha256=kmB1pRt38tpDYLLJ38OyeDt-jCCOP-EMQsHzIpi4hco,28163
|
94
94
|
cloudnetpy/products/__init__.py,sha256=hGkngQT-YAC5cmDiHkSkQw2ZBrg0hN2z40Fizz0QU5Y,210
|
95
95
|
cloudnetpy/products/classification.py,sha256=0Y5dEVDZFbq3UcFnyHomml5Au12SSMVznQTgAMyqh2I,7701
|
96
96
|
cloudnetpy/products/der.py,sha256=zDehcsSCwDTADmxrK4Dmy5VcsrJmDbb-t_SiSU-C3M0,12241
|
@@ -102,11 +102,11 @@ cloudnetpy/products/iwc.py,sha256=0sAGYcTGOJcVH3MxqGxuwxiUpiEG0NuPg49gPsI0wLo,10
|
|
102
102
|
cloudnetpy/products/lwc.py,sha256=8G8pJppEsLZjXOvX5xvXEqEVSCMZZLfIeOoAMX6Gnu8,18642
|
103
103
|
cloudnetpy/products/mie_lu_tables.nc,sha256=It4fYpqJXlqOgL8jeZ-PxGzP08PMrELIDVe55y9ob58,16637951
|
104
104
|
cloudnetpy/products/mwr_multi.py,sha256=wlLHJdK3b2sOXw2idSloNfRXM0H8Yb7rmRl-hLlU1-U,3217
|
105
|
-
cloudnetpy/products/mwr_single.py,sha256=
|
105
|
+
cloudnetpy/products/mwr_single.py,sha256=homC4gPCFYlqRmceWCa--rbu4OUN4_5FOzwsEIEMrlg,3874
|
106
106
|
cloudnetpy/products/product_tools.py,sha256=9eKvr-zGEK2ARN2DmJN--KbynKdT08DhfT1GB8Rfoe4,9616
|
107
107
|
docs/source/conf.py,sha256=baQlgkkUGJi4952W6NRhLkIBbRtwFgqrIOBuEeSCLfk,1488
|
108
|
-
cloudnetpy-1.49.
|
109
|
-
cloudnetpy-1.49.
|
110
|
-
cloudnetpy-1.49.
|
111
|
-
cloudnetpy-1.49.
|
112
|
-
cloudnetpy-1.49.
|
108
|
+
cloudnetpy-1.49.2.dist-info/LICENSE,sha256=wcZF72bdaoG9XugpyE95Juo7lBQOwLuTKBOhhtANZMM,1094
|
109
|
+
cloudnetpy-1.49.2.dist-info/METADATA,sha256=KAlJ6BUyI9NbuyXoqG3mNPQoBPlUVD2sWykJAHh0DjQ,5670
|
110
|
+
cloudnetpy-1.49.2.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
111
|
+
cloudnetpy-1.49.2.dist-info/top_level.txt,sha256=ibSPWRr6ojS1i11rtBFz2_gkIe68mggj7aeswYfaOo0,16
|
112
|
+
cloudnetpy-1.49.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|