anemoi-datasets 0.5.22__py3-none-any.whl → 0.5.24__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.
- anemoi/datasets/_version.py +2 -2
- anemoi/datasets/create/sources/accumulations.py +0 -6
- anemoi/datasets/create/sources/accumulations2.py +2 -3
- anemoi/datasets/create/sources/grib.py +1 -1
- anemoi/datasets/create/sources/patterns.py +1 -1
- {anemoi_datasets-0.5.22.dist-info → anemoi_datasets-0.5.24.dist-info}/METADATA +4 -4
- {anemoi_datasets-0.5.22.dist-info → anemoi_datasets-0.5.24.dist-info}/RECORD +11 -11
- {anemoi_datasets-0.5.22.dist-info → anemoi_datasets-0.5.24.dist-info}/WHEEL +1 -1
- {anemoi_datasets-0.5.22.dist-info → anemoi_datasets-0.5.24.dist-info}/entry_points.txt +0 -0
- {anemoi_datasets-0.5.22.dist-info → anemoi_datasets-0.5.24.dist-info}/licenses/LICENSE +0 -0
- {anemoi_datasets-0.5.22.dist-info → anemoi_datasets-0.5.24.dist-info}/top_level.txt +0 -0
anemoi/datasets/_version.py
CHANGED
|
@@ -843,8 +843,6 @@ def _compute_accumulations(
|
|
|
843
843
|
else:
|
|
844
844
|
AccumulationClass = AccumulationFromStart if data_accumulation_period in (0, None) else AccumulationFromLastStep
|
|
845
845
|
|
|
846
|
-
LOG.info(f"XXXXXXXXXXX {step1=}, {step2=}, {data_accumulation_period=}, {base_times=}, {adjust_step=}")
|
|
847
|
-
|
|
848
846
|
mars_date_time_steps = AccumulationClass.mars_date_time_steps(
|
|
849
847
|
dates=dates,
|
|
850
848
|
step1=step1,
|
|
@@ -882,16 +880,12 @@ def _compute_accumulations(
|
|
|
882
880
|
accumulations = {}
|
|
883
881
|
|
|
884
882
|
for date, time, steps in mars_date_time_steps:
|
|
885
|
-
LOG.info(f"Accumulation request: { date, time, steps}")
|
|
886
883
|
for p in param:
|
|
887
884
|
for n in number:
|
|
888
885
|
r = dict(request, param=p, date=date, time=time, step=sorted(steps), number=n)
|
|
889
886
|
|
|
890
887
|
requests.append(patch(r))
|
|
891
888
|
|
|
892
|
-
for r in requests:
|
|
893
|
-
LOG.info(f"Accumulation request: {r}")
|
|
894
|
-
|
|
895
889
|
ds = mars(
|
|
896
890
|
context, dates, *requests, request_already_using_valid_datetime=True, use_cdsapi_dataset=use_cdsapi_dataset
|
|
897
891
|
)
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
|
|
10
10
|
import datetime
|
|
11
11
|
import logging
|
|
12
|
-
import warnings
|
|
13
12
|
from abc import abstractmethod
|
|
14
13
|
from copy import deepcopy
|
|
15
14
|
from typing import Any
|
|
@@ -118,8 +117,8 @@ class Period:
|
|
|
118
117
|
|
|
119
118
|
assert accumulated.shape == values.shape, (accumulated.shape, values.shape)
|
|
120
119
|
|
|
121
|
-
if not np.all(values >= 0):
|
|
122
|
-
|
|
120
|
+
# if not np.all(values >= 0):
|
|
121
|
+
# warnings.warn(f"Negative values for {values}: {np.amin(values)} {np.amax(values)}")
|
|
123
122
|
|
|
124
123
|
return accumulated + self.sign * values
|
|
125
124
|
|
|
@@ -124,7 +124,7 @@ def execute(
|
|
|
124
124
|
dates = [d.isoformat() for d in dates]
|
|
125
125
|
|
|
126
126
|
for path in given_paths:
|
|
127
|
-
paths = Pattern(path
|
|
127
|
+
paths = Pattern(path).substitute(*args, date=dates, allow_extra=True, **kwargs)
|
|
128
128
|
|
|
129
129
|
for name in ("grid", "area", "rotation", "frame", "resol", "bitmap"):
|
|
130
130
|
if name in kwargs:
|
|
@@ -79,6 +79,6 @@ def iterate_patterns(
|
|
|
79
79
|
kwargs["date"] = dates
|
|
80
80
|
|
|
81
81
|
for path in given_paths:
|
|
82
|
-
paths = Pattern(path
|
|
82
|
+
paths = Pattern(path).substitute(allow_extra=True, **kwargs)
|
|
83
83
|
for path in _expand(paths):
|
|
84
84
|
yield path, dates
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: anemoi-datasets
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.24
|
|
4
4
|
Summary: A package to hold various functions to support training of ML models on ECMWF data.
|
|
5
5
|
Author-email: "European Centre for Medium-Range Weather Forecasts (ECMWF)" <software.support@ecmwf.int>
|
|
6
6
|
License: Apache License
|
|
@@ -225,7 +225,7 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
225
225
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
226
226
|
Requires-Python: >=3.9
|
|
227
227
|
License-File: LICENSE
|
|
228
|
-
Requires-Dist: anemoi-transform>=0.1.
|
|
228
|
+
Requires-Dist: anemoi-transform>=0.1.10
|
|
229
229
|
Requires-Dist: anemoi-utils[provenance]>=0.4.21
|
|
230
230
|
Requires-Dist: cfunits
|
|
231
231
|
Requires-Dist: numcodecs<0.16
|
|
@@ -241,7 +241,7 @@ Requires-Dist: prettytable; extra == "comparelam"
|
|
|
241
241
|
Requires-Dist: termcolor; extra == "comparelam"
|
|
242
242
|
Provides-Extra: create
|
|
243
243
|
Requires-Dist: cachetools; extra == "create"
|
|
244
|
-
Requires-Dist: earthkit-data[mars]>=0.
|
|
244
|
+
Requires-Dist: earthkit-data[mars]>=0.14; extra == "create"
|
|
245
245
|
Requires-Dist: earthkit-geo>=0.3; extra == "create"
|
|
246
246
|
Requires-Dist: earthkit-meteo>=0.3; extra == "create"
|
|
247
247
|
Requires-Dist: eccodes>=2.39.1; extra == "create"
|
|
@@ -269,5 +269,5 @@ Requires-Dist: kerchunk; extra == "xarray"
|
|
|
269
269
|
Requires-Dist: pandas; extra == "xarray"
|
|
270
270
|
Requires-Dist: planetary-computer; extra == "xarray"
|
|
271
271
|
Requires-Dist: pystac-client; extra == "xarray"
|
|
272
|
-
Requires-Dist: s3fs
|
|
272
|
+
Requires-Dist: s3fs; extra == "xarray"
|
|
273
273
|
Dynamic: license-file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
anemoi/datasets/__init__.py,sha256=i_wsAT3ezEYF7o5dpqGrpoG4wmLS-QIBug18uJbSYMs,1065
|
|
2
2
|
anemoi/datasets/__main__.py,sha256=ErwAqE3rBc7OaNO2JRsEOhWpB8ldjAt7BFSuRhbnlqQ,936
|
|
3
|
-
anemoi/datasets/_version.py,sha256=
|
|
3
|
+
anemoi/datasets/_version.py,sha256=lcZoRfXOiuB3TPgHkv3cgIWkhKIQEcb5AqCY1rvinxg,513
|
|
4
4
|
anemoi/datasets/check.py,sha256=hbEMUurl2IjZbp56dBgOfAEsAmmgymgRM5ySaMJSTdk,2755
|
|
5
5
|
anemoi/datasets/grids.py,sha256=Hhj1aOXHvDjmI46M_UlLSjCs1qYqxH-uqd_kapDSdbU,18134
|
|
6
6
|
anemoi/datasets/testing.py,sha256=fy_JzavUwLlK_2rtXAT-UGUyo5gjyQW2y826zf334Wg,2645
|
|
@@ -74,21 +74,21 @@ anemoi/datasets/create/input/step.py,sha256=WcR9NgRvUKF60Fo5veLvRCAQMrOd55x1gOEA
|
|
|
74
74
|
anemoi/datasets/create/input/template.py,sha256=Iycw9VmfA0WEIDP_Of8bp-8HsV0EUfwbnm0WjxiO4GA,4092
|
|
75
75
|
anemoi/datasets/create/input/trace.py,sha256=dakPYMmwKq6s17Scww1CN-xYBD3btJTGeDknOhAcnEM,3320
|
|
76
76
|
anemoi/datasets/create/sources/__init__.py,sha256=XNiiGaC6NbxnGfl6glPw-gTJASi3vsGKwVlfkMqYGk4,950
|
|
77
|
-
anemoi/datasets/create/sources/accumulations.py,sha256=
|
|
78
|
-
anemoi/datasets/create/sources/accumulations2.py,sha256=
|
|
77
|
+
anemoi/datasets/create/sources/accumulations.py,sha256=9I8_AQtD62Ji-7SMyyYBTdIZBG2rlPY9V2YjqLeWYl8,32538
|
|
78
|
+
anemoi/datasets/create/sources/accumulations2.py,sha256=UwKJOtfbJGNTceVpLtHC8dJhROJbxzjF3V_HR7wTwrk,20661
|
|
79
79
|
anemoi/datasets/create/sources/anemoi_dataset.py,sha256=2xJJTmKlv87F_2ECMKeehaeW7_oWLlDcLt8C_Prp1RI,2017
|
|
80
80
|
anemoi/datasets/create/sources/constants.py,sha256=5O6d9tEuAmVjl5vNkNfmkaAjKXFlw1UjeueTsF1GZCI,1528
|
|
81
81
|
anemoi/datasets/create/sources/eccc_fstd.py,sha256=8HK38f444HcWMvBhooP0XqTfMXYoCbN_8G9RI_Ne5rc,659
|
|
82
82
|
anemoi/datasets/create/sources/empty.py,sha256=5mVIVRUwnBfE3zp-bvNA_imXCSpyds-4mewcI8HXAiY,1020
|
|
83
83
|
anemoi/datasets/create/sources/forcings.py,sha256=PmcAd-nFZzILRxfvrptb45VLD9Nd2vjy0xeToeoKl1Y,1222
|
|
84
|
-
anemoi/datasets/create/sources/grib.py,sha256=
|
|
84
|
+
anemoi/datasets/create/sources/grib.py,sha256=_vTqP1yTyFJfOFP-_8m3aZnJ7F1aaM1UWgxRF9VDOP0,4270
|
|
85
85
|
anemoi/datasets/create/sources/grib_index.py,sha256=Pnm0RLga9lpD4MqVaZr7IqXMBlw1DtTIWZRfz7fq30Q,19026
|
|
86
86
|
anemoi/datasets/create/sources/hindcasts.py,sha256=_4880rgd4AsRxlDXVi6dkh8mlKXrz2i27btVlmlMFjY,2611
|
|
87
87
|
anemoi/datasets/create/sources/legacy.py,sha256=RJce-9TwmUUCFbgC8A3Dp61nSBfB8_lWti8WNoOMIcU,2652
|
|
88
88
|
anemoi/datasets/create/sources/mars.py,sha256=tesQz7Ne6SLBChE_cNJU6Sxr6e0LXFlUKQ8gCdRiCMw,13155
|
|
89
89
|
anemoi/datasets/create/sources/netcdf.py,sha256=UnehMwEMJquqaOeU33zNyFUYfzqQx4Rg-GRmUcgMcbE,1222
|
|
90
90
|
anemoi/datasets/create/sources/opendap.py,sha256=sTm0wXE_BHk9q8vaNNE_Y6BhTOmhxPweS8RTjP4HYjU,1254
|
|
91
|
-
anemoi/datasets/create/sources/patterns.py,sha256=
|
|
91
|
+
anemoi/datasets/create/sources/patterns.py,sha256=siTExxLY5HWdIgOsufyQuG7Qvkt38oElZOFwz9h0JFg,2283
|
|
92
92
|
anemoi/datasets/create/sources/recentre.py,sha256=OtobkmaWzGD3UacjXfK_Oerjf7EnQi85LIs9xBYJK7A,4044
|
|
93
93
|
anemoi/datasets/create/sources/source.py,sha256=x8k---A2_3AglYqNsXLlv1ti4f9n_gVKmmqtyQGLPTs,2117
|
|
94
94
|
anemoi/datasets/create/sources/tendencies.py,sha256=saHGYl-MnvBEeZX-n1zgT8lehA7LC2G5dMNnxklI9-U,5590
|
|
@@ -136,9 +136,9 @@ anemoi/datasets/data/xy.py,sha256=-jWzYismrK3eI3YCKIBpU1BCmraRncmVn0_2IUY--lk,75
|
|
|
136
136
|
anemoi/datasets/dates/__init__.py,sha256=pEArHDQ7w5E0WC8Vvf9ypyKSdm6gnhoN9TmooITB7C4,13617
|
|
137
137
|
anemoi/datasets/dates/groups.py,sha256=IOveL6IyTXZwEdXZEnRAnpu9pINY95VN7LzcpLfJ09E,10105
|
|
138
138
|
anemoi/datasets/utils/__init__.py,sha256=hCW0QcLHJmE-C1r38P27_ZOvCLNewex5iQEtZqx2ckI,393
|
|
139
|
-
anemoi_datasets-0.5.
|
|
140
|
-
anemoi_datasets-0.5.
|
|
141
|
-
anemoi_datasets-0.5.
|
|
142
|
-
anemoi_datasets-0.5.
|
|
143
|
-
anemoi_datasets-0.5.
|
|
144
|
-
anemoi_datasets-0.5.
|
|
139
|
+
anemoi_datasets-0.5.24.dist-info/licenses/LICENSE,sha256=8HznKF1Vi2IvfLsKNE5A2iVyiri3pRjRPvPC9kxs6qk,11354
|
|
140
|
+
anemoi_datasets-0.5.24.dist-info/METADATA,sha256=VEJ0AfuyX7vg00NEIQUDecbv3eOHiTTtT1VE_zlAlYI,16107
|
|
141
|
+
anemoi_datasets-0.5.24.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
|
142
|
+
anemoi_datasets-0.5.24.dist-info/entry_points.txt,sha256=yR-o-4uiPEA_GLBL81SkMYnUoxq3CAV3hHulQiRtGG0,66
|
|
143
|
+
anemoi_datasets-0.5.24.dist-info/top_level.txt,sha256=DYn8VPs-fNwr7fNH9XIBqeXIwiYYd2E2k5-dUFFqUz0,7
|
|
144
|
+
anemoi_datasets-0.5.24.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|