-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathSnakefile
40 lines (29 loc) · 1.08 KB
/
Snakefile
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
from datetime import datetime, timedelta
import platform
import os
################################################################################
# CONFIGURE DATA / FILE STORAGE LOCATIONS
################################################################################
configfile: "config.yaml"
HOMEDIR = os.path.abspath(".") # most stuff should be stored locally
# store the data on a remote location
# at present I am saving to Rice RDF -- see https://kb.rice.edu/page.php?id=108256
system = platform.system()
if system == "Darwin":
DATADIR = os.path.abspath(config["datadir"]["osx"])
elif system == "Linux":
DATADIR = os.path.abspath(config["datadir"]["linux"])
elif system == "Windows":
DATADIR = os.path.abspath(config["datadir"]["windows"])
else:
raise ValueError("Unsupported platform")
# we can use these paths as variables below
LOGS = os.path.join(HOMEDIR, "logs")
# include each of the sub-snakefiles
include: "nexrad/nexrad.smk"
include: "era5/era5.smk"
# default rule runs everything
rule all:
input:
all_nexrad_grib2_files,
all_reanalysis_files,