-
Notifications
You must be signed in to change notification settings - Fork 3
/
06-WRF-Hydro-Postprecess.Rmd
110 lines (83 loc) · 2.02 KB
/
06-WRF-Hydro-Postprecess.Rmd
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
---
title: "Hands-on Traning"
subtitle: '06-WRF-Hydro Post-processing'
author: "Chuliang Xiao"
date: "5/25/18"
output:
xaringan::moon_reader:
lib_dir: libs
css: xaringan-themer.css
nature:
highlightStyle: github
highlightLines: true
countIncrementalSlides: false
ratio: "16:9"
---
```{r xaringan-themer, include=FALSE}
library(xaringanthemer)
```
#Using git to connect GitHub
* To clone
```git
git clone https://github.com/ChuliangXiao/Training.git
```
* To update
```git
cd Training
git pull
```
---
# Outline
#### Review of WRF-Hydro Workflow
#### WRF-Hydro Input and Output
* WRF-Hydro Output
+ ASCII: `frxst_pts_out.txt`
+ NetCDF: `201101010000.CHANOBS_DOMAIN1`
* Comparison with USGS
* Mean-area Precipitation
---
# Offline WRF-Hydro Workflow
<div align="center">
<img src="WRF-Hydro-Workflow.png" width=800 height=480>
</div>
(Courtesy **WRF-Hdyro Training Material**)
---
# WRF-Hydro Workflow
<div align="center">
<img src="WRF-Hydro-Workflow-Executable.png" width=800 height=480>
</div>
(Courtesy **WRF-Hdyro Training Material**)
---
# WRF-Hydro Output
```
/glade2/scratch2/cxiao/Champlain/Stream
```
* Download USGS discharge
`download.US.R`
* Read in `YYYYMMMDDDHH.CHANOBS.DOMAIN1`
`read.CHRTOUT.US.R`
* Caclulate Mean Area Precipitation
`MAP.R` with function from `Calc_Mean_Areal.R`
* Plot Hydrograph
`Hydrograph.Comp.US.ggplot2.png.R`
---
# Plot Hydrograph
---
# Iterative run
.pull-left[
* Currently, WRF-Hydro is restated manually.
+ Submit a job with maximum time
+ Ouput restart files every 15 day
+ Restart WRF-Hydro every 2-3 years
- Find the most recent restart point
- Change the start point `namelist.hrlads` and `hydro.namelist`
- Submit a new job
]
.pull-right[
* Automatically WRF-Hydro restart run
+ A normal inital run
+ Automatical restart
- No model crash
- One year restart interval
- Restart at the beginning of the year
]