run_isorropia: Function to run the ISORROPIA II model and return the model's...

View source: R/run_isorropia.R

run_isorropiaR Documentation

Function to run the ISORROPIA II model and return the model's input and output in a friendly format.

Description

Function to run the ISORROPIA II model and return the model's input and output in a friendly format.

Usage

run_isorropia(
  df,
  directory_isorropia,
  problem_type = "forward",
  verbose = FALSE
)

Arguments

df

Input data frame/tibble that is to be modelled with ISORROPIA II.

directory_isorropia

Directory where ISORROPIA II's programme is located. The programme can either be the complied source (isorropia) or the provided Windows .exe file (isrpia2.exe).

problem_type

Problem type for ISORROPIA II to solve. problem_type can either be "forward" or "reverse".

verbose

Should the function give messages?

Value

Nested tibble with a single row.

Author(s)

Stuart K. Grange

Examples


## Not run: 

# Load demo data
data_demo <- read_isorropia_demo_data()

# Run the ISORROPIA II model with demo data using a complied version of 
# isorropia
run_isorropia(
  data_demo,
  directory_isorropia = "~/isorropia/source",
  verbose = TRUE
)

# Run ISORROPIA II with an executable file on a Windows system
run_isorropia(
  data_demo,
  directory_isorropia = "C:/isorropia/ISO2_1Bin",
  verbose = TRUE
)


## End(Not run)


skgrange/isorropiar documentation built on Oct. 1, 2023, 3:17 p.m.