diff --git a/DESCRIPTION b/DESCRIPTION index daf11d7..9674ec9 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -9,7 +9,8 @@ Suggests: downscaleR, loadeR, loadeR.ECOMS, - visualizeR + visualizeR, + climate4R.datasets Type: Package Title: A climate4R Package for Unit Conversion and Variable Derivation Version: 0.2.1 diff --git a/NEWS b/NEWS index 75414b6..b1344ce 100644 --- a/NEWS +++ b/NEWS @@ -31,3 +31,4 @@ ## v0.2.1 (22 Jun 2023) * Add .gitignore * Update R CMD check with roxygen2 7.1.2 + * Update examples diff --git a/R/udConvertGrid.R b/R/udConvertGrid.R index bb15605..49fb292 100644 --- a/R/udConvertGrid.R +++ b/R/udConvertGrid.R @@ -50,6 +50,7 @@ #' #' @examples #' library(transformeR) +#' require(climate4R.datasets) #' data("NCEP_Iberia_ta850") #' # Converting from Kelvin to Celsius: #' getGridUnits(NCEP_Iberia_ta850) diff --git a/man/hurs2huss.Rd b/man/hurs2huss.Rd index 0503374..612e4dd 100644 --- a/man/hurs2huss.Rd +++ b/man/hurs2huss.Rd @@ -48,16 +48,24 @@ spatialPlot(climatology(hurs), rev.colors = TRUE, backdrop.theme = "coastline") } } \seealso{ -Other derivation: \code{\link{hurs2tdps}}, - \code{\link{hurs2w}}, \code{\link{huss2hurs}}, - \code{\link{huss2pvp}}, \code{\link{ps2psl}}, - \code{\link{psl2ps}}, \code{\link{rad2cc}}, - \code{\link{tas2ws}}, \code{\link{tdps2hurs}} +Other derivation: +\code{\link{hurs2tdps}()}, +\code{\link{hurs2w}()}, +\code{\link{huss2hurs}()}, +\code{\link{huss2pvp}()}, +\code{\link{ps2psl}()}, +\code{\link{psl2ps}()}, +\code{\link{rad2cc}()}, +\code{\link{tas2ws}()}, +\code{\link{tdps2hurs}()} -Other humidity: \code{\link{hurs2tdps}}, - \code{\link{hurs2w}}, \code{\link{huss2hurs}}, - \code{\link{huss2pvp}}, \code{\link{tas2ws}}, - \code{\link{tdps2hurs}} +Other humidity: +\code{\link{hurs2tdps}()}, +\code{\link{hurs2w}()}, +\code{\link{huss2hurs}()}, +\code{\link{huss2pvp}()}, +\code{\link{tas2ws}()}, +\code{\link{tdps2hurs}()} } \author{ J. Bedia, S. Herrera diff --git a/man/hurs2tdps.Rd b/man/hurs2tdps.Rd index be87995..41be21e 100644 --- a/man/hurs2tdps.Rd +++ b/man/hurs2tdps.Rd @@ -38,16 +38,24 @@ Lawrence, Mark G., 2005: The relationship between relative humidity and the dewp \seealso{ tdps2hurs, performing the inverse calculation to derive relative humidity from dew-point temperature and observed temperature -Other derivation: \code{\link{hurs2huss}}, - \code{\link{hurs2w}}, \code{\link{huss2hurs}}, - \code{\link{huss2pvp}}, \code{\link{ps2psl}}, - \code{\link{psl2ps}}, \code{\link{rad2cc}}, - \code{\link{tas2ws}}, \code{\link{tdps2hurs}} +Other derivation: +\code{\link{hurs2huss}()}, +\code{\link{hurs2w}()}, +\code{\link{huss2hurs}()}, +\code{\link{huss2pvp}()}, +\code{\link{ps2psl}()}, +\code{\link{psl2ps}()}, +\code{\link{rad2cc}()}, +\code{\link{tas2ws}()}, +\code{\link{tdps2hurs}()} -Other humidity: \code{\link{hurs2huss}}, - \code{\link{hurs2w}}, \code{\link{huss2hurs}}, - \code{\link{huss2pvp}}, \code{\link{tas2ws}}, - \code{\link{tdps2hurs}} +Other humidity: +\code{\link{hurs2huss}()}, +\code{\link{hurs2w}()}, +\code{\link{huss2hurs}()}, +\code{\link{huss2pvp}()}, +\code{\link{tas2ws}()}, +\code{\link{tdps2hurs}()} } \author{ J. Bedia diff --git a/man/hurs2w.Rd b/man/hurs2w.Rd index f4d416b..da8bcaf 100644 --- a/man/hurs2w.Rd +++ b/man/hurs2w.Rd @@ -58,16 +58,24 @@ spatialPlot(climatology(w), rev.colors = TRUE, backdrop.theme = "coastline") } } \seealso{ -Other derivation: \code{\link{hurs2huss}}, - \code{\link{hurs2tdps}}, \code{\link{huss2hurs}}, - \code{\link{huss2pvp}}, \code{\link{ps2psl}}, - \code{\link{psl2ps}}, \code{\link{rad2cc}}, - \code{\link{tas2ws}}, \code{\link{tdps2hurs}} +Other derivation: +\code{\link{hurs2huss}()}, +\code{\link{hurs2tdps}()}, +\code{\link{huss2hurs}()}, +\code{\link{huss2pvp}()}, +\code{\link{ps2psl}()}, +\code{\link{psl2ps}()}, +\code{\link{rad2cc}()}, +\code{\link{tas2ws}()}, +\code{\link{tdps2hurs}()} -Other humidity: \code{\link{hurs2huss}}, - \code{\link{hurs2tdps}}, \code{\link{huss2hurs}}, - \code{\link{huss2pvp}}, \code{\link{tas2ws}}, - \code{\link{tdps2hurs}} +Other humidity: +\code{\link{hurs2huss}()}, +\code{\link{hurs2tdps}()}, +\code{\link{huss2hurs}()}, +\code{\link{huss2pvp}()}, +\code{\link{tas2ws}()}, +\code{\link{tdps2hurs}()} } \author{ J. Bedia, S. Herrera diff --git a/man/huss2hurs.Rd b/man/huss2hurs.Rd index 786ca7b..3a17a84 100644 --- a/man/huss2hurs.Rd +++ b/man/huss2hurs.Rd @@ -44,16 +44,24 @@ spatialPlot(climatology(hurs), rev.colors = TRUE, backdrop.theme = "coastline") } } \seealso{ -Other derivation: \code{\link{hurs2huss}}, - \code{\link{hurs2tdps}}, \code{\link{hurs2w}}, - \code{\link{huss2pvp}}, \code{\link{ps2psl}}, - \code{\link{psl2ps}}, \code{\link{rad2cc}}, - \code{\link{tas2ws}}, \code{\link{tdps2hurs}} +Other derivation: +\code{\link{hurs2huss}()}, +\code{\link{hurs2tdps}()}, +\code{\link{hurs2w}()}, +\code{\link{huss2pvp}()}, +\code{\link{ps2psl}()}, +\code{\link{psl2ps}()}, +\code{\link{rad2cc}()}, +\code{\link{tas2ws}()}, +\code{\link{tdps2hurs}()} -Other humidity: \code{\link{hurs2huss}}, - \code{\link{hurs2tdps}}, \code{\link{hurs2w}}, - \code{\link{huss2pvp}}, \code{\link{tas2ws}}, - \code{\link{tdps2hurs}} +Other humidity: +\code{\link{hurs2huss}()}, +\code{\link{hurs2tdps}()}, +\code{\link{hurs2w}()}, +\code{\link{huss2pvp}()}, +\code{\link{tas2ws}()}, +\code{\link{tdps2hurs}()} } \author{ J. Bedia, S. Herrera diff --git a/man/huss2pvp.Rd b/man/huss2pvp.Rd index c98d22f..4e30e41 100644 --- a/man/huss2pvp.Rd +++ b/man/huss2pvp.Rd @@ -45,19 +45,29 @@ spatialPlot(climatology(pvp), rev.colors = TRUE, backdrop.theme = "coastline") } } \seealso{ -Other derivation: \code{\link{hurs2huss}}, - \code{\link{hurs2tdps}}, \code{\link{hurs2w}}, - \code{\link{huss2hurs}}, \code{\link{ps2psl}}, - \code{\link{psl2ps}}, \code{\link{rad2cc}}, - \code{\link{tas2ws}}, \code{\link{tdps2hurs}} +Other derivation: +\code{\link{hurs2huss}()}, +\code{\link{hurs2tdps}()}, +\code{\link{hurs2w}()}, +\code{\link{huss2hurs}()}, +\code{\link{ps2psl}()}, +\code{\link{psl2ps}()}, +\code{\link{rad2cc}()}, +\code{\link{tas2ws}()}, +\code{\link{tdps2hurs}()} -Other humidity: \code{\link{hurs2huss}}, - \code{\link{hurs2tdps}}, \code{\link{hurs2w}}, - \code{\link{huss2hurs}}, \code{\link{tas2ws}}, - \code{\link{tdps2hurs}} +Other humidity: +\code{\link{hurs2huss}()}, +\code{\link{hurs2tdps}()}, +\code{\link{hurs2w}()}, +\code{\link{huss2hurs}()}, +\code{\link{tas2ws}()}, +\code{\link{tdps2hurs}()} -Other pressure: \code{\link{ps2psl}}, \code{\link{psl2ps}}, - \code{\link{tas2ws}} +Other pressure: +\code{\link{ps2psl}()}, +\code{\link{psl2ps}()}, +\code{\link{tas2ws}()} } \author{ J. Bedia, S. Herrera diff --git a/man/ps2psl.Rd b/man/ps2psl.Rd index ea9604c..dddb992 100644 --- a/man/ps2psl.Rd +++ b/man/ps2psl.Rd @@ -52,14 +52,21 @@ The adjustment formulae of pressure values to other levels are those routinely u \url{https://www.wmo.int/pages/prog/www/IMOP/meetings/SI/ET-Stand-1/Doc-10_Pressure-red.pdf} } \seealso{ -Other derivation: \code{\link{hurs2huss}}, - \code{\link{hurs2tdps}}, \code{\link{hurs2w}}, - \code{\link{huss2hurs}}, \code{\link{huss2pvp}}, - \code{\link{psl2ps}}, \code{\link{rad2cc}}, - \code{\link{tas2ws}}, \code{\link{tdps2hurs}} +Other derivation: +\code{\link{hurs2huss}()}, +\code{\link{hurs2tdps}()}, +\code{\link{hurs2w}()}, +\code{\link{huss2hurs}()}, +\code{\link{huss2pvp}()}, +\code{\link{psl2ps}()}, +\code{\link{rad2cc}()}, +\code{\link{tas2ws}()}, +\code{\link{tdps2hurs}()} -Other pressure: \code{\link{huss2pvp}}, - \code{\link{psl2ps}}, \code{\link{tas2ws}} +Other pressure: +\code{\link{huss2pvp}()}, +\code{\link{psl2ps}()}, +\code{\link{tas2ws}()} } \author{ J. Bedia, S. Herrera diff --git a/man/psl2ps.Rd b/man/psl2ps.Rd index 4a273dc..fbf185f 100644 --- a/man/psl2ps.Rd +++ b/man/psl2ps.Rd @@ -57,14 +57,21 @@ The adjustment formulae of pressure values to other levels are those routinely u \url{https://www.wmo.int/pages/prog/www/IMOP/meetings/SI/ET-Stand-1/Doc-10_Pressure-red.pdf} } \seealso{ -Other derivation: \code{\link{hurs2huss}}, - \code{\link{hurs2tdps}}, \code{\link{hurs2w}}, - \code{\link{huss2hurs}}, \code{\link{huss2pvp}}, - \code{\link{ps2psl}}, \code{\link{rad2cc}}, - \code{\link{tas2ws}}, \code{\link{tdps2hurs}} +Other derivation: +\code{\link{hurs2huss}()}, +\code{\link{hurs2tdps}()}, +\code{\link{hurs2w}()}, +\code{\link{huss2hurs}()}, +\code{\link{huss2pvp}()}, +\code{\link{ps2psl}()}, +\code{\link{rad2cc}()}, +\code{\link{tas2ws}()}, +\code{\link{tdps2hurs}()} -Other pressure: \code{\link{huss2pvp}}, - \code{\link{ps2psl}}, \code{\link{tas2ws}} +Other pressure: +\code{\link{huss2pvp}()}, +\code{\link{ps2psl}()}, +\code{\link{tas2ws}()} } \author{ J. Bedia, S. Herrera diff --git a/man/rad2cc.Rd b/man/rad2cc.Rd index a7fb2f1..c1a059f 100644 --- a/man/rad2cc.Rd +++ b/man/rad2cc.Rd @@ -43,11 +43,16 @@ cc2 <- rad2cc(rtds = rtds) identical(cc2, cc) } \seealso{ -Other derivation: \code{\link{hurs2huss}}, - \code{\link{hurs2tdps}}, \code{\link{hurs2w}}, - \code{\link{huss2hurs}}, \code{\link{huss2pvp}}, - \code{\link{ps2psl}}, \code{\link{psl2ps}}, - \code{\link{tas2ws}}, \code{\link{tdps2hurs}} +Other derivation: +\code{\link{hurs2huss}()}, +\code{\link{hurs2tdps}()}, +\code{\link{hurs2w}()}, +\code{\link{huss2hurs}()}, +\code{\link{huss2pvp}()}, +\code{\link{ps2psl}()}, +\code{\link{psl2ps}()}, +\code{\link{tas2ws}()}, +\code{\link{tdps2hurs}()} } \author{ J. Bedia, S. Herrera diff --git a/man/tas2ws.Rd b/man/tas2ws.Rd index 55398d6..b6ee711 100644 --- a/man/tas2ws.Rd +++ b/man/tas2ws.Rd @@ -46,19 +46,29 @@ spatialPlot(climatology(ws), backdrop.theme = "coastline") } } \seealso{ -Other derivation: \code{\link{hurs2huss}}, - \code{\link{hurs2tdps}}, \code{\link{hurs2w}}, - \code{\link{huss2hurs}}, \code{\link{huss2pvp}}, - \code{\link{ps2psl}}, \code{\link{psl2ps}}, - \code{\link{rad2cc}}, \code{\link{tdps2hurs}} +Other derivation: +\code{\link{hurs2huss}()}, +\code{\link{hurs2tdps}()}, +\code{\link{hurs2w}()}, +\code{\link{huss2hurs}()}, +\code{\link{huss2pvp}()}, +\code{\link{ps2psl}()}, +\code{\link{psl2ps}()}, +\code{\link{rad2cc}()}, +\code{\link{tdps2hurs}()} -Other humidity: \code{\link{hurs2huss}}, - \code{\link{hurs2tdps}}, \code{\link{hurs2w}}, - \code{\link{huss2hurs}}, \code{\link{huss2pvp}}, - \code{\link{tdps2hurs}} +Other humidity: +\code{\link{hurs2huss}()}, +\code{\link{hurs2tdps}()}, +\code{\link{hurs2w}()}, +\code{\link{huss2hurs}()}, +\code{\link{huss2pvp}()}, +\code{\link{tdps2hurs}()} -Other pressure: \code{\link{huss2pvp}}, - \code{\link{ps2psl}}, \code{\link{psl2ps}} +Other pressure: +\code{\link{huss2pvp}()}, +\code{\link{ps2psl}()}, +\code{\link{psl2ps}()} } \author{ J. Bedia, S. Herrera diff --git a/man/tdps2hurs.Rd b/man/tdps2hurs.Rd index 9f37cd1..fba0607 100644 --- a/man/tdps2hurs.Rd +++ b/man/tdps2hurs.Rd @@ -40,16 +40,24 @@ Lawrence, Mark G., 2005: The relationship between relative humidity and the dewp \seealso{ hurs2tdps, performing the inverse calculation to derive dew-point temperature from relative humidity and observed temperature -Other derivation: \code{\link{hurs2huss}}, - \code{\link{hurs2tdps}}, \code{\link{hurs2w}}, - \code{\link{huss2hurs}}, \code{\link{huss2pvp}}, - \code{\link{ps2psl}}, \code{\link{psl2ps}}, - \code{\link{rad2cc}}, \code{\link{tas2ws}} +Other derivation: +\code{\link{hurs2huss}()}, +\code{\link{hurs2tdps}()}, +\code{\link{hurs2w}()}, +\code{\link{huss2hurs}()}, +\code{\link{huss2pvp}()}, +\code{\link{ps2psl}()}, +\code{\link{psl2ps}()}, +\code{\link{rad2cc}()}, +\code{\link{tas2ws}()} -Other humidity: \code{\link{hurs2huss}}, - \code{\link{hurs2tdps}}, \code{\link{hurs2w}}, - \code{\link{huss2hurs}}, \code{\link{huss2pvp}}, - \code{\link{tas2ws}} +Other humidity: +\code{\link{hurs2huss}()}, +\code{\link{hurs2tdps}()}, +\code{\link{hurs2w}()}, +\code{\link{huss2hurs}()}, +\code{\link{huss2pvp}()}, +\code{\link{tas2ws}()} } \author{ J. Bedia diff --git a/man/udConvertGrid.Rd b/man/udConvertGrid.Rd index 57b67e4..2e6a9ee 100644 --- a/man/udConvertGrid.Rd +++ b/man/udConvertGrid.Rd @@ -35,6 +35,7 @@ the above-mentioned consistency checks). } \examples{ library(transformeR) +require(climate4R.datasets) data("NCEP_Iberia_ta850") # Converting from Kelvin to Celsius: getGridUnits(NCEP_Iberia_ta850)