imd_temperature_bbox: Download and process IMD temperature data for a bounding box

View source: R/imd_core.R

IMDTemperatureBboxR Documentation

Download and process IMD temperature data for a bounding box

Description

Download and process IMD temperature data for a bounding box

Usage

IMDTemperatureBbox(...)

imd_temperature_bbox(
  request_id,
  start_year,
  end_year,
  north,
  south,
  east,
  west,
  var_type = "tmax",
  frequency = "daily",
  save_raw = FALSE,
  output_dir = tempdir(),
  use_cache = TRUE
)

Arguments

...

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).

north

Latitude of the north boundary.

south

Latitude of the south boundary.

east

Longitude of the east boundary.

west

Longitude of the west boundary.

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).

Value

A data.frame with columns date, latitude, longitude and temperature (degrees Celsius), restricted to the requested region and aggregated to frequency.

Examples


data <- imd_temperature_bbox(
  request_id = "delhi_tmax",
  start_year = 2023,
  end_year = 2024,
  north = 29, south = 28,
  east = 78, west = 76,
  var_type = "tmax"
)


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