| IMDRainfallBbox | R Documentation |
Downloads IMD gridded rainfall data and keeps only the data in the specified bounding box.
IMDRainfallBbox(...)
imd_rainfall_bbox(
request_id,
start_year,
end_year,
north,
south,
east,
west,
resolution = 0.25,
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. |
end_year |
End year. |
north |
Latitude of the north boundary. |
south |
Latitude of the south boundary. |
east |
Longitude of the east boundary. |
west |
Longitude of the west boundary. |
resolution |
Spatial resolution: 0.25 or 1.0 degrees (default: 0.25). |
frequency |
Temporal frequency: "daily", "monthly", "yearly" (default: "daily"). |
save_raw |
If TRUE, keep the raw downloaded 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 rainfall (mm), restricted to the requested region and aggregated to frequency.
data <- imd_rainfall_bbox(
request_id = "maharashtra_rain",
start_year = 2023,
end_year = 2024,
north = 22, south = 16,
east = 80, west = 73,
resolution = 0.25,
frequency = "monthly"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.