forked from DOI-USGS/vizstorm-GIF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviz_config-example.yml
231 lines (214 loc) · 7.17 KB
/
viz_config-example.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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
storm_name: "Florence"
# `storm_code` and `stn_event` can be commented out or deleted if there is not a storm track
storm_code: al062018 # find the right code at https://www.nhc.noaa.gov/gis/archive_besttrack.php?year=2018
stn_event: 283
dates:
start: '2018-09-12 00:00:00'
end: '2018-09-19 13:00:00'
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: [-83, 30.4, -67, 38.5]
projection: "+proj=lcc +lat_1=34.83333333333334 +lat_2=32.5 +lat_0=31.83333333333333 +lon_0=-81 +x_0=609600 +y_0=0 +ellps=GRS80 +units=m +no_defs "
height: 512
width: 1024
# styling
precip_cols: ["#FAFBF399", "#F0F8E3CC", "#D4E9CAE6", "#BBE0CE", "#B7DAD0", "#B0CCD7", "#A9B8D7", "#A297C2", "#8F6F9E", "#684A77", "#41234D"]
precip_bin: 4 # inches per bin
gage_flood_col: "#175676"
gage_line_col: "#3c829c"
gage_norm_col: "#4BA3C3"
gage_out_col: "white"
gage_ltn_col: "#97cbdb" # #aad4e2 # for non-focal stationary gages (ltn = long-term network), to show in outro
gage_stn_col: "#ff7f50" # for non-focal short-term-network (rapid deployment) gages, to show in outro
hurricane_col: "orange"
hurricane_cols: ["#71c633", "#FBC195", "#FB8147", "#EF5F2C", "#C63526", "#6E1B14"]
hurricane_col_names: ["Tropical Storm %s", "Hurricane %s (Cat1)", "Hurricane %s (Cat2)", "Hurricane %s (Cat3)", "Hurricane %s (Cat4)", "Hurricane %s (Cat5)"] # If these change, legend layout may break
storm_line_col: "grey30"
major_river_col: "#1874cd"
gage_river_col: "#5d9ddc"
lake_col: "#a2c7eb"
marsh_col: NA
ocean_col: "#e7f1fa"
storm_line_col: "grey70"
legend_text:
cex: 1.5
col: "#161616"
family: ""
timeline_style:
pt_cex: 0.5
pt_col: "gray30"
pt_pch: "|"
line_cex: 1
line_lwd: 0.7
line_lty: 3
line_col: "gray45"
font_cex: 1
font_col: "gray30"
storm_line:
dark_col: "grey10"
light_col: "grey60"
tail_length: 25 # n storm point locations behind the current date time to show the tail
fade_i: 3 # n storm points between the next colored storm points (smaller fade_i = smoother fade)
# introductory animation
intro:
t_last_start: 5 # last frame in the intro animation when a site should leave its lat/lon (they're staggered)
n_frames: 20 # number of frames in the intro animation linking gages to sparklines
elbow_radius: 50000 # radius of the curvature at the elbow of the dot travel path, in 10000ths of degrees
point_background: "#175676"
frame_delay_cs: 8 # delay between intro frames. cs = centiseconds = hundredths of a second
frame_delay_cs: 14 # delay between frames of the gif animation DURING storm frames. cs = centiseconds = hundredths of a second
# 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: "top"
datetime:
# above watermark for now
x1: 0.005
y1: 0.85
legend_x_pos: "left"
legend_y_pos: "bottom"
sparks:
xleft: 0.70 # as percentage of figure width
xright: 0.98 # don't use 1.0 - it causes an error (invalid value specified for graphics parameter "fig")
ybottom: 0.30 # as percentage of figure height
ytop: 0.93 # top of the first sparkline. spark title goes above. don't use 1.0 - it causes an error (invalid value specified for graphics parameter "fig")
ytimeline: 0.24 # y location of timeline; this will use xright and xleft from sparks
ytimeline_text: 0.205 # y location of timeline dates (0.035 below line has worked well)
outro:
# outro text & legend roughly, but not exactly, fit where the sparklines were
xleft: 0.55
xright: 0.99
ytop_ltn: 0.6 # top y coordinate of the text and legend for the long-term network
ytop_stn: 0.85 # top y coordinate of the text and legend for the short-term network
ytop_more: 0.4 # top y coordinate of the text and URL for where to learn more
ocean_name_placement:
-
x1: 0.4
y1: 0.3
label: 'Atlantic Ocean'
focus_geoms:
-
# U.S. counties
database: county
-
# U.S. states
database: state
secondary_geoms:
-
# non-U.S. islands
database: "mapdata::world2Hires"
regions: "(?!USA)"
xlim: [275, 300]
ylim: [16, 30]
-
# Mexico
database: "mapdata::worldHires"
regions: "Mexico"
cities:
# parameters for general coloring of the cities
dot:
bg: "gray40"
col: "gray40"
pch: 5
cex: 1
text:
col: "gray40"
font: 1
cex: 1.1
angle: 330 # angle in radians for position of label relative to dot. pos is computed from angle: 225-315=1, 315-45=4, 45-135=3, 135-225=2
dist: 0.007 # relative (fraction of window width) distance from dot to label
pop_min: 500000 # minimum population size of cities to be chosen by default; `custom` will make additions or modifications and `exclude` will make subtractions
custom:
# cities to add or modify relative to the maps::us.cities dataset. added cities can use lat/long from us.cities if they are present in us.cities, even if they don't meet the pop_min criterion
#-
# name: "Richmond VA"
# text_angle: 170
-
name: "Raleigh NC"
text_angle: 170
-
name: "Charlotte NC"
text_angle: 170
-
name: "Columbia SC"
text_angle: 170
#-
# name: "Savannah GA"
# text_angle: 170
#-
# name: "Jacksonville FL"
#-
# name: "Virginia Beach VA"
# dot_cex: 0.8
# text_cex: 0.8
#-
# name: "Nags Head NC"
# lat: 35.9425
# long: -75.6228
# dot_cex: 0.8
# text_cex: 0.8
-
name: "New Bern NC"
news: "CBS"
dot_cex: 0.8
text_cex: 0.8
lat: 35.107686
long: -77.051366
-
name: "Wilmington NC"
news: "CBS"
dot_cex: 0.8
text_cex: 0.8
-
name: "Myrtle Beach SC"
news: "CBS"
lat: 33.6917
long: -78.8875
dot_cex: 0.8
text_cex: 0.8
#-
# name: "Charleston SC"
# news: "google/crisismap"
# dot_cex: 0.8
# text_cex: 0.8
# UPCOMING ALONG STORM TRACK:
#-
# name: "Knoxville TN"
#-
# name: "Columbus OH"
#-
# name: "Pittsburgh PA"
#-
# name: "New York NY"
#-
# name: "Boston MA"
exclude:
- "Knoxville TN"
- "Richmond VA"
- "Memphis TN"
- "Oklahoma City OK"
- "Fort Worth TX"
- "Dallas TX"
- "Chicago IL"
- "Baltimore MD"
- "WASHINGTON DC"
- "Indianapolis IN"
- "Nashville TN"
- "Jacksonville FL"
# Only streamorders greater than this will be fetched.
fetch_streamorder: 5
# Only waterbodies greater than this area will be fetched.
fetch_waterbody_areasqkm: 1000
# Changes only affect river geom process step.
# Coastal threshold controls the drainage area used to limit
# flowlines that terminate at the ocean. Inland threshold
# controls the drainage area used to limit tributary flowlines
# that terminate into other flowlines.
coastal_threshold_sqkm: 1000
inland_threshold_sqkm: 40000
simplification_tolerance_m: 1000
# for linear interpolation of stage data: maximum number of hours under which
# gaps in stage data will be interpolated
stage_gap_threshold: 3