get_chirps_apsim_met {apsimx} | R Documentation |
Get CHIRPS data for an APSIM met file
Description
Uses get_chirps
from the chirps package to download data to create an APSIM met file.
Usage
get_chirps_apsim_met(
lonlat,
dates,
wrt.dir = ".",
filename = NULL,
fillin.radn = TRUE,
silent = FALSE
)
Arguments
lonlat |
Longitude and latitude vector |
dates |
date ranges |
wrt.dir |
write directory |
filename |
file name for writing out to disk |
fillin.radn |
whether to fill in radiation data using the nasapower pacakge. Default is TRUE. |
silent |
defaut is FALSE. Changing it will not do anything at the moment. A future feature. |
Details
This function requires the chirps package, version 0.1.4.
If the filename is not provided it will not write the file to disk, but it will return an object of class ‘met’. This is useful in case manipulation is required before writing to disk.
Value
returns an object of class ‘met’ and writes a file to disk when filename is supplied.
Examples
## Not run:
require(chirps)
## This will not write a file to disk
chrp <- get_chirps_apsim_met(lonlat = c(-93,42), dates = c("2012-01-01","2012-12-31"))
## End(Not run)
[Package apsimx version 2.7.7 Index]