-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhistoricalFireAndHarvest.Rmd
79 lines (51 loc) · 1.85 KB
/
historicalFireAndHarvest.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
---
title: "historicalFireAndHarvest"
author: ""
date: "28 May 2019"
output: pdf_document
---
# Overview
Provide an overview of what the module does / how to use the module.
Module documentation should be written so that others can use your module.
This is a template for module documentation, and should be changed to reflect your module.
## R Markdown
R Markdown syntax allows R code, outputs, and figures to be rendered in the documentation.
For help writing in R Markdown, see http://rmarkdown.rstudio.com/.
# Usage
```{r module_usage}
library(SpaDES)
library(raster)
studyArea <- shapefile("C:/Ian/Data/Forestry/FtStJohn_TSA.shp")
setPaths(modulePath = file.path("C:/Ian/Git"),
cachePath = "cache")
getPaths() # shows where the 4 relevant paths are
times <- list(start = 1985, end = 1985)
parameters <- list(
historicalFireAndHarvest = list('.plotInitialTime' = 1985)
#.progress = list(type = "text", interval = 1), # for a progress bar
## If there are further modules, each can have its own set of parameters:
#module1 = list(param1 = value1, param2 = value2),
#module2 = list(param1 = value1, param2 = value2)
)
modules <- list("historicalFireAndHarvest")
objects <- list(studyArea = studyArea)
inputs <- list()
outputs <- list()
mySim <- simInit(times = times, params = parameters, modules = modules,
objects = objects)
mySimOut <- spades(mySim)
```
# Events
Describe what happens for each event type.
## Plotting
Write what is plotted.
## Saving
Write what is saved.
# Data dependencies
## Input data
How to obtain input data, and a description of the data required by the module.
If `sourceURL` is specified, `downloadData("historicalFireAndHarvest", "path/to/modules/dir")` may be sufficient.
## Output data
Description of the module outputs.
# Links to other modules
Describe any anticipated linkages to other modules.