-
Notifications
You must be signed in to change notification settings - Fork 7
/
viz.yaml
172 lines (170 loc) · 4.26 KB
/
viz.yaml
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
vizlab: "0.3.10"
info:
id: gage-conditions
name: USGS Gage Conditions
date: 2018-06-11
publish-date: 2019-06-25
path: /gage-conditions
analytics-id: # WE WILL NEED TO FILL THIS IN AT SOME POINT
description: Map of all USGS gages and their conditions.
required-packages:
vizlab:
repo: github
version: 0.3.10
name: USGS-VIZLAB/vizlab
ref: v0.3.10
bit64:
repo: CRAN
version: 0.9-7
dataRetrieval:
repo: CRAN
version: 2.7.3
dplyr:
repo: CRAN
version: 0.7.4
tidyr:
repo: CRAN
version: 0.8.1
sp:
repo: CRAN
version: 1.2.7
sbtools:
repo: CRAN
version: 1.1.6
geojsonio:
repo: CRAN
version: 0.6.0
contributors:
-
name: Lindsay Carr
email: [email protected]
affiliation: U.S. Geological Survey
-
name: Jordan Read
email: [email protected]
affiliation: U.S. Geological Survey
parameter:
- id: plot_monthday
monthday: "05-01"
- id: plot_year
year: 2018
- id: block_size
size: 10
- id: discharge_percentiles
percentiles: ["05","10","20","25","50","75","80","90","95"]
fetch:
- id: dv_sites
location: cache/dv_sites.json
reader: json
fetcher: dv_sites
scripts: [scripts/fetch/dv_sites.R]
depends:
year: plot_year
- id: site_stats # took about 20 min for all time
location: cache/site_stats.json
reader: json
fetcher: site_stats
scripts: [scripts/fetch/site_stats.R]
depends:
sites: dv_sites
block_size: block_size
percentiles: discharge_percentiles
- id: dv_data # took about 45 min for 1 yr
location: cache/dv_data.json
reader: json
fetcher: dv_data
scripts: [scripts/fetch/dv_data.R]
depends:
year: plot_year
sites: dv_sites
-
id: dv_sites_svg
location: cache/site_coords.tsv
mimetype: text/tab-separated-values
reader: tabular
scripts:
comment: Needs map_preprocess.yml to exist.
process:
- id: dv_stats
location: cache/dv_stats.json
mimetype: application/json
reader: json
processor: dv_stats
scripts: [scripts/process/dv_stats.R]
depends:
year: plot_year
monthday: plot_monthday
site_stats: site_stats
data: dv_data
percentiles: discharge_percentiles
- id: dv_sites_sp
location: cache/site_locations_sp.rds
reader: rds
processor: sites_to_sp
scripts: [scripts/process/spatial_utils.R]
depends:
sites: dv_sites
- id: dv_stats_svg_coords
location: cache/dv_stats_svg_coords.json
mimetype: application/json
reader: json
processor: combine_locations_data
scripts: scripts/process/combine_locations_data.R
depends:
sites_sp: dv_sites_sp # only here so that this gets re-run if that changes. but preprocess won't so it doesn't actually matter.
sites_svg: dv_sites_svg
sites_data: dv_stats
visualize:
publish:
-
id: viz_page
name: index
publisher: page
template: fullpage
depends:
header_css: lib-header-css
footer_css: lib-footer-css
content_css: lib-content-css
header: header_section
footer: footer_section
figure_section: figure_section
dv_info: dv_stats_svg_coords
context:
resources: [header_css, footer_css, content_css]
sections: [figure_section]
-
id: header_section
template: header-template
publisher: header
depends: lib-header-css
context:
title: "U.S. Geological Survey Gage Conditions"
-
id: footer_section
template: footer-template
publisher: section
depends: lib-footer-css
blogsInFooter: FALSE
github-url: https://github.com/USGS-VIZLAB/gage-conditions
vizzies: FALSE
-
id: figure_section # need this so that d3 code gets run after d3 has been loaded
template: layout/templates/main_fig.mustache
publisher: section
depends:
script: bundle_js
initial_svg: svg_state_map
context:
initial_svg: initial_svg
script: script
-
id: svg_state_map
location: cache/state_boundaries.svg
mimetype: "image/svg"
publisher: inline_svg
scripts: scripts/publish/inline_svg.R
-
id: bundle_js
relpath: js/bundle.js
mimetype: application/javascript
publisher: webpack