read_imd_temperature: Read IMD binary temperature file

View source: R/imd_processing.R

read_imd_temperatureR Documentation

Read IMD binary temperature file

Description

Reads IMD binary temperature data (maximum or minimum) and converts the data to a data.frame.

Usage

read_imd_temperature(file_path, var_type, year)

Arguments

file_path

Path to the IMD binary file (.grd).

var_type

Variable type: "tmax" or "tmin".

year

Year of the data.

Value

data.frame with columns: date, latitude, longitude, temperature

Examples


f <- download_imd_temperature(2023, 2023, var_type = "tmax")
tmax_data <- read_imd_temperature(f, "tmax", 2023)


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