| HadEX3Geojson | R Documentation |
Downloads HadEX3 data on ETCCDI climate extremes and filters the data to a geographic region. A GeoJSON polygon defines the region.
HadEX3Geojson(...)
hadex3_geojson(
index,
start_year,
end_year,
geojson_file,
frequency = "annual",
baseline = "61-90",
output_dir = tempdir(),
use_cache = TRUE
)
... |
Arguments that the aliases send to the primary function. |
index |
ETCCDI index name (e.g. "TXx", "Rx1day"). See |
start_year |
Start year (1901-2018). |
end_year |
End year (1901-2018). |
geojson_file |
Path to a GeoJSON file that defines the region. |
frequency |
Temporal frequency: "annual" or "monthly" (default: "annual"). |
baseline |
Reference period for the indices that use percentiles: "61-90" (default) or "81-10". This argument applies only to the annual frequency. |
output_dir |
Directory for temporary files (default: |
use_cache |
If TRUE, use the data in the cache (default: TRUE). |
A data.frame with the columns: year (and month for monthly data), latitude, longitude, value, index.
region <- system.file("extdata", "region.geojson", package = "varunayan")
data <- hadex3_geojson(
index = "TXx",
start_year = 1981, end_year = 2010,
geojson_file = region
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.