hadex3_geojson: Download HadEX3 data on climate extremes for a GeoJSON region

View source: R/hadex3.R

HadEX3GeojsonR Documentation

Download HadEX3 data on climate extremes for a GeoJSON region

Description

Downloads HadEX3 data on ETCCDI climate extremes and filters the data to a geographic region. A GeoJSON polygon defines the region.

Usage

HadEX3Geojson(...)

hadex3_geojson(
  index,
  start_year,
  end_year,
  geojson_file,
  frequency = "annual",
  baseline = "61-90",
  output_dir = tempdir(),
  use_cache = TRUE
)

Arguments

...

Arguments that the aliases send to the primary function.

index

ETCCDI index name (e.g. "TXx", "Rx1day"). See list_hadex3_indices().

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: tempdir()).

use_cache

If TRUE, use the data in the cache (default: TRUE).

Value

A data.frame with the columns: year (and month for monthly data), latitude, longitude, value, index.

Examples


region <- system.file("extdata", "region.geojson", package = "varunayan")
data <- hadex3_geojson(
  index = "TXx",
  start_year = 1981, end_year = 2010,
  geojson_file = region
)


varunayan documentation built on Oct. 30, 2026, 1:07 a.m.