View source: R/imd_processing.R
| process_imd_files | R Documentation |
Reads and combines multiple IMD data files.
process_imd_files(
file_paths,
var_type,
resolution = NULL,
years = NULL,
bbox = NULL
)
file_paths |
Character vector of file paths. |
var_type |
Variable type: "rain", "tmax", or "tmin". |
resolution |
Resolution (for rainfall): 0.25 or 1.0. |
years |
Integer vector. The year of each file. |
bbox |
Optional named list or vector (north, south, east, west). The function sends it to the rainfall reader, which crops the grid at read time. If NULL, the function reads the full grid (default). |
A data.frame with columns date, latitude, longitude and the value column (rainfall or temperature), combining all files.
files <- download_imd_temperature(2023, 2024, var_type = "tmax")
data <- process_imd_files(files, "tmax", years = c(2023, 2024))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.