gen_step_soil: Write STEP-GENDEC-N2O soil input file for each simulation...

View source: R/gen_step_soil.R

gen_step_soilR Documentation

Write STEP-GENDEC-N2O soil input file for each simulation grid cell

Description

gen_step_file generates examples of STEP initialization file in excel format

Usage

gen_step_soil(dataframe, start_yr, end_yr, folder_patch)

Arguments

dataframe

the data frame containing the data required to create the soil file e.g. of variable names: id, coord, albedo, soil_water1, soil_temp1, clay1, sand1, pH1, silt1, soil_water2,soil_temp2, clay2, sand2, pH2, silt2,soil_water3, soil_temp3, clay3, sand3, pH3,silt3, soil_water4, soil_temp4, clay4, sand4, pH4, silt4, soil_temp5

start_yr

the two last digits of the first year of simulation. e.g. for 2012 it is "12"

end_yr

the two last digits of the last year of simulation.. e.g. for 2020 it is "20"

folder_patch

path to where you want to store the file generated (file is generated in a folder with the same name as the site id. make sure the folder is already there before beforehand)

Value

2D STEP-GENDEC-NC input file formats ".sol" for all simulation grid cells

Examples

## Not run: 
gen_step_soil(dataframe,start_yr,end_yr,folder_patch)

## End(Not run)


MadoShi64/rstep documentation built on July 1, 2024, 4:55 p.m.