Learn R Programming

raincpc (version 0.3)

cpc_get_rawdata: Download rainfall data from CPC for the time period of interest

Description

Download rainfall data from CPC for the time period of interest

Usage

cpc_get_rawdata(begYr, begMo, begDay, endYr, endMo, endDay, usa = FALSE)

Arguments

begYr
beginning year of the time period of interest, 1979/1948 - present
begMo
beginning month of the time period of interest, 1 - 12
begDay
beginning day of the time period of interest, 1 - 28/29/30/31
endYr
ending year of the time period of interest, 1979/1948 - present
endMo
ending month of the time period of interest, 1 - 12
endDay
ending day of the time period of interest, 1 - 28/29/30/31
usa
logical flag to indicate whether global or usa data is desired

Value

  • downloads either a ".gz" file (2008 or before) or a ".bin" file (2009 - present)

Examples

Run this code
# CPC global data for July 3-5 2014
cpc_get_rawdata(2014, 7, 3, 2014, 7, 5)
# CPC USA data for July 3-5 2014
cpc_get_rawdata(2014, 7, 3, 2014, 7, 5, usa = TRUE)

Run the code above in your browser using DataLab