- Updated
get_atmo_dep()
to support new server links. - Added additional comments to handle cases where the URL is unreachable.
- Key libraries (
diffr
,elevatr
,euptf2
,ggpmisc
,gstat
,leafpop
,openxlsx
,RNetCDF
,sp
, andstars
) moved fromImports
toSuggests
, ensuring they are installed and loaded only when specific functionalities are invoked.
- Improved
load_swat_weather()
function. Now it can read weather data with different types of naming, spacing and provides better error messages.
- Bug fix in
prepare_wgn()
, corrected issue where-99
values were included in calculations. - Value checks in
load_swat_weather()
, added validation for input values. - Bug fixes in
get_atmo_dep()
. Fixed variable naming issues and added a coordinate validation check.
- Small bug fixes and updated
add_atmo_dep()
. Now this function writes directly into SWAT+ model text files. SQL database option removed.
- Added helper functions to examine setup:
setup_info()
and model's output water balance components:wbalance_table()
.
- Warning for
load_template()
, if there are duplicates in the template file. - Sorting in weather files using
prepare_climate()
. Needed for SWAT+ model to find weather files correctly. - Added function
find_dif()
to compare files of two setups and find differences.
prepare_ps()
function was updated to include the option to write constant value point source data for SWAT+ model. Bug was solved connected with 'object.cnt' file.load_swat_weather()
function was updated to include the option to read weather data with different type of naming.
sol_to_usersoil()
function was added to read and convertsoils.sol
file tousersoil
R object.get_atmo_dep()
function was updated according to documentation of 'atmo.cli' input file.- Documentation of functions corrected.
- Reviewed and updated function documentation, removed deprecated functions, made internal functions invisible, updated examples, provided additional information in links, added references where needed, and connected functions with the 'See Also' section.
- Minor bug fixes.
- Bug fixes to
prepare_ps()
andget_soil_parameters()
.
- Bug fixes to
prepare_wgn()
,prepare_climate()
,load_netcdf_weather()
and other functions.
load_swat_weather2()
function was added to provide quicker option for weather file loading. More 20 times faster comparing toload_swat_weather()
function.
load_template()
function extended to load point source data template.prepare_ps()
function added to write point source SWAT+ model input files.
transform_to_list()
function made internal and integrated intointerpolate()
function.load_climate_lst()
renamed toload_netcdf_weather()
.- A small correction in
extract_rotation()
. - Updated Land use, Climate projections and Weather data pages.
- A new function
load_swat_weather()
added. - Climate projections article page updated.
- A new
prepare_climate()
function was added.
- New functions
get_usersoil_table()
,load_climate_lst()
andplot_wgn_comparison()
were added.
- Some bugs fixed in
get_soil_parameters()
andget_atmo_dep()
.
- Fixed SOL_BD calculation in
get_soil_parameters()
. Added functionusersoil_to_sol()
.
- Updated functions
interpolate()
,prepare_wgn()
,add_weather()
andload_template()
to deal with different data. Added new functionfill_with_closest()
. Bug fixes.
- Different bugs in various functions corrected. Plotting functions updated. Added function
add_missing_pcp_zero()
.
- Land use data functions added
get_lu_points()
andextract_rotation()
as well as Land use article page to explain how to use them.
- Atmospheric deposition data functions added
get_atmo_dep()
,write_atmo_cli()
andadd_atmo_dep()
as well as Atmospheric deposition article page to explain how to use them.
add_weather()
,clean_wq()
,clean_outliers()
andget_hsg()
functions were added.
- This is the first release of package SWATprepR.