diff --git a/DESCRIPTION b/DESCRIPTION index f61512a0e6181afc99dc2581548aad8caf862372..6aff1bc732b7f31178c69fe6c1872cbad280ab81 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,12 +1,14 @@ Package: s2dv Title: A Set of Common Tools for Seasonal to Decadal Verification -Version: 0.0.1 +Version: 0.1.0 Authors@R: c( person("BSC-CNS", role = c("aut", "cph")), person("An-Chi", "Ho", , "an.ho@bsc.es", role = c("aut", "cre")), person("Nuria", "Perez-Zanon", , "nuria.perez@bsc.es", role = "aut"), + person("Roberto", "Bilbao", , "roberto.bilbao@bsc.es", role = "ctb"), + person("Carlos", "Delgado", , "carlos.delgado@bsc.es", role = "ctb"), person("Andrea", "Manrique", , "andrea.manrique@bsc.es", role = "ctb"), - person("Carlos", "Delgado", , "carlos.delgado@bsc.es", role = "ctb")) + person("Deborah", "Verfaillie", , "deborah.verfaillie@bsc.es", role = "ctb")) Description: The advanced version of package 's2dverification'. It is intended for 'seasonal to decadal' (s2d) climate forecast verification, but it can also be used in other kinds of forecasts or general climate analysis. diff --git a/NEWS.md b/NEWS.md index 9979a52e4c114c1e8a2e1534f5b4f22b8bd9e27d..463a6cad31a74c8af44908b5649c39a4e2221eae 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,13 +1,18 @@ -# s2dv 0.0.2 (Release date: 2020-) -- New functions: Ano(), Composite(), PlotAno(), and Smoothing(). +# s2dv 0.1.0 (Release date: 2020-11-12) +- New functions: Ano(), Composite(), PlotAno(), Smoothing(), AMV(), GSAT(), SPOD(), TPI(), GMST(), Persistence(). - Change the default value of PlotClim() parameter 'fileout' to NULL. - Change Regression() parameter 'time_dim' to 'reg_dim', and enable the inputs to be vectors. - Change Trend() parameter 'time_dim' default value from 'sdate' to 'ftime'. - Change the default of Season() parameter 'time_dim' from 'sdate' to 'ftime'. - Bugfix for Regression() na.action. 'na.action = na.fail' was not functional before. - Add p-value by ANOVA in Trend(). -- Change MeanDims() na.rm default to FALSE to be in line with mean() -- Remove unecessary parameter checks in Clim() +- Bugfix for Trend() slope, detrended, and p-value. +- Change MeanDims() na.rm default to FALSE to be in line with mean(). +- Remove unecessary parameter checks in Clim(). +- Change parameter 'memb_dim' to 'dat_dim', and the default value from 'member' to 'dat' in Corr(), RMS(), and RMSSS(). +- Allow RMS() and RMSSS() to have vector data input. +- Bugfix for Load() when start date and first lead time is not consistent. +- Improve Season() performance by using apply() when 'ncores' is not bigger than 1 # s2dv 0.0.1 (Release date: 2020-02-07) - The package is the advanced version of package 's2dverification', adopting the regime of package 'multiApply' for all the analytic functions. Most of the other functions for plotting and data retrieval in 's2dverification' are also preserved in this package. diff --git a/R/AMV.R b/R/AMV.R index 6657f6fe409602a6a37bdb22a4a2fd6ceec58e45..985444986e2cec5c58e8548428ce676f63f50683 100644 --- a/R/AMV.R +++ b/R/AMV.R @@ -80,10 +80,6 @@ #' lon <- seq(0, 360, 10) #' index_dcpp <- AMV(data = dcpp, data_lats = lat, data_lons = lon, type = 'dcpp', monini = 1) #' -#'@author Carlos Delgado-Torres, \email{carlos.delgado@bsc.es} -#'@author Roberto Bilbao, \email{roberto.bilbao@bsc.es} -#'@author Núria Pérez-Zanón, \email{nuria.perez@bsc.es} -#' #'@importFrom ClimProjDiags WeightedMean #'@import multiApply #'@export diff --git a/R/GMST.R b/R/GMST.R index 8f6f6e4acaa1149977a3595cf35ea39b3dd946be..c922eaec4ada4ba132f7a6793d52655f2dfbd551 100644 --- a/R/GMST.R +++ b/R/GMST.R @@ -105,10 +105,6 @@ #' data_lons = lon, type = 'dcpp', monini = 1, mask_sea_land = mask_sea_land, #' sea_value = sea_value) #' -#'@author Carlos Delgado-Torres, \email{carlos.delgado@bsc.es} -#'@author Roberto Bilbao, \email{roberto.bilbao@bsc.es} -#'@author Núria Pérez-Zanón, \email{nuria.perez@bsc.es} -#' #'@importFrom ClimProjDiags WeightedMean #'@import multiApply #'@export diff --git a/R/GSAT.R b/R/GSAT.R index b9d0f6f3de7f280a574b6979afd02f1c1f55042e..d76484320a9dd952f70115c94d7a24d28c0dd2e5 100644 --- a/R/GSAT.R +++ b/R/GSAT.R @@ -75,10 +75,6 @@ #' lon <- seq(0, 360, 10) #' index_dcpp <- GSAT(data = dcpp, data_lats = lat, data_lons = lon, type = 'dcpp', monini = 1) #' -#'@author Carlos Delgado-Torres, \email{carlos.delgado@bsc.es} -#'@author Núria Pérez-Zanón, \email{nuria.perez@bsc.es} -#'@author Roberto Bilbao, \email{roberto.bilbao@bsc.es} -#' #'@importFrom ClimProjDiags WeightedMean #'@import multiApply #'@export diff --git a/R/Persistence.R b/R/Persistence.R index 88e15d2375193ba5d3dd03edb174dc5b1c9fb7ae..e8865c2f2cd5dcf5ae1392963918029a8d6e4756 100644 --- a/R/Persistence.R +++ b/R/Persistence.R @@ -76,7 +76,6 @@ #'persist <- Persistence(obs1, dates = dates, start = 1961, end = 2005, ft_start = 1, #' nmemb = 40) #' -#'@author Deborah Verfaillie, \email{deborah.verfaillie@bsc.es} #'@import multiApply #'@export Persistence <- function(data, dates, time_dim = 'time', start, end, ft_start, diff --git a/R/RandomWalkTest.R b/R/RandomWalkTest.R index 0771331ca953b5199b95dcdd73e06fc2c41ce0ac..e818f57de0fe6e394d60bfbb7fdbccee9dc50946 100644 --- a/R/RandomWalkTest.R +++ b/R/RandomWalkTest.R @@ -36,9 +36,6 @@ #' skill_B <- abs(fcst_B - reference) #' RandomWalkTest(skill_A = skill_A, skill_B = skill_B, time_dim = 'sdate', ncores = 1) #' -#'@author Andrea Manrique \email{andrea.manrique@bsc.es} -#'@author Carlos Delgado-Torres \email{carlos.delgado@bsc.es} -#' #'@import multiApply #'@export RandomWalkTest <- function(skill_A, skill_B, time_dim = 'sdate', ncores = NULL){ diff --git a/R/SPOD.R b/R/SPOD.R index d939df79a8ecd67cb99fa450c68a18e8b77b5b0b..30527f136223cf57ce65d0c2f4495df0a4c8cada 100644 --- a/R/SPOD.R +++ b/R/SPOD.R @@ -78,10 +78,6 @@ #' lon <- seq(0, 360, 10) #' index_dcpp <- SPOD(data = dcpp, data_lats = lat, data_lons = lon, type = 'dcpp', monini = 1) #' -#'@author Carlos Delgado-Torres, \email{carlos.delgado@bsc.es} -#'@author Núria Pérez-Zanón, \email{nuria.perez@bsc.es} -#'@author Roberto Bilbao, \email{roberto.bilbao@bsc.es} -#' #'@importFrom ClimProjDiags WeightedMean CombineIndices #'@import multiApply #'@export diff --git a/R/TPI.R b/R/TPI.R index 6733bdd718432a59aec393fe129b5e87656785de..d5be6da57b742bcf55a5bfbe61c78c2d38e0fef0 100644 --- a/R/TPI.R +++ b/R/TPI.R @@ -77,10 +77,6 @@ #' lon = seq(0, 360, 10) #' index_dcpp = TPI(data = dcpp, data_lats = lat, data_lons = lon, type = 'dcpp', monini = 1) #' -#'@author Carlos Delgado-Torres, \email{carlos.delgado@bsc.es} -#'@author Núria Pérez-Zanón, \email{nuria.perez@bsc.es} -#'@author Roberto Bilbao, \email{roberto.bilbao@bsc.es} -#' #'@importFrom ClimProjDiags WeightedMean CombineIndices #'@import multiApply #'@export diff --git a/man/AMV.Rd b/man/AMV.Rd index 7cb7503a8d8f38c9d9738c9f368423218d3c29ca..5aa6d3012cec89094ea1231f7e70d61c078d450f 100644 --- a/man/AMV.Rd +++ b/man/AMV.Rd @@ -106,11 +106,4 @@ lon <- seq(0, 360, 10) index_dcpp <- AMV(data = dcpp, data_lats = lat, data_lons = lon, type = 'dcpp', monini = 1) } -\author{ -Carlos Delgado-Torres, \email{carlos.delgado@bsc.es} - -Roberto Bilbao, \email{roberto.bilbao@bsc.es} - -Núria Pérez-Zanón, \email{nuria.perez@bsc.es} -} diff --git a/man/GMST.Rd b/man/GMST.Rd index be2d479eb788603207305eb38808e3b8ed6d2f37..208ff75255f3fd15d87308b99be215131e55945e 100644 --- a/man/GMST.Rd +++ b/man/GMST.Rd @@ -134,11 +134,4 @@ index_dcpp <- GMST(data_tas = dcpp_tas, data_tos = dcpp_tos, data_lats = lat, sea_value = sea_value) } -\author{ -Carlos Delgado-Torres, \email{carlos.delgado@bsc.es} - -Roberto Bilbao, \email{roberto.bilbao@bsc.es} - -Núria Pérez-Zanón, \email{nuria.perez@bsc.es} -} diff --git a/man/GSAT.Rd b/man/GSAT.Rd index bb43cfb516cafe0064ee4f1d8a0cd38c0e388f42..9d3fbb65d61b9aa3d26edbd38a044432476ad7fa 100644 --- a/man/GSAT.Rd +++ b/man/GSAT.Rd @@ -101,11 +101,4 @@ lon <- seq(0, 360, 10) index_dcpp <- GSAT(data = dcpp, data_lats = lat, data_lons = lon, type = 'dcpp', monini = 1) } -\author{ -Carlos Delgado-Torres, \email{carlos.delgado@bsc.es} - -Núria Pérez-Zanón, \email{nuria.perez@bsc.es} - -Roberto Bilbao, \email{roberto.bilbao@bsc.es} -} diff --git a/man/Persistence.Rd b/man/Persistence.Rd index 4cbacf17c99367f42895258d861923db05953586..9514788411345b05e569b99098568bef2d1ae026 100644 --- a/man/Persistence.Rd +++ b/man/Persistence.Rd @@ -97,7 +97,4 @@ persist <- Persistence(obs1, dates = dates, start = 1961, end = 2005, ft_start = nmemb = 40) } -\author{ -Deborah Verfaillie, \email{deborah.verfaillie@bsc.es} -} diff --git a/man/RandomWalkTest.Rd b/man/RandomWalkTest.Rd index 29465179a26fd40758787270263ec72069192030..33b226fdd38740051d4a069c392c03252bbe2140 100644 --- a/man/RandomWalkTest.Rd +++ b/man/RandomWalkTest.Rd @@ -49,9 +49,4 @@ skill_B <- abs(fcst_B - reference) RandomWalkTest(skill_A = skill_A, skill_B = skill_B, time_dim = 'sdate', ncores = 1) } -\author{ -Andrea Manrique \email{andrea.manrique@bsc.es} - -Carlos Delgado-Torres \email{carlos.delgado@bsc.es} -} diff --git a/man/SPOD.Rd b/man/SPOD.Rd index 09621c793845835585e5c3073dba550b5c395211..cbbbf1abda9a47c52bc13751d8fc1136f7502c97 100644 --- a/man/SPOD.Rd +++ b/man/SPOD.Rd @@ -104,11 +104,4 @@ lon <- seq(0, 360, 10) index_dcpp <- SPOD(data = dcpp, data_lats = lat, data_lons = lon, type = 'dcpp', monini = 1) } -\author{ -Carlos Delgado-Torres, \email{carlos.delgado@bsc.es} - -Núria Pérez-Zanón, \email{nuria.perez@bsc.es} - -Roberto Bilbao, \email{roberto.bilbao@bsc.es} -} diff --git a/man/TPI.Rd b/man/TPI.Rd index d7938ffde4223c8231fddf5cc8f47f0f896e34b7..e0d62b1efbf293e0382462ee3f3fccc78f9e227b 100644 --- a/man/TPI.Rd +++ b/man/TPI.Rd @@ -103,11 +103,4 @@ lon = seq(0, 360, 10) index_dcpp = TPI(data = dcpp, data_lats = lat, data_lons = lon, type = 'dcpp', monini = 1) } -\author{ -Carlos Delgado-Torres, \email{carlos.delgado@bsc.es} - -Núria Pérez-Zanón, \email{nuria.perez@bsc.es} - -Roberto Bilbao, \email{roberto.bilbao@bsc.es} -}