Giter Site home page Giter Site logo

leo-rain / efdcr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hxfan1227/efdcr

0.0 1.0 0.0 748 KB

Environmental Fluid Dynamics Code (EFDC) Toolbox in R

Home Page: https://hxfan1227.github.io/efdcr/

License: GNU General Public License v3.0

R 100.00%

efdcr's Introduction

efdcr

Lifecycle: experimental Travis build status

The efdcr package is a toolbox in R for pre- and post-processing the model results of the Environmental Fluid Dynamics Code (EFDC). It provides tools to link existing EFDC models (build by EEMS) with your modelling wokflows in R. efdcr enables you to set up the model data before you can directly import to the EEMS and to easily visualize the model results exported by EEMS. The central goal of efdct is to return simulation results in a tidy format to facilitate an easy implementation of EFDC simulations, together with other R packages into clean and efficient R programming workflows. The efdcr pakcage is part of my PhD thesis and was for personal use origninally and the APIs are not stable. Inspired by the SWATplusR package, I decided to continue to develop the package. Any contributions are welcomed and appreciated.

Why efdcr?

  • concise syntax: easy to memory and use
  • work well with the tidyverse packages
  • feature rich compared to the EEMS
  • careful API lifecycle management

Installation

efdcr is still under development and will be constantly updated (more features will be added). You can Install the latest development version of efdcr from GitHub with:

if (!require("devtools")) {
  install.packages("devtools")
}
devtools::install_github("hxfan1227/efdcr")

Installation from GitHub does not include the vignettes by default because they take some time to build.

Example

This is a basic example which shows you how to solve a common problem:

library(efdcr)
# use has_variable() to check wether the .nc file has variables

has_variable('water_quality.nc')
#> The file has 67 variables

# use get_efdc_nc_dt() to extract variables in the .nc file

dye_dt <- get_efdc_nc_dt('G:/water_quality.nc', var_name = 'DYE')

#> Reading bottom elevation (ZBOT)...
#> Finish reading bottom elevation (ZBOT)!
#> Reading water surface elevation (WSEL)...
#> Finish reading water surface elevation (WSEL)
#> Reading variables DYE ...
#> Finish reading variables DYE !

efdcr's People

Contributors

hxfan1227 avatar

Watchers

 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.