# R/ccafs-package.R In ccafs: Client for 'CCAFS' 'GCM' Data

#' @title Client for CCAFS GCM Data
#'
#' @description Client for Climate Change, Agriculture, and Food Security
#' (CCAFS) General Circulation Models (GCM) data. Data is stored in
#' Amazon S3, from which we provide functions to fetch data.
#'
#' Client for Climate Change, Agriculture, and Food Security
#' (CCAFS) General Circulation Models (GCM) data. Data is stored in
#' Amazon S3, from which we provide functions to fetch data.
#'
#' R client for Climate Change, Agriculture, and Food Security (CCAFS)
#' General Circulation Models (GCM) data.
#'
#' CCAFS website: <http://ccafs-climate.org/>
#'
#' CCAFS GCM data for this package comes from Amazon S3
#' \url{http://cgiardata.s3.amazonaws.com}. More about Amazon S3 below.
#'
#' CCAFS data can be used for studying climate change, and how climate
#' impacts various aspects of the earth. Search google scholar with
#' "CCAFS" "GCM" to see example uses.
#'
#' As far as I can tell, CCAFS GCM data comes from IPCC data.
#'
#' Amazon S3 stands for "Simple Storage Service" - it's like a file system,
#'
#' S3 is split up into buckets, essentially folder. All CCAFS data is in
#' one bucket. Within the CCAFS bucket on S3 are a series of nested folders.
#' To get to various files we need to navigate down the tree of folders.
#' Keys are file paths with all their parent folders, e.g., "/foo/bar/1/2".
#' Unfortunately, there's no meaningful search of the CCCAFS data as they
#' have on their website \url{http://ccafs-climate.org/}. However, you can
#' set a prefix for a search of these keys, e.g., "/foo/bar" for the key
#' above.
#'
#'
#' \pkg{ccafs} is a client to work with the data CCAFS provides via Amazon Web
#' Services S3 data.
#'
#' The \pkg{ccafs} data has access to is the "Spatial Downscaling" data that
#' you see on the \url{http://ccafs-climate.org/data/} page. The other data
#' sets are not open.
#'
#' Currently, we don't provide a way to search for what data is available.
#' You have to know what you want, or you can list what is available, and then
#' pick files from the list. Though there's not a lot of information in the
#'
#' We'll work on incorporating a way to search - currently there is no
#' solution.
#'
#' @section raster:
#' The main useful output are raster package objects of class
#' \code{RasterLayer} or \code{RasterBrick} - so in general have \code{raster}
#'
#' @section Citations:
#' Cite CCAFS data following their guidelines at
#'
#' Get a citation for this package like \code{citation(package = 'ccafs')}
#'
#' @importFrom rappdirs user_cache_dir
#' @importFrom raster raster stack
#' @name ccafs-package
#' @aliases ccafs
#' @docType package
#' @author Scott Chamberlain \email{[email protected]@gmail.com}
#' @keywords package
#'
#' @section Vignette:
#' \pkg{ccafs} has the following vignettes:
#' \itemize{
#'  \item \code{vignette("ccafs_vignette", package = "ccafs")}
#'  \item \code{vignette("amazon_s3_keys", package = "ccafs")}
#' }
NULL


## Try the ccafs package in your browser

Any scripts or data that you put into this service are public.

ccafs documentation built on May 2, 2019, 6:34 a.m.