| GetERA5DailyClimate | R Documentation |
This function downloads ERA5 climate variables (temperature, humidity, wet bulb, wind, solar radiation) for a region.
GetERA5DailyClimate(
request_id,
start_date,
end_date,
variables = c("temperature", "humidity"),
json_file = NULL,
north = NULL,
south = NULL,
east = NULL,
west = NULL,
resolution = 0.25,
use_cache = TRUE,
verbose = FALSE
)
get_era5_daily_climate(
request_id,
start_date,
end_date,
variables = c("temperature", "humidity"),
json_file = NULL,
north = NULL,
south = NULL,
east = NULL,
west = NULL,
resolution = 0.25,
use_cache = TRUE,
verbose = FALSE
)
request_id |
Unique identifier for the data request |
start_date |
Start date in "YYYY-MM-DD" format |
end_date |
End date in "YYYY-MM-DD" format |
variables |
Character vector of variables to download. Options: "temperature", "humidity", "wet_bulb", "wind", "solar" |
json_file |
Path to the GeoJSON file that defines the region |
north, south, east, west |
Bounding box coordinates (alternative to json_file) |
resolution |
Spatial resolution in degrees (default: 0.25) |
use_cache |
If TRUE, the function uses cached data (default: TRUE) |
verbose |
If TRUE, the function prints progress messages (default: FALSE) |
data.frame with date, latitude, longitude, and requested variables
region <- system.file("extdata", "region.geojson", package = "varunayan")
# Get temperature and humidity
climate <- GetERA5DailyClimate(
request_id = "india_climate",
start_date = "2023-05-01",
end_date = "2023-05-31",
variables = c("temperature", "humidity"),
json_file = region
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.