Skip to contents

Package Overview

Package documentation

wcswatin-package wcswatin
wcswatin: Climate & Weather SWAT Input.

Data Input & Loading

Functions for loading different data types

input_raster()
Input Raster
input_table()
Input Table
input_vector()
Input Vector
var_names()
Shows the variables present in a netcdf

Raster/NetCDF Processing

Functions for processing gridded climate data

study_area_records()
Study Area Records
layervalues2pixel()
Series of Pixel Values
cube2table()
Convert a Cube format data into a Table format
datacube_aggregation()
Create a daily aggregation from an hourly datacube
daily_aggregation()
Create a daily aggregation from an hourly dataset
tbl_from_references()
Create a table with the values extracted from the reference points

Station Data Processing

Functions for processing weather station data

point_to_daily()
Transforms the raw value from point perspective to a daily perspective
files_to_table()
Turns multiple time series files into a single table
table_to_files()
Export tables to txt or csv files
fill_gap()
A wrapper function for filling gaps in the rainfall time series
ts_to_point()
Trend Surface Interpolation into Targeded Points
ts_to_area()
Trend Surface Interpolation into Raster
save_daily_tbl()
Save the csv files after transformation to daily form

SWAT-Specific Functions

Functions for SWAT model input preparation

var_main_creator()
Main table creator for SWAT Input from Trend SUrface Interpolation
main_input_var()
Main table constructor by Variable
rh_calculator()
Calculate the Relative Humidity from dewpoint and ambient temperature
windspeed_calculator()
Calculate the wind speed from Eastward and Northward Near-Surface Wind

Data Analysis & Utilities

Helper functions for data analysis

count_na()
Count the amount or percentage of NA in a table by column
summary_table()
Table summary of the data
summary_plot()
Plot a summary of the data
unit_converter()
Unit Converter