get_N_P_from_chemplot: This Function reads all the chemplot.out files from the WEPP...

Description Usage Arguments Value

View source: R/get_N_P_from_chemplot.R

Description

This Function reads all the chemplot.out files from the WEPP simulation output folder, writes hillslope number and date to each hillslope chemplot file, extracts and calculate Nitrogen and Phosphorus variables in kg units and exports to individual csv file

Usage

1
2
3
4
5
6
get_N_P_from_chemplot(
  output_folder,
  hillslope_area_df,
  SimStartDate,
  SimEndDate
)

Arguments

output_folder

A string pointing to the location of the WEPP simulation output folder containing chemplot.out files

hillslope_area_df

A data frame containing hillslope areas (retrived using get_hillslope_area function)

SimStartDate

A string specifying simulation start date as "YYYY-MM-DD" (eg: "1990-01-01")

SimEndDate

A string specifying simulation end date as "YYYY-MM-DD" (eg: "2010-12-31")

Value

A csv file containing all the processed values for each hillslope written in the output_folder


devalc/WEPPRecipes documentation built on Jan. 3, 2022, 2:24 a.m.