ocf-data-sampler 0.1.9__py3-none-any.whl → 0.1.10__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.
Potentially problematic release.
This version of ocf-data-sampler might be problematic. Click here for more details.
- ocf_data_sampler/torch_datasets/datasets/pvnet_uk.py +2 -3
- ocf_data_sampler/torch_datasets/datasets/site.py +9 -5
- {ocf_data_sampler-0.1.9.dist-info → ocf_data_sampler-0.1.10.dist-info}/METADATA +1 -1
- {ocf_data_sampler-0.1.9.dist-info → ocf_data_sampler-0.1.10.dist-info}/RECORD +7 -7
- {ocf_data_sampler-0.1.9.dist-info → ocf_data_sampler-0.1.10.dist-info}/LICENSE +0 -0
- {ocf_data_sampler-0.1.9.dist-info → ocf_data_sampler-0.1.10.dist-info}/WHEEL +0 -0
- {ocf_data_sampler-0.1.9.dist-info → ocf_data_sampler-0.1.10.dist-info}/top_level.txt +0 -0
|
@@ -186,9 +186,8 @@ class PVNetUKRegionalDataset(Dataset):
|
|
|
186
186
|
gsp_ids: List of GSP IDs to create samples for. Defaults to all
|
|
187
187
|
"""
|
|
188
188
|
|
|
189
|
-
config = load_yaml_configuration(config_filename)
|
|
190
|
-
|
|
191
|
-
# Validate channels for NWP and satellite data
|
|
189
|
+
# config = load_yaml_configuration(config_filename)
|
|
190
|
+
config: Configuration = load_yaml_configuration(config_filename)
|
|
192
191
|
validate_nwp_channels(config)
|
|
193
192
|
validate_satellite_channels(config)
|
|
194
193
|
|
|
@@ -20,7 +20,6 @@ from ocf_data_sampler.select import (
|
|
|
20
20
|
from ocf_data_sampler.utils import minutes
|
|
21
21
|
from ocf_data_sampler.torch_datasets.utils.valid_time_periods import find_valid_time_periods
|
|
22
22
|
from ocf_data_sampler.torch_datasets.utils.merge_and_fill_utils import merge_dicts, fill_nans_in_arrays
|
|
23
|
-
from ocf_data_sampler.torch_datasets.utils.validate_channels import validate_nwp_channels
|
|
24
23
|
|
|
25
24
|
from ocf_data_sampler.numpy_sample import (
|
|
26
25
|
convert_site_to_numpy_sample,
|
|
@@ -30,8 +29,12 @@ from ocf_data_sampler.numpy_sample import (
|
|
|
30
29
|
make_sun_position_numpy_sample,
|
|
31
30
|
)
|
|
32
31
|
from ocf_data_sampler.numpy_sample import NWPSampleKey
|
|
33
|
-
from ocf_data_sampler.constants import NWP_MEANS, NWP_STDS
|
|
32
|
+
from ocf_data_sampler.constants import NWP_MEANS, NWP_STDS, RSS_MEAN, RSS_STD
|
|
34
33
|
|
|
34
|
+
from ocf_data_sampler.torch_datasets.utils.validate_channels import (
|
|
35
|
+
validate_nwp_channels,
|
|
36
|
+
validate_satellite_channels,
|
|
37
|
+
)
|
|
35
38
|
|
|
36
39
|
xr.set_options(keep_attrs=True)
|
|
37
40
|
|
|
@@ -52,9 +55,8 @@ class SitesDataset(Dataset):
|
|
|
52
55
|
"""
|
|
53
56
|
|
|
54
57
|
config: Configuration = load_yaml_configuration(config_filename)
|
|
55
|
-
|
|
56
|
-
# Validate NWP channels
|
|
57
58
|
validate_nwp_channels(config)
|
|
59
|
+
validate_satellite_channels(config)
|
|
58
60
|
|
|
59
61
|
datasets_dict = get_dataset_dict(config.input_data)
|
|
60
62
|
|
|
@@ -237,8 +239,10 @@ class SitesDataset(Dataset):
|
|
|
237
239
|
data_arrays.append((f"nwp-{provider}", da_nwp))
|
|
238
240
|
|
|
239
241
|
if "sat" in dataset_dict:
|
|
240
|
-
# TODO add some satellite normalisation
|
|
241
242
|
da_sat = dataset_dict["sat"]
|
|
243
|
+
|
|
244
|
+
# Standardise
|
|
245
|
+
da_sat = (da_sat - RSS_MEAN) / RSS_STD
|
|
242
246
|
data_arrays.append(("satellite", da_sat))
|
|
243
247
|
|
|
244
248
|
if "site" in dataset_dict:
|
|
@@ -41,8 +41,8 @@ ocf_data_sampler/select/select_time_slice.py,sha256=9M-yvDv9K77XfEys_OIR31_aVB56
|
|
|
41
41
|
ocf_data_sampler/select/spatial_slice_for_dataset.py,sha256=3tRrMBXr7s4CnClbVSIq7hpls3H4Y3qYTDwswcxCCCE,1763
|
|
42
42
|
ocf_data_sampler/select/time_slice_for_dataset.py,sha256=Z7pOiilSHScxmBKZNG18K5J-S4ifdXXAYGZoHRHD3AY,4324
|
|
43
43
|
ocf_data_sampler/torch_datasets/datasets/__init__.py,sha256=jfJSFcR0eO1AqeH7S3KnGjsBqVZT5w3oyi784PUR6Q0,146
|
|
44
|
-
ocf_data_sampler/torch_datasets/datasets/pvnet_uk.py,sha256=
|
|
45
|
-
ocf_data_sampler/torch_datasets/datasets/site.py,sha256=
|
|
44
|
+
ocf_data_sampler/torch_datasets/datasets/pvnet_uk.py,sha256=ZgfvVCcEU3dj3RoY0zdBdKGppC7Wm81qecqB17gYTmE,12286
|
|
45
|
+
ocf_data_sampler/torch_datasets/datasets/site.py,sha256=_uHmqg-VJu-MHgXc5JFDX1noPfH6E8nY4XhQmsrOav4,16325
|
|
46
46
|
ocf_data_sampler/torch_datasets/utils/merge_and_fill_utils.py,sha256=hIbekql64eXsNDFIoEc--GWxwdVWrh2qKegdOi70Bow,874
|
|
47
47
|
ocf_data_sampler/torch_datasets/utils/valid_time_periods.py,sha256=Qo65qUHtle_bW5tLTYr7empHTRv-lpjvfx_6GNJj3Xg,4371
|
|
48
48
|
ocf_data_sampler/torch_datasets/utils/validate_channels.py,sha256=u2EpiFAKAOHpmvINhOUJCT8Vbc-cle6qJ3YNVse4yLs,2884
|
|
@@ -75,8 +75,8 @@ tests/torch_datasets/test_merge_and_fill_utils.py,sha256=GtuQg82BM1eHQjT7Ik1x1za
|
|
|
75
75
|
tests/torch_datasets/test_pvnet_uk.py,sha256=F0D-DugFgVtt8G1q7lylmPLrOZj6H6YPNd9s_6Wn_yM,5594
|
|
76
76
|
tests/torch_datasets/test_site.py,sha256=t57vAR_RRWcbG_kEFk6VrFCYzVxwFG6qJKBnRHF02fM,7000
|
|
77
77
|
tests/torch_datasets/test_validate_channels_utils.py,sha256=Rzdweu98j1of45jCOUrSiBtyPlf-dDaCceulf0H7ml8,2921
|
|
78
|
-
ocf_data_sampler-0.1.
|
|
79
|
-
ocf_data_sampler-0.1.
|
|
80
|
-
ocf_data_sampler-0.1.
|
|
81
|
-
ocf_data_sampler-0.1.
|
|
82
|
-
ocf_data_sampler-0.1.
|
|
78
|
+
ocf_data_sampler-0.1.10.dist-info/LICENSE,sha256=F-Q3UFCR-BECSocV55BFDpn4YKxve9PKrm-lTt6o_Tg,1073
|
|
79
|
+
ocf_data_sampler-0.1.10.dist-info/METADATA,sha256=HDEoz2xG-Qw23Rz2Wcms5_w1p3hbrRK1MBIJjwA6WrA,12174
|
|
80
|
+
ocf_data_sampler-0.1.10.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
81
|
+
ocf_data_sampler-0.1.10.dist-info/top_level.txt,sha256=Faob6N6cFdPc5eUpCTYcXgCaNhi4XLLteUL5W5ayYmg,31
|
|
82
|
+
ocf_data_sampler-0.1.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|