-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from robinhasse/complete_tgz
Complete tgz with all input data for EDGE-B
- Loading branch information
Showing
34 changed files
with
509 additions
and
961 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#' IEA's Tracking clean energy progress 2014 | ||
#' | ||
#' @param subtype character, type of data | ||
#' @author Robin Hasse | ||
#' | ||
#' @importFrom madrat readSource | ||
#' @export | ||
|
||
calcTCEP <- function(subtype) { | ||
return(list(x = readSource("TCEP", subtype, convert = FALSE), | ||
min = 0, | ||
isocountries = FALSE, | ||
unit = "m2/cap", | ||
description = "Floor space per capita")) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#' Passes U-values read from source | ||
#' | ||
#' @author Falk Benke, Robin Hasse | ||
#' | ||
#' @param subtype source of U-values | ||
#' @export | ||
|
||
calcUValueSource <- function(subtype = c("EUBuildingsObservatory", "ETSAP")) { | ||
|
||
subtype <- match.arg(subtype) | ||
|
||
x <- if (subtype == "EUBuildingsObservatory") { | ||
readSource("EUBuildingsObservatory", convert = FALSE) | ||
} else { | ||
readSource("ETSAP", convert = FALSE) | ||
} | ||
|
||
return(list(x = x, | ||
min = 0, | ||
isocountries = FALSE, | ||
unit = "W/m2K", | ||
description = paste("U-values as reported by", subtype) | ||
)) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#' Convert temporary HDD and CDD data | ||
#' | ||
#' The temporary data already is at EDGE-B regional resolution. It is uniformly | ||
#' disaggregated to country level here to comply with the madrat framework | ||
#' before it is aggregated to the identical resolution in fullEDGEBUILDINGS. | ||
#' | ||
#' @author Robin Hasse | ||
#' | ||
#' @param x MAgPIE object with HDD and CDD data at EDGE-B resolution | ||
#' @returns HDD CDD data at country resolution | ||
#' | ||
#' @importFrom madrat toolGetMapping toolAggregate | ||
#' @export | ||
|
||
convertHDDCDDtemp <- function(x) { | ||
mapping <- toolGetMapping(name = "regionmappingEDGE.csv", | ||
type = "regional", | ||
where = "mredgebuildings") | ||
|
||
toolAggregate(x, mapping, | ||
from = "RegionCodeEUR_ETP", to = "CountryCode") | ||
} |
Oops, something went wrong.