View source: R/rain_extract_chirps.R
Extract daily rainfall from CHIRPS data
1 2 3 4 5 6 7 8 9 | rain_extract_chirps(
rain_array,
rain_dates,
extent,
resolution,
cumrain = 0,
coords_dates,
coords
)
|
rain_array |
an array with dimensions 1 and 2 being the y and x values (respectively) of the rain raster/tiff layers, and the 3rd dimension is the multiple dates for same spatial extent. Build using build_rain_array |
rain_dates |
a vector of class Date containing the dates corresponding to each "layer" in the 3rd dimension of the array |
extent |
an extent object. contains xmin, xmax, ymin, ymax of the raster/tiff layers used to make the array |
resolution |
a vector with 2 values indicating the x and y resolution of each raster cell |
cumrain |
(defualt = 0) the number of days used to calculate the cumulative rainfall at a location |
coords_dates |
a vector of class Date of the dates for each of the coordinates in coords |
coords |
a 2 column matrix/dataframe with the x and y coordinates in same projection as extent |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.