cc_search | R Documentation |
Search CCAFS data
cc_search( file_set = NULL, scenario = NULL, model = NULL, extent = NULL, format = NULL, period = NULL, variable = NULL, resolution = NULL, tile = NULL )
file_set |
(integer) a file set, 2 through 12 |
scenario |
(integer) a scenario, 1 through 10 |
model |
(integer) a model, 1 through 89 |
extent |
(character) an extent, 'global' or 'region' |
format |
(character) a format, 'ascii' or 'esri' |
period |
(integer) a period, 1 through 10 |
variable |
(integer) a variable, 1 through 7, or 9999 |
resolution |
(integer) a resolutions, 1 through 7 |
tile |
(character) a tile defining a spatial area on the globe. one of A1-6, B1-6, or C1-6. See web interface for where those are located. |
See ccafs-search for details on parameters.
note that some URLs will be for Amazon S3 and others will have different base URLS (e.g., http://gisweb.ciat.cgiar.org)
Output can be passed to cc_data_fetch()
, and subsequently to
cc_data_read()
character strings, one or more urls
## Not run: (res <- cc_search(file_set = 12, extent = "global", format = "ascii", period = 4, variable = 1, resolution = 4)) res <- cc_search(file_set = 7, extent = "region", format = "ascii", period = 9, variable = 5, resolution = 6) cc_data_fetch(res[3]) # Alternatively, you can use the helper list # where you can reference options by name # the downside is that this is very verbose (res <- cc_search(file_set = cc_params$file_set$`Delta method IPCC AR4`, scenario = cc_params$scenario$`SRES B1`, model = cc_params$model$bccr_bcm2_0, extent = cc_params$extent$global, format = cc_params$format$ascii, period = cc_params$period$`2040s`, variable = cc_params$variable$Precipitation, resolution = cc_params$resolution$`5 minutes`)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.