get_mask | R Documentation |
A gridpoint is masked for a given season (either 'MAM', 'JJAS' or 'OND'), if, on average, less than 10% of the annual total of rainfall occur during the season. This function loads CHIRPS data, and derives this mask as a data table of lon, lat coordinates, only containing the coordinates that shouldn't be masked. You can apply the mask to an existing data table using dt = combine(dt,mask).
get_mask(
season,
clim_years = 1990:2020,
version = "UCSB",
resolution = "low",
us = (resolution == "low")
)
season |
For which season do you want to calculate the mask? Needs to be either 'MAM', 'JJAS' or 'OND'. |
clim_years |
Numeric vector of years. Which years should be used to establish the mask? |
version , resolution , us |
Passed to |
if(interactive()) get_mask('MAM')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.