-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path03_climate_trends.R
57 lines (49 loc) · 1.92 KB
/
03_climate_trends.R
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
# *------------------------------------------------------------------
# | PROGRAM NAME: climate_trends
# | FILE NAME: 04_climate_trends.R
# | DATE:
# | CREATED BY: Jim Stagge
# *----------------------------------------------------------------
# | PURPOSE: This code calculates trends for each of the consitutent
# | climate variables.
# | Reproduces Figure 3 from "Observed Drought Indices ..."
# |
# *------------------------------------------------------------------
# | COMMENTS:
# |
# | 1:
# | 2:
# | 3:
# |*------------------------------------------------------------------
# | DATA USED:
# |
# |
# |*------------------------------------------------------------------
# | CONTENTS:
# |
# | PART 1:
# | PART 2:
# | PART 3:
# *-----------------------------------------------------------------
# | UPDATES:
# |
# |
# *------------------------------------------------------------------
### Clear any existing data or functions.
rm(list=ls())
###########################################################################
## Run code to process evapotranspiration
###########################################################################
source(file.path("code/ET_O", "01_et0_weighted.R"))
source(file.path("code/ET_O", "02_et0_trend.R"))
###########################################################################
## Run code to process Temperature
###########################################################################
source(file.path("code/Temp", "01_temp_weighted.R"))
source(file.path("code/Temp", "02_tair_trend.R"))
source(file.path("code/Temp", "03_tdiff_trend.R"))
###########################################################################
## Run code to process Wind Speed
###########################################################################
source(file.path("code/Wind", "01_wind_weighted.R"))
source(file.path("code/Wind", "02_wind_trend.R"))