cpcYearToNCDF: Build a NCDF File from CPC Data

Description Usage Arguments Value

View source: R/cpcYearToNCDF.R

Description

This function builds a NCDF (.nc) file from CPC data for a single year. To do this it downloads raw data from the CPC ftp server, reads it to an array, and writes that array to a NCDF file. It will always build the file for all data for that particular year.

Usage

1
2
cpcYearToNCDF(year, download_folder = getwd(), empty_raw = TRUE,
  overwrite = F)

Arguments

year

the year for which to download. Must be an integer.

download_folder

the folder in which to store the .nc file. Defaults to getwd().

empty_raw

if TRUE, will delete the raw data. Defaults to TRUE

overwrite

if TRUE, will proceed even if a '.nc' file for the specified year exists. If FALSE, will not run.

Value

a data.table with columns date and success


jdossgollin/cpcRain documentation built on May 18, 2019, 11:33 p.m.