dycdtools

R 패키지 메타데이터와 수집 신호를 모아 봅니다.

Packages / CRAN / dycdtools

dycdtools

v0.4.4
Repository CRANLicense MIT + file LICENSELifecycle activeNeeds compilation no
DOI
10.32614/CRAN.package.dycdtools

Core Signals

첫 화면에서 판단해야 할 수집 신호를 먼저 배치합니다.

0
표시할 핵심 신호가 없습니다.

Supported Backends

DESCRIPTION에서 감지한 backend 관련 package입니다.

0
backend package 신호가 없습니다.

Quick Facts

기본 메타데이터를 작은 카드와 토큰으로 압축합니다.

profile
Repository
CRAN
Version
0.4.4
License
MIT + file LICENSE
Lifecycle
active
Needs compilation
no
Last observed
2026-05-30
CRAN
cran.r-project.org/package=dycdtools

수집 소스별 패키지 정보

1개 소스
CRAN
0.4.4
2026-05-30
License
MIT + file LICENSE
Depends
R (>= 2.10)
Imports
dplyr, ncdf4, tidyr, ggplot2, RColorBrewer, lubridate, R.utils, parallel
Suggests
testthat (>= 3.0.0)
Needs compilation
no
Lifecycle
active
Last observed
2026-05-30 10:45:11

이 패키지가 의존하는 패키지

5개 표시전체 9개
PackageTypeSpec
dplyr
CRAN · 0.4.4 · 2026-05-30
Importsdplyr
ggplot2
CRAN · 0.4.4 · 2026-05-30
Importsggplot2
lubridate
CRAN · 0.4.4 · 2026-05-30
Importslubridate
ncdf4
CRAN · 0.4.4 · 2026-05-30
Importsncdf4
parallel
CRAN · 0.4.4 · 2026-05-30
Importsparallel
1 / 2

이 패키지를 쓰는 패키지

0개 표시전체 0개
PackageTypeSpec
표시할 dependency edge가 없습니다.
1 / 1

패키지 페이지

All links
29
Repository
CRAN
Version
0.4.4
Collected
2026-05-23 16:14:31
Package page
https://cran.r-project.org/web/packages/dycdtools/index.html
DOI
10.32614/CRAN.package.dycdtools
CRAN checks
https://cran.r-project.org/web/checks/check_results_dycdtools.html
README
https://cran.r-project.org/web/packages/dycdtools/readme/README.html
NEWS
https://cran.r-project.org/web/packages/dycdtools/news/news.html
Reference HTML
https://cran.r-project.org/web/packages/dycdtools/refman/dycdtools.html
Reference PDF
https://cran.r-project.org/web/packages/dycdtools/dycdtools.pdf
Source package
https://cran.r-project.org/src/contrib/dycdtools_0.4.4.tar.gz
Archive
https://CRAN.R-project.org/src/contrib/Archive/dycdtools
Page fields
Author
Songyan Yu [aut, cre], Christopher McBride [ctb], Marieke Frassl [ctb]
CRAN Checks
dycdtools results
DOI
10.32614/CRAN.package.dycdtools
License
MIT + file LICENSE
Maintainer
Songyan Yu <yusongyan1989 at gmail.com>
Materials
README , NEWS
NeedsCompilation
no
Old Sources
dycdtools archive
Package Source
dycdtools_0.4.4.tar.gz
Published
2024-09-11
Reference Manual
dycdtools.html , dycdtools.pdf
URL
https://github.com/SongyanYu/dycdtools
Version
0.4.4
Windows Binaries
r-devel: dycdtools_0.4.4.zip , r-release: dycdtools_0.4.4.zip , r-oldrel: dycdtools_0.4.4.zip
MacOS Binaries
r-release (arm64): dycdtools_0.4.4.tgz , r-oldrel (arm64): dycdtools_0.4.4.tgz , r-release (x86_64): dycdtools_0.4.4.tgz , r-oldrel (x86_64): dycdtools_0.4.4.tgz
Version
0.4.4
Published
2024-09-11
DOI
10.32614/CRAN.package.dycdtools
Author
Songyan Yu [aut, cre], Christopher McBride [ctb], Marieke Frassl [ctb]
Maintainer
Songyan Yu <yusongyan1989 at gmail.com>
License
MIT + file LICENSE
URL
https://github.com/SongyanYu/dycdtools
NeedsCompilation
no
Materials
README , NEWS
CRAN Checks
dycdtools results
Reference Manual
dycdtools.html , dycdtools.pdf
Package Source
dycdtools_0.4.4.tar.gz
Windows Binaries
r-devel: dycdtools_0.4.4.zip , r-release: dycdtools_0.4.4.zip , r-oldrel: dycdtools_0.4.4.zip
MacOS Binaries
r-release (arm64): dycdtools_0.4.4.tgz , r-oldrel (arm64): dycdtools_0.4.4.tgz , r-release (x86_64): dycdtools_0.4.4.tgz , r-oldrel (x86_64): dycdtools_0.4.4.tgz
Old Sources
dycdtools archive
Page sections 3
Documentation
Heading
Documentation
Links
[{"label":"dycdtools.html","section":"","type":"","url":"https://cran.r-project.org/web/packages/dycdtools/refman/dycdtools.html"},{"label":"dycdtools.pdf","section":"","type":"","url":"https://cran.r-project.org/web/packages/dycdtools/dycdtools.pdf"}]
Text
Reference manual: dycdtools.html , dycdtools.pdf
Downloads
Heading
Downloads
Links
[{"label":"dycdtools_0.4.4.tar.gz","section":"","type":"","url":"https://cran.r-project.org/src/contrib/dycdtools_0.4.4.tar.gz"},{"label":"dycdtools_0.4.4.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.7/dycdtools_0.4.4.zip"},{"label":"dycdtools_0.4.4.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.6/dycdtools_0.4.4.zip"},{"label":"dycdtools_0.4.4.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.5/dycdtools_0.4.4.zip"},{"label":"dycdtools_0.4.4.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/sonoma-arm64/contrib/4.6/dycdtools_0.4.4.tgz"},{"label":"dycdtools_0.4.4.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-arm64/contrib/4.5/dycdtools_0.4.4.tgz"},{"label":"dycdtools_0.4.4.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-x86_64/contrib/4.6/dycdtools_0.4.4.tgz"},{"label":"dycdtools_0.4.4.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-x86_64/contrib/4.5/dycdtools_0.4.4.tgz"},{"label":"dycdtools archive","section":"","type":"","url":"https://CRAN.R-project.org/src/contrib/Archive/dycdtools"}]
Text
Package source: dycdtools_0.4.4.tar.gz Windows binaries: r-devel: dycdtools_0.4.4.zip , r-release: dycdtools_0.4.4.zip , r-oldrel: dycdtools_0.4.4.zip macOS binaries: r-release (arm64): dycdtools_0.4.4.tgz , r-oldrel (arm64): dycdtools_0.4.4.tgz , r-release (x86_64): dycdtools_0.4.4.tgz , r-oldrel (x86_64): dycdtools_0.4.4.tgz Old sources: dycdtools archive
Linking
Heading
Linking
Links
[{"label":"https://CRAN.R-project.org/package=dycdtools","section":"","type":"","url":"https://CRAN.R-project.org/package=dycdtools"}]
Text
Please use the canonical form https://CRAN.R-project.org/package=dycdtools to link to this page.
Materials 2
Documentation 2
Downloads 9
All page links 29

패키지 문서 원문

4 artifacts
field
NEWS
CRAN · 0.4.4 · Materials · text/html · 2,151 · 2026-05-07
Title
NEWS
Label
NEWS
Text content
Text content
NEWS code{white-space: pre-wrap;} span.smallcaps{font-variant: small-caps;} span.underline{text-decoration: underline;} div.column{display: inline-block; vertical-align: top; width: 50%;} div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} ul.task-list{list-style: none;} dycdtools 0.4.4 removed hydroGOF package dependency dycdtools 0.4.3 check for OS.type in calib_assist function neutral colour y=x in plot_scatter function update readme to highlight example data explain how to save produced figures dycdtools 0.4.2 add date format check for plotting functions add more unit tests dycdtools 0.4.1 update calib.assist function format some functions script dycdtools 0.4.0 update some functions’ name plotting functions now return an object delete some unnecessary defaults update objective function and this function is now exported for use data frame allowed to provide parameter info add more unit tests dycdtools 0.3.1 update usage of “ggsave” and some function description. dycdtools 0.3.0 update contour plot function to allow customisation of the plotted period. dycdtools 0.2.0 parallel processing algorithm added to the calibration assistant function. dycdtools 0.1.0 First release
field
README
CRAN · 0.4.4 · Materials · text/html · 9,060 · 2026-05-07
Title
README
Label
README
Text content
Text content
README code{white-space: pre-wrap;} span.smallcaps{font-variant: small-caps;} span.underline{text-decoration: underline;} div.column{display: inline-block; vertical-align: top; width: 50%;} div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} ul.task-list{list-style: none;} dycdtools Overview An R package for assisting calibration and visualising outputs of DYRESM-CAEDYM. In the dycdtools package, there are two main function categories: calibration assistant and post-processing. The calibration assistant function ( calib_assist ) carries out simulations with a large number of possible combinations of parameter values that users regard as potentially suitable for their model calibration, and calculates the values of nominated objective functions (i.e., statistical measures of goodness of fit) for each combination. Based on the calculated objective function values, users can determine the optimal set(s) of parameter values or narrow the ranges of possible parameter values. NOTE: the calib_assist function can only be run on Windows as it needs to call ‘shell’ to run DYRESM-CARDYM software executables. Four post-processing functions provide multiple ways to visualise DYRESM-CAEDYM outputs as follows: Function plot_cont displays a heat map of variable values with depth within the water column and over time. This visualisation is particularly suitable for displaying temporal and depth dynamics of a variable at one lake site. Function plot_prof shows vertical profiles of the simulation and corresponding observations, for all dates where observations are available. Function plot_ts plots simulated values and observations for a specified variable and depth over time. It can be used to compare temporal changes of a variable for simulations and observations at specific depths. Function plot_scatter shows observations against simulated values for corresponding time and depth, with a colour scale representing measured depths. It can be used to demonstrate visually the goodness of fit for a variable across the water column. For a detailed tutorial of how to use these functions, readers are referred to a peer-reviewed paper by the developers. IMPORTANT: It is highly recommended that first-time users of the package first run the package functions (particularly’calib_assist’) on the provided example data (see below the Application Section) to familiarise themselves. Installation To install the latest development version run the following code: # install devtools install.packages("devtools") # install dycdTools package devtools::install_github("SongyanYu/dycdtools") # Remove the package zip after installation unlink("dycdtools.zip") Application Below is a minimal case study example. The example data supporting the case study can be accessed via: https://doi.org/10.5281/zenodo.7431128 The calibration assistant function - calib_assist Assume that you want to calibrate three model parameters: wind stirring efficiency, vertical mixing coefficient, and light extinction coefficient and each parameter have 4 possible values. The calib_assis function can be used to call DYRESM-CAEDYM to run for all possible combinations (n = 64) of the three parameters’ values. For each model run, the objective function Nash-Sutcliffe Efficiency (NSE) coefficient is calculated for temperature simulations. library(dycdtools) calib_assist(cal.para = "calibration_data/Calibration_parameters.csv", combination = "all", model.var = c("TEMP"), obs.data = "calibration_data/Obs_data_template.csv", objective.function = c("NSE"), start.date = "2002-01-23", end.date = "2016-12-31", dycd.wd = "calibration_data/DYRESM_CAEDYM_Lake-Okareka/", dycd.output = "calibration_data/DYRESM_CAEDYM_Lake-Okareka/DYsim.nc", file.name = "calibration_data/Calibration_outputs.csv", write.out = TRUE, parallel = TRUE, verbose = TRUE) Visualise calibration results Use a heatmap to visualise the calculated NSE values for all 64 model runs. # Read in model calibration results calibration <- read.csv("calibration_data/Calibration_outputs.csv") # Heat map library(ggplot2) ggplot(calibration, aes(x = wse,y = vmc,fill = NSE.TEMP)) + geom_tile() + scale_fill_distiller(palette = "PuBu", direction = 1) + facet_wrap(~lec, scales = "free") + xlab("Wind stirring efficiency") + ylab("Vertical mixing coefficient") + labs(title = "Light extinction coefficient", fill = "NSE") + theme_bw() + theme(plot.title = element_text(size = 11, hjust = 0.5)) Post-processing functions Based on the 64 model runs, you can select a particular parameter value combination that generate the best performance (measured by NSE) and rerun DYRESM-CAEDYM for that particular parameter values. After that, you can use the post-processing functions in the dycdtools package to visualise the outputs of the calibrated model. # Extract temperature simulations var.values <- ext_output(dycd.output = "DYCD_Okareka/DYsim.nc", var.extract = c("TEMP")) # Interpolation of temperature across water column at an interval of 0.5 m temp.interpolated < -interpol(layerHeights = var.values$dyresmLAYER_HTS_Var, var = var.values$dyresmTEMPTURE_Var, min.dept = 0, max.dept = 33, by.value = 0.5) # Read in observed water quality data library(lubridate) obs.okareka <- read.csv("plotting_data/Obs_data_template.csv") obs.okareka$Date <- as.Date(obs.okareka$Date,format="%d/%m/%Y") # subset observed data to remain temperature observations obs.temp <- obs.okareka[, c('Date','Depth','TEMP')] # Contour plot plot_cont_com(sim = temp.interpolated, obs = obs.temp, plot.start = "2002-01-23", plot.end = "2006-12-31", sim.start = "2002-01-23", sim.end = "2016-12-31" legend.title = "T\n(\u00B0C)", min.depth = 0, max.depth = 33, by.value = 0.5, nlevels = 20) # Profile plot plot_prof(sim = temp.interpolated, obs = obs.temp, sim.start = "2002-01-23", sim.end = "2016-12-31", plot.start = "2002-01-23", plot.end = "2002-12-31", min.depth = 0, max.depth = 33, by.value = 0.5, xlabel = "Temperature \u00B0C") # Time series plot plot_ts(sim = temp.interpolated, obs = obs.temp, target.depth = c(1, 14, 30), sim.start = "2002-01-23", sim.end = "2016-12-31", plot.start = "2002-01-23", plot.end = "2012-12-31", min.depth = 0, max.depth = 33, by.value = 0.5, ylabel = "Temperature \u00B0C") # Scatter plot plot_scatter(sim=temp.interpolated, obs=obs.temp, sim.start="2002-01-23", sim.end="2016-12-31", plot.start = "2002-01-23", plot.end="2012-12-31", min.depth = 0, max.depth = 33, by.value = 0.5) Developer contact Songyan (sunny) Yu: sunny.yu@griffith.edu.au
reference_manual_html
Reference manual HTML
CRAN · 0.4.4 · Documentation · text/html · 35,710 · 2026-05-07
Title
Help for package dycdtools
Label
Reference manual HTML
Text content
Text content
Help for package dycdtools const macros = { "\\R": "\\textsf{R}", "\\mbox": "\\text", "\\code": "\\texttt"}; function processMathHTML() { var l = document.getElementsByClassName('reqn'); for (let e of l) { katex.render(e.textContent, e, { throwOnError: false, macros }); } return; } Package {dycdtools} Contents calib_assist change_input_file delete_space ext_output hgt_to_dpt interpol objective_fun obs_temp output_name plot_cont plot_cont_comp plot_prof plot_scatter plot_ts run_iteration Title: Calibration Assistant and Post-Processing Tool for Aquatic Ecosystem Model DYRESM-CAEDYM Version: 0.4.4 Description: Dynamic Reservoir Simulation Model (DYRESM) and Computational Aquatic Ecosystem Dynamics Model (CAEDYM) model development, including assisting with calibrating selected model parameters and visualising model output through time series plot, profile plot, contour plot, and scatter plot. For more details, see Yu et al. (2023) https://journal.r-project.org/articles/RJ-2023-008/ . URL: https://github.com/SongyanYu/dycdtools License: MIT + file LICENSE Encoding: UTF-8 LazyData: true Imports: dplyr, ncdf4, tidyr, ggplot2, RColorBrewer, lubridate, R.utils, parallel RoxygenNote: 7.2.2 Depends: R (≥ 2.10) Suggests: testthat (≥ 3.0.0) Config/testthat/edition: 3 NeedsCompilation: no Packaged: 2024-09-08 22:11:46 UTC; s2974665 Author: Songyan Yu [aut, cre], Christopher McBride [ctb], Marieke Frassl [ctb] Maintainer: Songyan Yu <yusongyan1989@gmail.com> Repository: CRAN Date/Publication: 2024-09-11 14:50:02 UTC Assist calibration of DYRESM-CAEDYM model. Description This function carries out simulations with a large number of possible combinations of parameter values that users regard as potentially suitable for their model calibration, and calculates the values of nominated objective functions (i.e., statistical measures of goodness of fit) for each combination. Based on the calculated objective function values, users can determine the optimal set(s) of parameter values or narrow the ranges of possible parameter values. Usage calib_assist( cal.para, combination = "random", n, model.var, phyto.group = NA, obs.data, objective.function = c("NSE", "RMSE"), start.date, end.date, dycd.wd, dycd.output, file.name, verbose = TRUE, parallel = FALSE, n.cores = NULL, write.out = TRUE ) Arguments cal.para a data frame or a character string naming an external .csv file where below column names are mandatory: "Parameter" describing parameter names (abbreviation is allowed), "Min", "Max", and "Increment" describing the minimum and maximum parameter values and expected increment in the value range, "Input_file" and "Line_NO" listing in which configuration file at which line the parameter can be found. combination a vector of string character of how to pick up combinations of parameter values. "random" - the function randomly picks up a given number of combinations; "all" - the function tries all possible combinations of parameter values. n the number of random selections. Must be provided if combination = "random". model.var a vector of string character of modelled variables for calibration. the character should be from the 'var.name' column of 'data(output_name)'. Note that if model calibration needs to regard chlorophyll of multiple phytoplankton groups as a whole, model.var should use "CHLA" and individual phytoplankton group should be specified through the "phyto.group" argument. If phytoplankton groups are separately calibrated, simply list their character in this argument (model.var). phyto.group a vector of simulated phytoplankton groups, including CHLOR, FDIAT, NODUL, CYANO and CRYPT. obs.data a data frame or a character string naming a csv file of observed lake data. The observed lake data need to include below columns: 1) 'Date' in format of "%Y-%m-%d" 2) 'Depth' (integer) 3) Water quality variables (use string characters of model var as column names). see example data 'data(obs_temp)'. objective.function a vector of string character describing which objective function(s) to be used for calibration. Selected from the following five functions: "NSE": Nash-Sutcliffe efficiency coefficient, "RMSE": Root Mean Square Error, "MAE": Mean Absolute Error, "RAE": Relative Absolute Error, "Pearson": Pearson's r. start.date , end.date the beginning and end simulation dates for the intended DYRESM-CAEDYM calibration. The date format must be "%Y-%m-%d". The two dates should be consistent with model configurations. dycd.wd the directory where input files (including the bat file) to DYRESM-CAEDYM are stored. dycd.output a character string naming the output file of model simulation. file.name a character string naming a .csv file where the results of this function are written to. Needed if 'write.out' = TRUE. verbose if TRUE, model calibration information is printed. parallel if TRUE, the calibration process is run on multiple cores. n.cores When 'parallel' is TRUE, n.cores is the number of cores the calibration function will be run on. If not provided, the default value is the number of available cores on the computer -1. write.out if TRUE, model calibration results are saved in a file with a file name set by the "file.name" argument. Value a data frame of all tested values of parameters and corresponding values of the objective function(s). Note No executable examples are provided to illustrate the use of this function, as this function relies on the DYRESM-CAEDYM executables to work. Change parameter value of input files to DYRESM_CAEDYM model. Description Change parameter value of input files to DYRESM_CAEDYM model. Usage change_input_file(input_file, row_no, new_value) Arguments input_file vector of input format, such as "par","cfg". row_no the number of row where the variable of interest is in the input file. new_value the new value that will be assigned to the variable of interest. Value updated input_file with a new value to a parameter. Delete all whitespace until a non-whitespace character. Description Delete all whitespace until a non-whitespace character. Usage delete_space(extract_val) Arguments extract_val a vector. Extract outputs from a DYRESM-CAEDYM model run Description Extract simulation outputs from a DYRESM-CAEDYM model run. Usage ext_output(dycd.output, var.extract, verbose = FALSE) Arguments dycd.output a string of characters describing the file path to the output netcdf file of DYRESM-CAEDYM model. var.extract a vector of variables to be extracted from the output. Please refer to the var.name of data(output_name) for accepted variable name. Apart from the user nominated variables, simulation period and layer height data are also extracted. verbose if TRUE, the information about the extraction process is printed. Value a list of values of those variables of interest, as well as two compulsory variables (i.e. simulation period, layer height) Examples # extract simulated temperature values from DYRESM-CAEDYM simulation file var.values<-ext_output(dycd.output=system.file("extdata", "dysim.nc", package = "dycdtools"), var.extract=c("TEMP")) for(i in 1:length(var.values)){ expres<-paste0(names(var.values)[i],"<-data.frame(var.values[[",i,"]])") eval(parse(text=expres)) } convert from height to depth Description convert from height to depth Usage hgt_to_dpt(height) Arguments height a vector of height profile Interpolation of DYRESM-CAEDYM simulation results across a series of user-defined depths. Description The default simulation results of a water quality variable from DYRESM-CAEDYM are usually at irregular layer heights. This function convert it to a data frame with regular layer heights through interpolation. Usage interpol(layerHeights, var, min.depth, max.depth, by.value) Arguments layerHeights layer heights, outputs from a DYRESM-CAEDYM model run, and can be generated with the 'ext_output' function. var simulation results of a water quality variable and can also be generated with the 'ext_output' function. min.depth , max.depth , by.value minimum and ma
section
dycdtools.pdf
CRAN · 0.4.4 · Documentation · application/pdf · 120,294 · 2026-05-07
Title
dycdtools.pdf
Label
dycdtools.pdf

Reference for dycdtools (0.4.4)

15개 topic
calib_assist
Assist calibration of DYRESM-CAEDYM model.
CRAN · 0.4.4 · dycdtools/man/calib_assist.Rd · 2026-05-07

This function carries out simulations with a large number of possible combinations of parameter values that users regard as potentially suitable for their model calibration, and calculates the values of nominated objective functions (i.e., statistical measures of goodness of fit) for each combination. Based on the calculated objective function values, users can determine the optimal set(s) of parameter values or narrow the ranges of possible parameter values.

Aliases
calib_assist
Usage
calib_assist( cal.para, combination = "random", n, model.var, phyto.group = NA, obs.data, objective.function = c("NSE", "RMSE"), start.date, end.date, dycd.wd, dycd.output, file.name, verbose = TRUE, parallel = FALSE, n.cores = NULL, write.out = TRUE )
Arguments
cal.para
a data frame or a character string naming an external .csv file where below column names are mandatory: "Parameter" describing parameter names (abbreviation is allowed), "Min", "Max", and "Increment" describing the minimum and maximum parameter values and expected increment in the value range, "Input_file" and "Line_NO" listing in which configuration file at which line the parameter can be found.
combination
a vector of string character of how to pick up combinations of parameter values. "random" - the function randomly picks up a given number of combinations; "all" - the function tries all possible combinations of parameter values.
n
the number of random selections. Must be provided if combination = "random".
model.var
a vector of string character of modelled variables for calibration. the character should be from the 'var.name' column of 'data(output_name)'. Note that if model calibration needs to regard chlorophyll of multiple phytoplankton groups as a whole, model.var should use "CHLA" and individual phytoplankton group should be specified through the "phyto.group" argument. If phytoplankton groups are separately calibrated, simply list their character in this argument (model.var).
phyto.group
a vector of simulated phytoplankton groups, including CHLOR, FDIAT, NODUL, CYANO and CRYPT.
obs.data
a data frame or a character string naming a csv file of observed lake data. The observed lake data need to include below columns: 1) 'Date' in format of "%Y-%m-%d" 2) 'Depth' (integer) 3) Water quality variables (use string characters of model var as column names). see example data 'data(obs_temp)'.
objective.function
a vector of string character describing which objective function(s) to be used for calibration. Selected from the following five functions: "NSE": Nash-Sutcliffe efficiency coefficient, "RMSE": Root Mean Square Error, "MAE": Mean Absolute Error, "RAE": Relative Absolute Error, "Pearson": Pearson's r.
start.date, end.date
the beginning and end simulation dates for the intended DYRESM-CAEDYM calibration. The date format must be "%Y-%m-%d". The two dates should be consistent with model configurations.
dycd.wd
the directory where input files (including the bat file) to DYRESM-CAEDYM are stored.
dycd.output
a character string naming the output file of model simulation.
file.name
a character string naming a .csv file where the results of this function are written to. Needed if 'write.out' = TRUE.
verbose
if TRUE, model calibration information is printed.
parallel
if TRUE, the calibration process is run on multiple cores.
n.cores
When 'parallel' is TRUE, n.cores is the number of cores the calibration function will be run on. If not provided, the default value is the number of available cores on the computer -1.
write.out
if TRUE, model calibration results are saved in a file with a file name set by the "file.name" argument.
Value
a data frame of all tested values of parameters and corresponding values of the objective function(s).
Note
No executable examples are provided to illustrate the use of this function, as this function relies on the DYRESM-CAEDYM executables to work.
change_input_file
Change parameter value of input files to DYRESM_CAEDYM model.
CRAN · 0.4.4 · dycdtools/man/change_input_file.Rd · 2026-05-07

Change parameter value of input files to DYRESM_CAEDYM model.

Aliases
change_input_file
Usage
change_input_file(input_file, row_no, new_value)
Arguments
input_file
vector of input format, such as "par","cfg".
row_no
the number of row where the variable of interest is in the input file.
new_value
the new value that will be assigned to the variable of interest.
Value
updated input_file with a new value to a parameter.
delete_space
Delete all whitespace until a non-whitespace character.
CRAN · 0.4.4 · dycdtools/man/delete_space.Rd · 2026-05-07

Delete all whitespace until a non-whitespace character.

Aliases
delete_space
Usage
delete_space(extract_val)
Arguments
extract_val
a vector.
ext_output
Extract outputs from a DYRESM-CAEDYM model run
CRAN · 0.4.4 · dycdtools/man/ext_output.Rd · 2026-05-07

Extract simulation outputs from a DYRESM-CAEDYM model run.

Aliases
ext_output
Usage
ext_output(dycd.output, var.extract, verbose = FALSE)
Arguments
dycd.output
a string of characters describing the file path to the output netcdf file of DYRESM-CAEDYM model.
var.extract
a vector of variables to be extracted from the output. Please refer to the var.name of data(output_name) for accepted variable name. Apart from the user nominated variables, simulation period and layer height data are also extracted.
verbose
if TRUE, the information about the extraction process is printed.
Value
a list of values of those variables of interest, as well as two compulsory variables (i.e. simulation period, layer height)
Examples
# extract simulated temperature values from DYRESM-CAEDYM simulation file var.values<-ext_output(dycd.output=system.file("extdata", "dysim.nc", package = "dycdtools"), var.extract=c("TEMP")) for(i in 1:length(var.values)) expres<-paste0(names(var.values)[i],"<-data.frame(var.values[[",i,"]])") eval(parse(text=expres))
hgt_to_dpt
convert from height to depth
CRAN · 0.4.4 · dycdtools/man/hgt_to_dpt.Rd · 2026-05-07

convert from height to depth

Aliases
hgt_to_dpt
Usage
hgt_to_dpt(height)
Arguments
height
a vector of height profile
interpol
Interpolation of DYRESM-CAEDYM simulation results across a series of user-defined depths.
CRAN · 0.4.4 · dycdtools/man/interpol.Rd · 2026-05-07

The default simulation results of a water quality variable from DYRESM-CAEDYM are usually at irregular layer heights. This function convert it to a data frame with regular layer heights through interpolation.

Aliases
interpol
Usage
interpol(layerHeights, var, min.depth, max.depth, by.value)
Arguments
layerHeights
layer heights, outputs from a DYRESM-CAEDYM model run, and can be generated with the 'ext_output' function.
var
simulation results of a water quality variable and can also be generated with the 'ext_output' function.
min.depth, max.depth, by.value
minimum and maximum layer depths within which interpolation will be conducted. by.value sets up the depth increments between two immediate layers.
Value
a matrix of interpolated values of the water quality variable(s).
Examples
# extract simulated temperature values from DYRESM-CAEDYM simulation file var.values<-ext_output(dycd.output=system.file("extdata", "dysim.nc", package = "dycdtools"), var.extract=c("TEMP")) for(i in seq_along(var.values)) expres<-paste0(names(var.values)[i],"<-data.frame(var.values[[",i,"]])") eval(parse(text=expres)) # interpolate temperature for depths from 0 to 13 m at increment of 0.5 m temp.interpolated<-interpol(layerHeights = dyresmLAYER_HTS_Var, var = dyresmTEMPTURE_Var, min.dept = 0, max.dept = 13, by.value = 0.5)
objective_fun
Calculate statistical measures of goodness of fit for DYRESM-CAEDYM model simulations.
CRAN · 0.4.4 · dycdtools/man/objective_fun.Rd · 2026-05-07

calculate the below five objective functions that are commonly used to measure goodness of fit: 1) Nash-Sutcliffe Efficiency coefficient (NSE), 2) Root Mean Square Error (RMSE), 3) Mean Absolute Error (MAE), 4) Relative Absolute Error (RAE), and 5) Pearson's r (Pearson).

Aliases
objective_fun
Usage
objective_fun( sim, obs, fun = c("NSE", "RMSE"), start.date, end.date, min.depth, max.depth, by.value )
Arguments
sim
a matrix of a simulated water quality variable values with column of time and row of depth. This matrix can be generated by running the "interpol" function.
obs
a data frame having three columns to describe observed values of a water quality variable. These three columns are 'Date' (as '%Y-%m-%d'), 'Depth', and the designated variable name which can be found from the var.name column of 'data(output_name)'. An example of such a data frame can be found with 'data(obs_temp)'
fun
objective function(s) to be calculated. Select any from 'NSE', 'RMSE', 'MAE', 'RAE', and 'Pearson'. Multiple selections are allowed.
start.date, end.date
the start and end simulation dates for the DYRESM-CAEDYM model run. The date format must be "%Y-%m-%d".
min.depth, max.depth
the minimum and maximum depths of the simulation matrix.
by.value
the value of increment at which the depth of layers increases from the mim.depth to max.depth in the simulation matrix.
Value
a list of objective function values.
obs_temp
Example observed profiling temperature data across different depths over the period of 6-11 June 2017.
CRAN · 0.4.4 · data · dycdtools/man/obs_temp.Rd · 2026-05-07

A table has three columns. The first column name is Date in the form of dd-mm-YY. The second column is Depth where the temperature data was monitored. The third column is monitored temperature value.

Aliases
obs_temp
Keywords
datasets
Usage
data(obs_temp)
Format
A data frame with 77 rows and 3 variables: Datedate when the monitoring happened Depthdepth of monitoring TEMPtemperature value
Source
self-made.
output_name
Default DYCD simulation variable names with their variable name
CRAN · 0.4.4 · data · dycdtools/man/output_name.Rd · 2026-05-07

A table has two columns. The first column name is var.name, meaning variable names that are used in the extract.output function. The second column is the default DYCD simulation variable names, such as "dyresmLAYER_HTS_Var".

Aliases
output_name
Keywords
datasets
Usage
data(output_name)
Format
A data frame with 65 rows and 2 variables: var.namevariable name output.namedefault DYCD simulation variable name
Source
self-made.
plot_cont
Contour plot of only simulation results of a water quality variable.
CRAN · 0.4.4 · dycdtools/man/plot_cont.Rd · 2026-05-07

Contour plot a matrix of values of a water quality variable,

Aliases
plot_cont
Usage
plot_cont( sim, sim.start, sim.end, legend.title, min.depth, max.depth, by.value, nlevels )
Arguments
sim
a matrix of simulated variables. This matrix can be generated by running the "interpol" function.
sim.start, sim.end
the start and end dates of the simulation period for the DYRESM-CAEDYM model run of interest. The date format must be "%Y-%m-%d".
legend.title
the legend title of the contour figure.
min.depth, max.depth, by.value
minimum and maximum depths used to be the start of y axis of the contour plot, at the increment of by.value.
nlevels
Number of levels which are used to partition the range of simulation variable.
Details
This function is NOT based on ggplot2. To save the produced figure, users can use functions like png, bmp, jpeg, etc.
Value
This function returns a filled.contour object.
Examples
sim <- matrix(c(28,28,28,27,25,24,12,13,14,15,16,17), nrow = 6, ncol = 2) # contour plot of the sim data frame p <- plot_cont(sim = sim, sim.start = "2020-01-01", sim.end = "2020-01-02", legend.title = "T 00B0C", min.depth = 0, max.depth = 5, by.value = 1, nlevels = 20) p
plot_cont_comp
Contour plot of DYRESM-CAEDYM simulation outputs of a water quality variable, with observed data shown as dots in the ge...
CRAN · 0.4.4 · dycdtools/man/plot_cont_comp.Rd · 2026-05-07

Contour plot a matrix of values of a water quality variable.

Aliases
plot_cont_comp
Usage
plot_cont_comp( sim, obs, sim.start, sim.end, plot.start, plot.end, legend.title, min.depth, max.depth, by.value, nlevels = 20 )
Arguments
sim
a matrix of simulated variables. This matrix can be generated by running the "interpol" function.
obs
a data frame having three columns to describe observed values of a water quality variable. These three columns are 'Date' (as '%Y-%m-%d'), 'Depth', and the designated variable name which can be found from the var.name column of 'data(output_name)'. An example of such a data frame can be found with 'data(obs_temp)'
sim.start, sim.end
the start and end dates of the simulation period for the DYRESM-CAEDYM model run of interest. The date format must be "%Y-%m-%d".
plot.start, plot.end
the start and end dates of the period to be plotted, in the format of "%Y-%m-%d".
legend.title
the legend title of the contour figure.
min.depth, max.depth, by.value
minimum and maximum depths used to be the start of y axis of the contour plot, at the increment of by.value.
nlevels
Number of levels which are used to partition the range of simulation variable.
Details
This function is NOT based on ggplot2. To save the produced figure, users can use functions like png, bmp, jpeg, etc.
Value
This function returns a filled.contour object.
Examples
obs <- data.frame(Date = c(rep('2020-01-01', 6), rep('2020-01-02', 6)), Depth = rep(0:5, 2), TEMP = rep(29:24,2)) sim <- matrix(c(28,28,28,27,25,24,12,13,14,15,16,17), nrow = 6, ncol = 2) # contour plot of temperature simulations # with observed data shown as colour-coded dots p <- plot_cont_comp(sim = sim, obs = obs, sim.start = "2020-01-01", sim.end = "2020-01-02", plot.start = "2020-01-01", plot.end = "2020-01-02", legend.title = "T 00B0C", min.depth=0, max.depth=5, by.value=1, nlevels=20) p
plot_prof
A post-processing function used to visualise model output in a profile graph.
CRAN · 0.4.4 · dycdtools/man/plot_prof.Rd · 2026-05-07

Profile plot shows vertical profiles of simulation outputs and corresponding observations for all dates where observations are available.

Aliases
plot_prof
Usage
plot_prof( sim, obs, sim.start, sim.end, plot.start, plot.end, xlabel, min.depth, max.depth, by.value )
Arguments
sim
a matrix of simulated variables. This matrix can be generated by running the "interpol" function.
obs
a data frame having three columns to describe observed values of a water quality variable. These three columns are 'Date' (as '%Y-%m-%d'), 'Depth', and the designated variable name which can be found from the var.name column of 'data(output_name)'. An example of such a data frame can be found with 'data(obs_temp)' This function is based on ggplot2, and users can treat the object of this function in the same way as a ggplot2 object.
sim.start, sim.end
the start and end dates of the simulation period of the DYRESM-CAEDYM model run of interest. The date format must be "%Y-%m-%d".
plot.start, plot.end
the start and end dates of the period to be plotted in the format of "%Y-%m-%d".
xlabel
the x axis label of the profile figure.
min.depth, max.depth, by.value
minimum and maximum depths in the profile plot at an increment of by.value.
Value
This function returns a ggplot object that can be modified with ggplot package functions.
Examples
var.values<-ext_output(dycd.output=system.file("extdata", "dysim.nc", package = "dycdtools"), var.extract=c("TEMP")) for(i in 1:length(var.values)) expres<-paste0(names(var.values)[i],"<-data.frame(var.values[[",i,"]])") eval(parse(text=expres)) # interpolate temperature for depths from 0 to 13 m at increment of 0.5 m temp.interpolated<-interpol(layerHeights = dyresmLAYER_HTS_Var, var = dyresmTEMPTURE_Var, min.dept = 0, max.dept = 13, by.value = 0.5) data(obs_temp) # profile plot of temperature sim and obs p <- plot_prof(sim=temp.interpolated, obs = obs_temp, sim.start="2017-06-06", sim.end="2017-06-15", plot.start="2017-06-06", plot.end="2017-06-15", xlabel = "Temperature 00B0C", min.depth = 0, max.depth = 13, by.value = 0.5) p
plot_scatter
Scatter plot of the simulation and observation of a water quality variable. This function is based on ggplot2, and users...
CRAN · 0.4.4 · dycdtools/man/plot_scatter.Rd · 2026-05-07

Scatter plot of the simulation and observation of a water quality variable. This function is based on ggplot2, and users can treat the object of this function in the same way as a ggplot2 object.

Aliases
plot_scatter
Usage
plot_scatter( sim, obs, sim.start, sim.end, plot.start, plot.end, min.depth, max.depth, by.value )
Arguments
sim
a matrix of simulated variables. This matrix can be generated by running the "interpol" function.
obs
a data frame having three columns to describe observed values of a water quality variable. These three columns are 'Date' (as '%Y-%m-%d'), 'Depth', and the designated variable name which can be found from the var.name column of 'data(output_name)'. An example of such a data frame can be found with 'data(obs_temp)'
sim.start, sim.end
the start and end dates of the simulation period of the DYRESM-CAEDYM model run of interest. The date format must be "%Y-%m-%d".
plot.start, plot.end
the start and end dates of the period to be plotted in the format of "%Y-%m-%d".
min.depth, max.depth, by.value
minimum and maximum depths in the profile plot at an increment of by.value.
Value
This function returns a ggplot object that can be modified with ggplot package functions.
Examples
var.values<-ext_output(dycd.output=system.file("extdata", "dysim.nc", package = "dycdtools"), var.extract=c("TEMP")) for(i in 1:length(var.values)) expres<-paste0(names(var.values)[i],"<-data.frame(var.values[[",i,"]])") eval(parse(text=expres)) # interpolate temperature for depths from 0 to 13 m at increment of 0.5 m temp.interpolated<-interpol(layerHeights = dyresmLAYER_HTS_Var, var = dyresmTEMPTURE_Var, min.dept = 0, max.dept = 13, by.value = 0.5) data(obs_temp) # scatter plot of sim and obs temperature p <- plot_scatter(sim=temp.interpolated, obs=obs_temp, sim.start="2017-06-06", sim.end="2017-06-15", plot.start="2017-06-06", plot.end="2017-06-15", min.depth = 0, max.depth = 13, by.value = 0.5) p
plot_ts
Time series plot of simulated and observed values at target depths. This function is based on ggplot2, and users can tre...
CRAN · 0.4.4 · dycdtools/man/plot_ts.Rd · 2026-05-07

Time series plot of simulated and observed values at target depths. This function is based on ggplot2, and users can treat the object of this function in the same way as a ggplot2 object.

Aliases
plot_ts
Usage
plot_ts( sim, obs, target.depth, sim.start, sim.end, plot.start, plot.end, min.depth, max.depth, by.value, ylabel )
Arguments
sim
a matrix of simulated variables. This matrix can be generated by running the "interpol" function.
obs
a data frame having three columns to describe observed values of a water quality variable. These three columns are 'Date' (as '%Y-%m-%d'), 'Depth', and the designated variable name which can be found from the var.name column of 'data(output_name)'. An example of such a data frame can be found with 'data(obs_temp)'
target.depth
a vector of depth (unit:m) for which time series simulation results will be plotted.
sim.start, sim.end
the start and end dates of the simulation period of the DYRESM-CAEDYM model run of interest. The date format must be "%Y-%m-%d".
plot.start, plot.end
the start and end dates of the period to be plotted in the format of "%Y-%m-%d".
min.depth, max.depth, by.value
minimum and maximum depths in the profile plot at an increment of by.value.
ylabel
the y axis title of the time series plot.
Value
This function returns a ggplot object that can be modified with ggplot package functions.
Examples
var.values<-ext_output(dycd.output=system.file("extdata", "dysim.nc", package = "dycdtools"), var.extract=c("TEMP")) for(i in 1:length(var.values)) expres<-paste0(names(var.values)[i],"<-data.frame(var.values[[",i,"]])") eval(parse(text=expres)) # interpolate temperature for depths from 0 to 13 m at increment of 0.5 m temp.interpolated<-interpol(layerHeights = dyresmLAYER_HTS_Var, var = dyresmTEMPTURE_Var, min.dept = 0, max.dept = 13, by.value = 0.5) data(obs_temp) # time series plot of temperature sim and obs p <- plot_ts(sim = temp.interpolated, obs = obs_temp, target.depth=c(1,6), sim.start="2017-06-06", sim.end="2017-06-15", plot.start="2017-06-06", plot.end="2017-06-15", ylabel="Temperature 00B0C", min.depth=0, max.depth=13, by.value=0.5) p
run_iteration
Internal function to provide parallel processing support to the calibration assistant function.
CRAN · 0.4.4 · dycdtools/man/run_iteration.Rd · 2026-05-07

Internal function to provide parallel processing support to the calibration assistant function.

Aliases
run_iteration
Usage
run_iteration(this.sim, dycd.wd)
Arguments
this.sim
a numeric denoting which parameter combination to be tried.
dycd.wd
working directory where input files (including the bat file) to DYRESM-CAEDYM are stored.

버전 이력

RepositoryVersionPublishedFirst seenLast seenDocs
CRAN0.4.42026-05-292026-05-30

보안

표시할 OSV 데이터가 없습니다.

문헌 신호

표시할 OpenAlex 데이터가 없습니다.