add_longwave: Add longwave to ensemble forecast dataframe using Idso and...

View source: R/add_longwave.R

add_longwaveR Documentation

Add longwave to ensemble forecast dataframe using Idso and Jackson (1969). Requires cloud cover and temperature variables in input data frame.

Description

Add longwave to ensemble forecast dataframe using Idso and Jackson (1969). Requires cloud cover and temperature variables in input data frame.

Usage

add_longwave(df)

Arguments

df

data frame output from one of the functions that gets a data frame from the API (e.g., get_ensemble_forecast). The data frame must has cloud_cover and temperature_2m as variables

Value

data frame with the same columns as the input df but with longwave_radiation added as a variable

Examples


file <- system.file("extdata", "test-data.csv", package="ropenmeteo")
df <- readr::read_csv(file, show_col_types = FALSE)
df  |>
add_longwave()


ropenmeteo documentation built on Sept. 11, 2024, 7:52 p.m.