Download rainfall data from CPC for the time period of interest

Description

Download rainfall data from CPC for the time period of interest

Usage

1
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)

Author(s)

Gopi Goteti

Examples

1
2
3
4
5
6
7
## Not run: 
# 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)

## End(Not run)