Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
spatialec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ben Anderson
spatialec
Commits
6b60338e
Commit
6b60338e
authored
5 years ago
by
Ben Anderson
Browse files
Options
Downloads
Patches
Plain Diff
old version
parent
c496a11d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
analysis/GREENGridModel/GREENGridModel_master_v1.0.Rmd
+23
-8
23 additions, 8 deletions
analysis/GREENGridModel/GREENGridModel_master_v1.0.Rmd
with
23 additions
and
8 deletions
analysis/GREENGridModel/GREENGridModel_master_v1.0.Rmd
+
23
−
8
View file @
6b60338e
...
...
@@ -46,23 +46,23 @@ spatialec::loadLibraries(myPackages) # this will try to install packages it can'
projRoot <- here::here()
# --- Project Settings ----
source(paste0(projRoot, "/
_scripts/spatialec
Settings.R")) # loads knitr options & assigns file paths and loads system info
source(paste0(projRoot, "/
package
Settings.R")) # loads knitr options & assigns file paths and loads system info
# ---- Local Settings ----
s
Params$censusDataSource <- "http://archive.stats.govt.nz/Census/2013-census/data-tables/meshblock-dataset.aspx"
p_
Params$censusDataSource <- "http://archive.stats.govt.nz/Census/2013-census/data-tables/meshblock-dataset.aspx"
s
Params$ggPath <- "~/Data/NZ_GREENGrid" # over-rides default for speed
p_
Params$ggPath <- "~/Data/NZ_GREENGrid" # over-rides default for speed
# Print system information
outputM
essage("Running on",
s
Params$sysName,
"from projLoc =", projRoot) # sysName is set in spatialecSettings.R
m
essage("Running on
",
p_
Params$sysName,
"
from projLoc =", projRoot) # sysName is set in spatialecSettings.R
```
# Report Purpose
To use:
* NZ Census 2013 data (from `r
s
Params$censusDataSource`) and
* NZ Census 2013 data (from `r
p_
Params$censusDataSource`) and
* NZ GREENGrid household power demand data (from [@anderson_new_2018])
To develop initial local area estimates of temporal (half-hourly) power demand in
...
...
@@ -78,10 +78,25 @@ This paper will present preliminary results from the development of a neighbourh
```{r loadNonPowerData, child="_loadNonPowerData.Rmd"}
```
#
Create Synthetic censu
s
#
Load IPF weight
s
```{r includeCensusIPF, child="_createSyntheticCensus.Rmd"}
## Census 2013
These are created using the GREEN Grid sample, Census 2013 and IPF
```{r loadIPF2013}
p_Params$ipf2013 <- paste0(p_Params$ggPath, "/safe/ipf/nonZeroWeightsAu2013.csv")
file.info(p_Params$ipf2013)
ipfWeights2013DT <- data.table::fread(p_Params$ipf2013)
st <- summary(ipfWeights2013DT)
kableExtra::kable(st, digits = 2,
caption = "Summary of IPF 2013 weights") %>%
kable_styling()
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment