forked from ashiklom/edr-da
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.R
47 lines (39 loc) · 1.63 KB
/
config.example.R
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
43
44
45
46
47
############################################################
# EDR data assimilation
# Configuration script
#
# Copy this script to 'config.R' and `source` it at the
# beginning of any EDR script
############################################################
############################################################
# Set paths
############################################################
# NOTE: `normalizePath` is called to generate a complete
# path, which should make this script working
# directory-agnostic.
# This directory should contain the following:
# - Degree-day inputs -- ed_inputs/{chd,dgd}
# - OGE data -- oge2OLD/{*.h5, OGE2_HEADER}
common_inputs_dir <- file.path('ed-inputs', 'EDI')
common_inputs_dir <- normalizePath(common_inputs_dir)
# This directory should contain COMPLETE site-specific met data:
# - Met driver header (complete, NOT a temp file) -- ED_MET_DRIVER_HEADER
# - Met data -- <site-tag>_2004{JUN,JUL,AUG}.h5
site_met_dir <- file.path('ed-inputs', 'met3', 'US-WCr')
site_met_dir <- normalizePath(site_met_dir)
# These are the paths to the executables for the full ED2
# model and EDR, respectively
ed_exe_path <- '/home/ashiklom/Projects/ED2/ED/build/ed_2.1'
edr_exe_path <- '/home/ashiklom/Projects/ED2/EDR/build/ed_2.1'
############################################################
# Additional configuration
############################################################
# Site coordinates
site_lat <- 45.5
site_lon <- -90.5
# Date-time for EDR runs
datetime <- as.POSIXlt('2004-07-01 12:00:00')
# Inversion settings
plot_albedo <- FALSE #TRUE/FALSE
generate_summary_figs <- FALSE #TRUE/FALSE
hidden <- TRUE #TRUE/FALSE