| IMDTemperatureGeojson | R Documentation |
Download and process IMD temperature data for a GeoJSON region
IMDTemperatureGeojson(...)
imd_temperature_geojson(
request_id,
start_year,
end_year,
geojson_file,
var_type = "tmax",
frequency = "daily",
save_raw = FALSE,
output_dir = tempdir(),
use_cache = TRUE
)
... |
Arguments that the aliases send to the primary function. |
request_id |
Unique identifier for the request. |
start_year |
Start year (1951-2025). |
end_year |
End year (1951-2025). |
geojson_file |
Path to the GeoJSON file. |
var_type |
Temperature type: "tmax" or "tmin". |
frequency |
Temporal frequency (default: "daily"). |
save_raw |
If TRUE, keep the raw files (default: FALSE). |
output_dir |
Directory for the output files (default: tempdir()). |
use_cache |
If TRUE, use the cached data when it is available (default: TRUE). |
A data.frame with columns date, latitude, longitude and temperature (degrees Celsius), restricted to the requested region and aggregated to frequency.
region <- system.file("extdata", "region.geojson", package = "varunayan")
data <- imd_temperature_geojson(
request_id = "mh_tmax", start_year = 2023, end_year = 2023,
geojson_file = region, var_type = "tmax", frequency = "monthly"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.