-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDLAMPreproc.py
More file actions
44 lines (28 loc) · 1.28 KB
/
DLAMPreproc.py
File metadata and controls
44 lines (28 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/python
#!/bin/python
###===== Workflow Control ===========================================###
#
###==================================================================###
from src.preproc.cds_downloader import CDSDataDownloader
from src.preproc.dlamp_regridder import DataRegridder
do_cds_downloader = 1
do_dlamp_regridder = 1
DLAMP_DATA_DIR = "./"
yaml_config = f"{DLAMP_DATA_DIR}/config/era5.yaml"
###===== ERA5 Dataset Downloading ===================================###
# Downloading process is fully controled by YAML configure file
###==================================================================###
downloader = CDSDataDownloader(yaml_config)
timeline = downloader.create_timeline()
for curr in timeline:
downloader.process_download(curr)
###===== DataRegridder and Variables Registry =======================###
# Data Regridding can be controled by YAML configure file
# Variables Registry can be controled by YAML configure file
# Variables Diagnostics can be controled by module script:
# src/registry/diagnostics_functions
###==================================================================###
yaml_config = f"{DLAMP_DATA_DIR}/config/era5.yaml"
regridder = DataRegridder(yaml_config)
#regridder.process_single_time(curr)
regridder.main_process()