Skip to contents

get_wc_url() returns the URL(s) of a WorldClim data series.

Usage

get_wc_url(series, resolution = "all")

Arguments

series

A character vector with the name of the WorldClim data series. The following options are available:

  • "hcd" or "historical-climate-data" or "historical climate data".

  • "hmwd" or "historical-monthly-weather-data" or "historical monthly weather data".

  • "fcd" or "future-climate-data" or "future climate data".

resolution

(optional) A character vector with the resolution of the WorldClim data series. The following options are available:

  • "all" (default) returns all available resolutions.

  • "10m" returns the 10m resolution.

  • "5m" returns the 5m resolution.

  • "2.5m" returns the 2.5m resolution.

  • "30s" returns the 30s resolution.

Value

A named character vector with the URL(s) or OSF ID(s) of the WorldClim data series.

See also

Other WorldClim functions: wc_to_ascii()

Examples

get_wc_url("hcd")
#>                       Historical climate data 
#> "https://worldclim.org/data/worldclim21.html" 

get_wc_url("historical climate data")
#>                       Historical climate data 
#> "https://worldclim.org/data/worldclim21.html" 

get_wc_url("hmwd")
#>              Historical monthly weather data 
#> "https://worldclim.org/data/monthlywth.html" 

get_wc_url("historical monthly weather data")
#>              Historical monthly weather data 
#> "https://worldclim.org/data/monthlywth.html" 

get_wc_url("fcd")
#>                              Future climate data (10m) 
#>  "https://worldclim.org/data/cmip6/cmip6_clim10m.html" 
#>                               Future climate data (5m) 
#>   "https://worldclim.org/data/cmip6/cmip6_clim5m.html" 
#>                             Future climate data (2.5m) 
#> "https://worldclim.org/data/cmip6/cmip6_clim2.5m.html" 
#>                              Future climate data (30s) 
#>  "https://worldclim.org/data/cmip6/cmip6_clim30s.html" 

get_wc_url("future climate data")
#>                              Future climate data (10m) 
#>  "https://worldclim.org/data/cmip6/cmip6_clim10m.html" 
#>                               Future climate data (5m) 
#>   "https://worldclim.org/data/cmip6/cmip6_clim5m.html" 
#>                             Future climate data (2.5m) 
#> "https://worldclim.org/data/cmip6/cmip6_clim2.5m.html" 
#>                              Future climate data (30s) 
#>  "https://worldclim.org/data/cmip6/cmip6_clim30s.html" 

get_wc_url("future climate data", "10m")
#>                             Future climate data (10m) 
#> "https://worldclim.org/data/cmip6/cmip6_clim10m.html" 

get_wc_url(c("hcd", "hmwd", "fcd"))
#>                                Historical climate data 
#>          "https://worldclim.org/data/worldclim21.html" 
#>                        Historical monthly weather data 
#>           "https://worldclim.org/data/monthlywth.html" 
#>                              Future climate data (10m) 
#>  "https://worldclim.org/data/cmip6/cmip6_clim10m.html" 
#>                               Future climate data (5m) 
#>   "https://worldclim.org/data/cmip6/cmip6_clim5m.html" 
#>                             Future climate data (2.5m) 
#> "https://worldclim.org/data/cmip6/cmip6_clim2.5m.html" 
#>                              Future climate data (30s) 
#>  "https://worldclim.org/data/cmip6/cmip6_clim30s.html" 

get_wc_url(c("hcd", "hmwd", "fcd"), "5m")
#>                              Historical climate data 
#>        "https://worldclim.org/data/worldclim21.html" 
#>                      Historical monthly weather data 
#>         "https://worldclim.org/data/monthlywth.html" 
#>                             Future climate data (5m) 
#> "https://worldclim.org/data/cmip6/cmip6_clim5m.html"