-
Notifications
You must be signed in to change notification settings - Fork 11
/
viz_config.yml
203 lines (194 loc) · 6.83 KB
/
viz_config.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# Actual dates of the viz frames
vizDates:
start: '2024-07-01'
end: '2024-09-30'
# Dates that make up the wheel (usually a full year)
wheelDates:
start: '2023-10-01'
end: '2024-09-30'
date_display_tz: "America/New_York" # UTC is assumed for all input and intermediate data; this is the TZ to display on the GIF
frame_step: 3 # hours elapsed between GIF frames
# view, dimensions
bbox: [-130.0, 20.0, -77.0, 49.0]
projection: "+proj=laea +lat_0=45 +lon_0=-100 +x_0=0 +y_0=0 +a=6370997 +b=6370997 +units=m +no_defs "
height: 2048
width: 4096
shift:
STATEFP:
- '02'
- ['72', '78']
- '15'
scale: [0.47, 3.0, 1.5]
shift_x: [90, -120, 520]
shift_y: [-465, 90, -110]
rotate: [-50, 20, -35]
# fetch site data parameters
request_limit: 10
request_limit_historic: 5
request_limit_inst: 1
percentiles:
calc: ["05","10","20","25","50","75","80","90","95"]
display:
drought_severe: "05"
drought_low: "10"
normal_range: ["25", "75"]
wet: "90"
# styling
background_col: "white"
basemap:
lwd: 3.0
col: "#e5e5e5" # transparent
border: "white" # gray40
gage_style:
with_percentile:
normal:
pch: 21
cex: 1.5
bg: "#d7d7d7" #efefef
drought:
pch: 21
cex: [2.0, 3.0, 5.0]
col: ["#efb2bc", "#df6679", "#ca0020"]
lwd: 2.0
wet:
pch: 21
cex: 2.0
bg: ["#92c5de", "#04507d"]
flood: # not based on percentile, based on if above flood stage or not
pch: 21
cex: 4.0
lwd: 6.0
bg: "#04507d" # same as second "wet"
col: "#AE72E5" #"#9547dd"
no_percentile:
pch: 4
cex: 1.5
col: "#7f7f7f"
# Comment this out when building the Instagram version
legend_cfg:
point_mult: 4
text_cex: 3.9
text_col: "#444444"
x_pos: 0.11
y_pos: 0.79
title_cfg:
main: "U.S. River Conditions"
subtitle: "July 1, 2024 - September 30, 2024"
footnote: [
"Conditions are relative to the historic",
"daily record for each gage.",
]
x_pos: 0.005
y_pos: 0.94
main_cex: 8
main_col: "#666666"
sub_cex: 5.1
sub_col: "#666666"
foot_cex: 4.2
foot_col: "#939393"
footnote_cfg:
main: [
"* Both USGS gage height and National Weather Service flood stage levels are necessary to determine flooding conditions and were available for 80% of gages at the time",
" this graphic was produced. We used only publicly available data from Water Data for the Nation and some gages are missing gage height even when they have flow."
]
x_pos: 0.255 # 0.30 (visid image)
y_pos: 0.025
cex: 3.3
col: "#939393"
datewheel_cfg:
x_pos: 0.10 # percentage in the x direction to place the circle center
y_pos: 0.33 # 0.37 (visid image) # percentage in the y direction to place the circle center
wheel_per: 0.15 # percentage in the x direction to make the diameter
event_per: 0.80 # percentage of the wheel radius to make the event arcs, skinnier if this is smaller
inner_per: 0.7 # percentage of the wheel radius to make the donut, skinnier if this is bigger
text_per: 0.75 # percentage of the inner radius to place the text
col_empty: "#bdbdbd" # color of the wheel background
col_filled: "#5d5d5dB3" # color to fill in the wheel as time marches on, last two = hex transparency
col_text_months: "#383838" # color of month labels inside wheel
col_text_months_outside: "#bdbdbd" # color of month labels inside wheel NOT during viz dates
cex_text_months: 3.2
col_text_datestamp: "#5f5f5f" # color of text inside the wheel
cex_text_datestamp: 3.5
# # End of regular version specs
# # Leave this commented when building the regular version
# # Mostly just editing text size & datewheel dims
# # Insta version!
# legend_cfg:
# point_mult: 5.7
# text_cex: 3.9
# text_col: "#444444"
# x_pos: 0.18
# y_pos: 0.80
# # Insta version!
# title_cfg:
# main: "U.S. River Conditions"
# subtitle: "April 1, 2023 - June 30, 2023"
# footnote: [
# "Conditions are relative to the historic",
# "daily record for each gage.",
# ]
# x_pos: 0.002
# y_pos: 0.965
# main_cex: 8.6
# main_col: "#666666"
# sub_cex: 5.1
# sub_col: "#666666"
# foot_cex: 4.3
# foot_col: "#939393"
# # Insta version!
# footnote_cfg:
# main: [
# "* Both USGS gage height and National Weather Service flood stage levels are necessary to determine flooding conditions and were available for 80% of gages at the time",
# " this graphic was produced. We used only publicly available data from Water Data for the Nation and some gages are missing gage height even when they have flow."
# ]
# x_pos: 0.255 # 0.30 (visid image)
# y_pos: 0.02
# cex: 3.4
# col: "#939393"
# # Insta version!
# datewheel_cfg:
# x_pos: 0.095 # percentage in the x direction to place the circle center
# y_pos: 0.27 # 0.37 (visid image) # percentage in the y direction to place the circle center
# wheel_per: 0.17 # percentage in the x direction to make the diameter
# event_per: 0.80 # percentage of the wheel radius to make the event arcs, skinnier if this is smaller
# inner_per: 0.70 # percentage of the wheel radius to make the donut, skinnier if this is bigger
# text_per: 0.75 # percentage of the inner radius to place the text
# col_empty: "#bdbdbd" # color of the wheel background
# col_filled: "#5d5d5dB3" # color to fill in the wheel as time marches on, last two = hex transparency
# col_text_months: "#383838" # color of month labels inside wheel
# col_text_months_outside: "#bdbdbd" # color of month labels inside wheel NOT during viz dates
# cex_text_months: 3.9
# col_text_datestamp: "#5f5f5f" # color of text inside the wheel
# cex_text_datestamp: 4.4
# # End of instagram version specs
# gif options
animation:
frame_delay_cs: 14 # delay for gifs
frame_rate: 2.25 #original input frames per second
output_frame_rate: 2.25 # if > input fps, duplicates some frames; if < input fps, drops some frames
# Image placement for function calls of USGS watermark, legend, datetime, etc..
# These are fraction of the coordinate space, where 0,0 is bottom left of figure (some stuff is right justified though - legend)
component_placement:
watermark_x_pos: "left"
watermark_y_pos: "bottom"
intro_frame:
cfg:
show_count: 8
final_frame:
cfg:
pause_count: 10 # number of frames for which to pause/repeat the final timestep of the animation
fade_count: 12 # number of frames for which the final frame will fade in
show_count: 12 # number of frames for which the final frame will be seen
paragraphs:
-
text: ["Learn more about USGS\n", "streamgages and their role in\n", "science and public safety:"]
ypos: 0.70 #percent of the y direction to place text (starting from bottom)
lheight: 1.4
cex: 14
col: "#474747"
-
text: ["usgs.gov/gwsip"]
ypos: 0.20 #percent of the y direction to place text (starting from bottom)
lheight: 1
cex: 22
col: "#04507d"