download_imd_rainfall: Download IMD gridded rainfall data

View source: R/imd_download.R

download_imd_rainfallR Documentation

Download IMD gridded rainfall data

Description

Downloads daily gridded rainfall data from IMD at the specified resolution.

Usage

download_imd_rainfall(
  start_year,
  end_year,
  resolution = 0.25,
  output_dir = tempdir(),
  use_cache = TRUE
)

Arguments

start_year

Start year.

end_year

End year.

resolution

Spatial resolution: 0.25 or 1.0 degrees.

output_dir

Directory for the downloaded files.

use_cache

If TRUE, use the cached data when it is available (default: TRUE).

Value

Character vector of the paths to the downloaded files.

Examples


# Download 0.25 degree rainfall for 2023-2025
files <- download_imd_rainfall(
  start_year = 2023,
  end_year = 2025,
  resolution = 0.25
)


varunayan documentation built on Oct. 30, 2026, 1:07 a.m.