README.md

efdcr

efdcr is a toolbox in R for post-processing the model results of the Environmental Fluid Dynamics Code (EFDC).

Why efdcr?

Installation

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 !



hxfan1227/efdcr documentation built on Nov. 15, 2019, 11:31 a.m.