cpc_get_rawdata: Download raw rainfall data from CPC for time period of...

Description Usage Arguments Details Examples

Description

This function obtains data from the CPC ftp site for any time period from 1979/1/1 to the present day.

Usage

1
2
  cpc_get_rawdata(begYr, begMo, begDay, endYr, endMo,
    endDay)

Arguments

begYr

beginning year of the time period of interest, 1979 - 2012

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 -2012

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

Details

It is assumed that the ending year, month and day follow the beginning year, month and day. Although CPC data is revised each day, a buffer of two days is created - i.e., this function will only let you download data till the day before yesterday!

Output is either a ".gz" file (1979 - 2008) or a ".bin" file (2009 - 2013).

Examples

1
2
# CPC data for two days, Jul 11-12 2005
cpc_get_rawdata(2005, 7, 11, 2005, 7, 12)

epijim/raincpc documentation built on May 16, 2019, 8:18 a.m.