You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-6Lines changed: 11 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,15 @@
3
3
**Perceptual model** is defined as:
4
4
> An expert summary of the watershed and its runoff processes often supported by field observations. Perceptual models are often presented as a schematic figure, although such a figure will necessarily simplify the hydrologist's complex mental model (McMillan et al., 2022)
5
5
6
-
This repo contains a released version of the perceptual data model database from https://doi.org/10.1002/hyp.14845. Currently our database holds **400 models** in both text (269) and figure (131) format collected from hydrologic literature.
6
+
This repo contains a released version of the perceptual data model database, used for the manuscript under review **"Global patterns in observed hydrologic processes (McMillan et al.)"**. Currently our database holds **400 models** in the form of both text (269) and figure (131, including 63 identified in [McMillan et al., 2022](https://doi.org/10.1002/hyp.14845)) collected from hydrologic literature.
7
7
8
8
Visit **[the perceptual model interactive map](http://www.mcmillanhydrology.org/PerceptualModelDashboard.html)** for the visualization :world_map:
9
9
10
10
## Installation/Getting Started
11
+
If you are only interested in the pre-built database and not the building process, you can download the database backup (SQLdump) from ```data/backup/*.backup```. Alternatively, check csv files under ```data``` directory.
12
+
13
+
The following explains the code used to build the Postgres database and webmap.
14
+
11
15
**1. Create your environment**
12
16
Use Conda to create an environment
13
17
```
@@ -21,17 +25,18 @@ Run the following code in order:
21
25
-`0-debug_excelsheets.ipynb`
22
26
-`1-build_database.ipynb`
23
27
28
+
### Query database
29
+
`src/query` contains example scripts that can be used to query the database:
30
+
-`calc_stats.sql` holds query scripts to calculate statistics used in [the paper McMillan et al., 2022](https://doi.org/10.1002/hyp.14845)
31
+
- Note that analysis for the manuscript "Global patterns in observed hydrologic processes (McMillan et al.)" was implemented using ArcGIS software
32
+
- Use `debug_built_database.sql` to debug the database if the SQL database or code (`1-build_database.ipynb`) are not working as expected
33
+
24
34
### Create webmap
25
35
`src/webmap` contains example scripts that are used to create [the ArcGIS interactive webmap](http://www.mcmillanhydrology.org/PerceptualModelDashboard.html).
26
36
To initiate the webmap after building the SQL database:
27
37
- Run `init_create_webmap.ipynb` to initiate a webmap
28
38
- Or, run `update_webmap.ipynb` to update an existing webmap
29
39
30
-
### Other utilities
31
-
`src/utils` contains other utilities:
32
-
-`calc_stats.sql` holds query scripts to calculate statistics used in [the paper](https://doi.org/10.1002/hyp.14845)
33
-
- Use `debug_built_database.sql` to debug the database if the SQL database or code (`1-build_database.ipynb`) are not working as expected
0 commit comments