Update sqlite database with atmospheric deposition data
Arguments
- df
dafaframe with "DATE", "NH4_RF", "NO3_RF" , "NH4_DRY" and "NO3_DRY" columns obtained from
get_atmo_dep
) function.- db_path
character to sqlite database (example "./output/project.sqlite")
- t_ext
string, 'year' for yearly averages, 'month' - monthly averages and 'annual' for average of all period. Optional (default - "year").
Value
write data in 'atmodep.cli' file and updated sqlite database with codes and connection to atmospheric deposition data
Examples
if (FALSE) {
basin_path <- system.file("extdata", "GIS/basin.shp", package = "svatools")
df <- get_atmo_dep(basin_path)
db_path <- "./output/test/project.sqlite"
add_atmo_dep(df, db_path)
}