r-hydrogof: add new package and dependencies (#36763)

- r-hydrogof
- r-hydrotsm
- r-automap
This commit is contained in:
Glenn Johnson 2023-04-11 23:39:06 -05:00 committed by GitHub
parent 94615285d1
commit f4658a520c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 89 additions and 0 deletions

View File

@ -0,0 +1,27 @@
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class RAutomap(RPackage):
"""Automatic Interpolation Package.
An automatic interpolation is done by automatically estimating the
variogram and then calling gstat. An overview is given by Hiemstra et al
(2008) <doi:10.1016/j.cageo.2008.10.011>."""
cran = "automap"
version("1.1-9", sha256="f3070aed385352d2595ceddd74cb03cd71965f2e60b675832d16ec2ead6f3a43")
depends_on("r@2.10.0:", type=("build", "run"))
depends_on("r-gstat", type=("build", "run"))
depends_on("r-lattice", type=("build", "run"))
depends_on("r-reshape", type=("build", "run"))
depends_on("r-ggplot2", type=("build", "run"))
depends_on("r-sp", type=("build", "run"))
depends_on("r-sf", type=("build", "run"))
depends_on("r-stars", type=("build", "run"))

View File

@ -0,0 +1,27 @@
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class RHydrogof(RPackage):
"""Goodness-of-Fit Functions for Comparison of Simulated and Observed
Hydrological Time Series.
S3 functions implementing both statistical and graphical goodness-of-fit
measures between observed and simulated values, mainly oriented to be used
during the calibration, validation, and application of hydrological models.
Missing values in observed and/or simulated values can be removed before
computations. Comments / questions / collaboration of any kind are very
welcomed."""
cran = "hydroGOF"
version("0.4-0", sha256="6a109740e36549a9369b5960b869e5e0a296261df7b6faba6cb3bd338d59883b")
depends_on("r@2.10.0:", type=("build", "run"))
depends_on("r-zoo@1.7-2:", type=("build", "run"))
depends_on("r-hydrotsm@0.5-0:", type=("build", "run"))
depends_on("r-xts@0.8-2:", type=("build", "run"))

View File

@ -0,0 +1,35 @@
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class RHydrotsm(RPackage):
"""Time Series Management, Analysis and Interpolation for Hydrological
Modelling.
S3 functions for management, analysis, interpolation and plotting of time
series used in hydrology and related environmental sciences. In particular,
this package is highly oriented to hydrological modelling tasks. The focus
of this package has been put in providing a collection of tools useful for
the daily work of hydrologists (although an effort was made to optimise
each function as much as possible, functionality has had priority over
speed). Bugs / comments / questions / collaboration of any kind are very
welcomed, and in particular, datasets that can be included in this package
for academic purposes."""
cran = "hydroTSM"
version("0.6-0", sha256="5be759845ce05ca579ed2657c85d497b78c3060d737e84fcd457153045db4ad7")
depends_on("r@2.10.0:", type=("build", "run"))
depends_on("r-zoo@1.7-2:", type=("build", "run"))
depends_on("r-xts@0.9-7:", type=("build", "run"))
depends_on("r-e1071", type=("build", "run"))
depends_on("r-gstat", type=("build", "run"))
depends_on("r-automap", type=("build", "run"))
depends_on("r-sp@1.1-0:", type=("build", "run"))
depends_on("r-lattice", type=("build", "run"))
depends_on("r-maptools", type=("build", "run"))