Coder Social home page Coder Social logo

swatdata's Introduction

SWATdata

SWATdata provides SWAT demo projects to test the functionality of the SWATplusR package. The aim of SWATdata is to provide light weight model setups with short execution times (a few seconds) for SWAT2012 and SWAT+. All offered SWAT projects were set up for the head watershed (gauge J) of the Little River Experimental Watershed (LREW, Bosch et al., 2007). For SWAT2012 two project setups are available one each for Windows and Linux. These should however comply with more recent revision numbers in terms of functionality and simulation outputs. For SWAT+, however, significant changes are still possible between model revisions. Therefore, the list of provided revisions will be updated constantly with the release of new model revisions. Additionally, spatial data (subbasins, HRUs, river network) are available as shape files for all model setups. The following table gives an overview of the available datasets:

Version Revision Windows Linux Spatial
SWAT2012 Rev.622 X X
SWAT2012 Rev.637 X X
SWAT+ Rev.57 X X
SWAT+ Rev.59.3 X X X

Installation

SWATdata can be installed from this GitHub repository running the following lines of code:

# If you do not have the package devtools installed
install.packages("devtools")

devtools::install_github("chrisschuerz/SWATdata")

To load the datasets provided by SWATdata you require the SWATplusR package. SWATplusR can be installed with the following command:

devtools::install_github("chrisschuerz/SWATplusR")

Basic use

The Get started section of the SWATplusR github page gives you a good overview, how to load and use SWAT demo data sets (In the current version SWATplusR 0.2.4 SWATdata is not integrated!). Some basic use examples are provided here:

library(SWATplusR)

# Load a SWAT+ Rev.57 model setup on Windows:
demo_path <- "Define:/your/path"

path_plus <- load_demo(dataset = "project",
                       path = demo_path
                       version = "plus",
                       revision = 57)
                       
# Load the discharge observation data for the gauge J of the LREW setup:
q_obs <- load_demo(dataset = "observation")

References

Bosch, D. D., Sheridan, J. M., Lowrance, R. R., Hubbard, R. K., Strickland, T. C., Feyereisen, G. W. and Sullivan, D. G.: Little river experimental watershed database, Water Resources Research, 43(9), https://doi.org/10.1029/2006wr005844, 2007

swatdata's People

Contributors

chrisschuerz avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.