if (FALSE) {
# Set your ECMWF user ID and key
user_id <- "your_user_id"
user_key <- "your_api_key"
# Define the geographical area (North, West, South, East)
area <- c(90, -180, -90, 180) # Global
# Download data for 2020
download_data(
start_year = 2020,
end_year = 2020,
variables = c("2m_temperature", "total_precipitation"),
area = area,
user_id = user_id,
user_key = user_key
)
}
Run the code above in your browser using DataLab