Title: | Koeppen-Geiger Climatic Zones |
---|---|
Description: | Aids in identifying the Koeppen-Geiger (KG) climatic zone for a given location. The Koeppen-Geiger climate zones were first published in 1884, as a system to classify regions of the earth by their relative heat and humidity through the year, for the benefit of human health, plant and agriculture and other human activity [1]. This climate zone classification system, applicable to all of the earths surface, has continued to be developed by scientists up to the present day. Recently one of use (FZ) has published updated, higher accuracy KG climate zone definitions [2]. In this package we use these updated high-resolution maps as the data source [3]. We provide functions that return the KG climate zone for a given longitude and lattitude, or for a given United States zip code. In addition the CZUncertainty() function will check climate zones nearby to check if the given location is near a climate zone boundary. In addition an interactive shiny app is provided to define the KG climate zone for a given longitude and lattitude, or United States zip code. Digital data, as well as animated maps, showing the shift of the climate zones are provided on the following website <http://koeppen-geiger.vu-wien.ac.at>. This work was supported by the DOE-EERE SunShot award DE-EE-0007140. [1] W. Koeppen, (2011) <doi:10.1127/0941-2948/2011/105>. [2] F. Rubel and M. Kottek, (2010) <doi:10.1127/0941-2948/2010/0430>. [3] F. Rubel, K. Brugger, K. Haslinger, and I. Auer, (2016) <doi:10.1127/metz/2016/0816>. |
Authors: | Chelsey Bryant [aut, cre] (0000-0003-3603-4854), Nicholas R. Wheeler [aut] (0000-0003-2248-8919), Franz Rubel [aut] (0000-0002-0048-7379), Roger H. French [aut] (0000-0002-6162-0532) |
Maintainer: | Chelsey Bryant <[email protected]> |
License: | BSD_2_clause + file LICENSE |
Version: | 1.0.0.2 |
Built: | 2025-02-13 05:15:15 UTC |
Source: | https://github.com/cran/kgc |
A data frame containing the Koppen Geiger climate classification for areas.
climatezones
climatezones
A data frame with 92416 rows and 3 variables:
Latitude, numeric
Longitude, numeric
Climate Zone, factor with 30 levels
http://koeppen-geiger.vu-wien.ac.at/present.htm
This function will return the uncertainty associated with the predicted climate zone along with other potential climate zones.
CZUncertainty(data)
CZUncertainty(data)
data |
The co-ordinates for the location you are trying to predict the climate zone of. |
The uncertainty associated with the located climate zone along with other potential climate zones.
data<- data.frame(Site = c("GC","UFS","NEG"), Longitude = c(-15.42,10.98,34.78), Latitude = c(27.82,47.42,30.86)) data <- data.frame(data, rndCoord.lon = RoundCoordinates(data$Longitude), rndCoord.lat = RoundCoordinates(data$Latitude)) data <- data.frame(data,ClimateZ=LookupCZ(data)) data <- data.frame(data, CZUncertainty(data))
data<- data.frame(Site = c("GC","UFS","NEG"), Longitude = c(-15.42,10.98,34.78), Latitude = c(27.82,47.42,30.86)) data <- data.frame(data, rndCoord.lon = RoundCoordinates(data$Longitude), rndCoord.lat = RoundCoordinates(data$Latitude)) data <- data.frame(data,ClimateZ=LookupCZ(data)) data <- data.frame(data, CZUncertainty(data))
This function will generate a list of coordinates for the 'fine' resolution climate zone map data, stored in 'kgz.rda'.
genCoords(latlong = "lat", full = FALSE, latdim = 6480, londim = 12960)
genCoords(latlong = "lat", full = FALSE, latdim = 6480, londim = 12960)
latlong |
Whether a vector of latitude values, or longitude values, is being created. |
full |
Specify whether to generate a full list of all coords in the full image, or just one row/column (default FALSE, means just one row/column). |
latdim |
The number of pixels in the image in the latitude dimension (y) |
londim |
The number of pixels in the image in the longitude dimension (x) |
A vector of latitude or longitude coordinate values (default for a map 12960x 6480y).
ccoords <- genCoords(latlong='lon',full='true')
ccoords <- genCoords(latlong='lon',full='true')
This function will return the character code of a given climate zone corresponding to a numeric value (factor levels of the fine resolution data).
getZone(num)
getZone(num)
num |
The numeric code describing a climate zone. |
A string describing the climate zone as a character code.
ccz <- getZone(16)
ccz <- getZone(16)
A data frame containing the reported climate zones and longitude and latitude for selected example cities worldwide.
kgcities
kgcities
A data frame with 88 rows and 5 variables:
location, character
reported climate zone description, character
reported climate zone, character
longitude, numeric
latitude, numeric
A vector containing all points of a high resolution climate zone map.
kmz
kmz
A vector of length 83980800 (ydim=6480,xdim=12960, row-wise), with 32 factor levels representing 31 koppen-geiger climate zones and 'ocean'.
Rubel, F., Brugger, K., Haslinger, K., Auer, I., 2016. The climate of the European Alps: Shift of very high resolution Köppen-Geiger climate zones 1800–2100. Meteorologische Zeitschrift. doi:10.1127/metz/2016/0816 http://koeppen-geiger.vu-wien.ac.at/
This function will return the climate zone for the co-ordinates provided.
LookupCZ(data, res = "course", rc = FALSE)
LookupCZ(data, res = "course", rc = FALSE)
data |
The co-ordinates for the location you are trying to predict the climate zone of (format is three column dataframe, first column site IDs, second column longitude values, third column latitude values). |
res |
Specify the resolution as a string - 'course' for lower resolution (default, 0.5 degrees), 'fine' for higher resolution (100s). |
rc |
Specify whether to generate the rounded coordinate columns in the input dataframe, default is FALSE. |
The climate zone for the co-ordinates provided.
data <- data.frame(Site = c("GC","UFS","NEG"), Longitude = c(-15.42,10.98,34.78), Latitude = c(27.82,47.42,30.86)) data <- data.frame(data, rndCoord.lon = RoundCoordinates(data$Longitude), rndCoord.lat = RoundCoordinates(data$Latitude)) data <- data.frame(data,ClimateZ=LookupCZ(data))
data <- data.frame(Site = c("GC","UFS","NEG"), Longitude = c(-15.42,10.98,34.78), Latitude = c(27.82,47.42,30.86)) data <- data.frame(data, rndCoord.lon = RoundCoordinates(data$Longitude), rndCoord.lat = RoundCoordinates(data$Latitude)) data <- data.frame(data,ClimateZ=LookupCZ(data))
This function will round the inputed value to a co-ordinate present in the KG Climate Zone look up table.
RoundCoordinates(number, res = "course", latlong = "lat")
RoundCoordinates(number, res = "course", latlong = "lat")
number |
The value to round |
res |
Specify the resolution as a string - 'course' for lower resolution (default, 0.5 degrees), 'fine' for higher resolution (100s). |
latlong |
Whether the number is a latitude value ('lat', default), or longitude value ('lon') (this parameter is only used if res='fine'). |
The inputed number, rounded to a value ending in either .25 or .75 (course), or to nearest 'fine' (100s) resolution grid point.
RoundCoordinates(10.98) RoundCoordinates(10.98,res='fine',latlong='lon')
RoundCoordinates(10.98) RoundCoordinates(10.98,res='fine',latlong='lon')
This function will run the shiny app found in this package.
RunExample()
RunExample()
launches the shiny app created for the package.
## Not run: kgc::RunExample() ## End(Not run)
## Not run: kgc::RunExample() ## End(Not run)
This function will return the data frame with the longitude and latitude of the zip codes
TranslateZipCode(number)
TranslateZipCode(number)
number |
A dataframe that contains zip codes in a column labeled 'zip' |
The original data frame, with two additional columns for the corresponding latitude and longitude
example <- data.frame("zip" = c(44106,638, 1106)) TranslateZipCode(example)
example <- data.frame("zip" = c(44106,638, 1106)) TranslateZipCode(example)
A data frame containing the longitude and latitude for zip codes.
zipcodes
zipcodes
A data frame with 33144 rows and 3 variables:
zip code, numeric
latitude, numic
long, numeric
http://www.census.gov/geo/maps-data/data/gazetteer2016.html