Version 1.0.0.2 Date 2017-12-01 Title Koeppen-Geiger Climatic Zones Package kgc December 21, 2017 Author 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 <clb117@case.edu> Depends R (>= 3.3.2), shiny, shinythemes, plyr Suggests knitr, rmarkdown, testthat Encoding UTF-8 LazyData true 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>. License BSD_2_clause + file LICENSE VignetteBuilder knitr RoxygenNote 6.0.1 1
2 climatezones NeedsCompilation no Repository CRAN Date/Publication 2017-12-20 23:44:53 UTC R topics documented: climatezones........................................ 2 CZUncertainty....................................... 3 gencoords.......................................... 3 getzone........................................... 4 kgcities........................................... 5 kmz............................................. 5 LookupCZ.......................................... 6 RoundCoordinates..................................... 6 RunExample........................................ 7 TranslateZipCode...................................... 8 zipcodes........................................... 8 Index 9 climatezones Koppen-Geiger Climate Zones reference table. A data frame containing the Koppen Geiger climate classification for areas. climatezones Format A data frame with 92416 rows and 3 variables: Lat Latitude, numeric Lon Longitude, numeric Cls Climate Zone, factor with 30 levels Source http://koeppen-geiger.vu-wien.ac.at/present.htm
CZUncertainty 3 CZUncertainty CZUncertainty This function will return the uncertainty associated with the predicted climate zone along with other potential climate zones. 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)) gencoords gencoords 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)
4 getzone latlong full latdim londim Whether a vector of latitude values, or longitude values, is being created. 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). The number of pixels in the image in the latitude dimension (y) 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') getzone getzone 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) num The numeric code describing a climate zone. A string describing the climate zone as a character code. ccz <- getzone(16)
kgcities 5 kgcities Koppen Geiger climates for selected cities reference table. A data frame containing the reported climate zones and longitude and latitude for selected example cities worldwide. kgcities Format A data frame with 88 rows and 5 variables: loc location, character rczd reported climate zone description, character rcz reported climate zone, character lon longitude, numeric lat latitude, numeric Source http://www.wikipedia.org kmz High resolution (100s) Koppen Geiger climate zones. A vector containing all points of a high resolution climate zone map. kmz Format A vector of length 83980800 (ydim=6480,xdim=12960, row-wise), with 32 factor levels representing 31 koppen-geiger climate zones and ocean. Source 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/
6 RoundCoordinates LookupCZ LookupCZ This function will return the climate zone for the co-ordinates provided. 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)) RoundCoordinates RoundCoordinates 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")
RunExample 7 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') RunExample RunExample This function will run the shiny app found in this package. RunExample() launches the shiny app created for the package. ## Not run: kgc::runexample() ## End(Not run)
8 zipcodes TranslateZipCode TranslateZipCode This function will return the data frame with the longitude and latitude of the zip codes 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) zipcodes Zip Code reference table. A data frame containing the longitude and latitude for zip codes. zipcodes Format A data frame with 33144 rows and 3 variables: zip zip code, numeric lat latitude, numic long long, numeric Source http://www.census.gov/geo/maps-data/data/gazetteer2016.html
Index Topic datasets climatezones, 2 kgcities, 5 kmz, 5 zipcodes, 8 climatezones, 2 CZUncertainty, 3 gencoords, 3 getzone, 4 kgcities, 5 kmz, 5 LookupCZ, 6 RoundCoordinates, 6 RunExample, 7 TranslateZipCode, 8 zipcodes, 8 9