Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 192a7df

Browse files
committed
Finally! Rechunking NWPs works! #30
1 parent ee8bb24 commit 192a7df

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/rechunk_nwp_data.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from nowcasting_dataset.data_sources.nwp_data_source import open_nwp, NWP_VARIABLE_NAMES
1010
import os
1111
import numpy as np
12+
# from dask import distributed, diagnostics
1213

1314

1415
BUCKET = Path('solar-pv-nowcasting-data')
@@ -47,6 +48,10 @@ def open_nwp(zarr_store: str) -> xr.Dataset:
4748

4849

4950
def main():
51+
#cluster = distributed.LocalCluster(n_workers=8, threads_per_worker=4)
52+
#client = distributed.Client(cluster)
53+
#print(client)
54+
5055
nwp_datasets = []
5156
for zarr_store in ['2018_1-6', '2018_7-12', '2019_1-6', '2019_7-12']:
5257
print('opening', zarr_store)
@@ -91,6 +96,7 @@ def main():
9196
target_options=encoding,
9297
temp_store=temp_store)
9398

99+
#with diagnostics.ProgressBar():
94100
rechunk_plan.execute()
95101

96102
print('Consolidating...')

0 commit comments

Comments
 (0)