Obtain and Analyze Daily Rainfall Data from the USA Climate Prediction Center (CPC)

The Climate Prediction Center's (CPC) rainfall data for the world (1979 to present, 50 km resolution) and the USA (1948 to present, 25 km resolution), is one of the few high quality, long term, observation based, daily rainfall products available for free. Although raw data is available at CPC's ftp site, obtaining, processing and visualizing the data is not straightforward. There are thousands of files, and file formats and file extensions have been changing over time. This package provides functionality to download, process and visualize over 40 years of global rainfall data and over 70 years of USA rainfall data from CPC.


Version 0.4 August 2014

  • Binary output files are written only if desired in cpc_read_rawdata. Removed the explicit fixed number of bytes (4) used in the binary output.

Version 0.3 August 2014

  • Added functionality to also extract CPC USA data (1948 to present, 25 km resolution).

  • Fixed a bug with calculating the sequence of dates in cpc_get_rawdata.

  • Fixed broken links in the package vignette.

Version 0.2 June 2014

  • Added functionality to display rainfall data, output is a RasterLayer consistent with SDMTools. This change enables easier display and also extraction of regional data.

  • Data extraction was limited to 2013 in v0.1, changed it to two days short of the present day

  • Added a R markdown vignette to demonstrate the use of the package

  • Changed license to MIT

Version 0.1 Nov 2013

  • Ways to make the data download faster needs to be explored.

  • Future revision will include graphics functions to display the data. For now, visualization is done outside of the package. Examples from the project homepage help the user to visualize the processed CPC data using ggplot.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.1.0 by Gopi Goteti, a year ago

Browse source code at https://github.com/cran/raincpc

Authors: Gopi Goteti <[email protected]>

Documentation:   PDF Manual  

Task views:

MIT + file LICENSE license

Imports raster

Suggests knitr, ggplot2

See at CRAN