Skip to content

Commit

Permalink
Doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedia committed May 9, 2017
1 parent e1c894e commit 413ff08
Show file tree
Hide file tree
Showing 24 changed files with 28 additions and 190 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export(prinComp)
export(redim)
export(rescaleGrid)
export(selectPar.pplyFun)
export(subsetDecadalForecast)
export(subsetDimension)
export(subsetGrid)
export(subsetMembers)
Expand Down Expand Up @@ -77,5 +76,6 @@ importFrom(stats,na.exclude)
importFrom(stats,na.omit)
importFrom(stats,qnorm)
importFrom(stats,sd)
importFrom(utils,globalVariables)
importFrom(utils,packageDescription)
importFrom(utils,tail)
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ transformeR 0.0.10
=================

* Bug fix in internal function for reference date retrieval
* Package size reduced (CRAN compliant):
* Deleted several unused built-in datasets
* EOBS tp and tas DJF datasets trimmed to the 5-year period 1996-2000
* Other minor changes and documentation updates


Expand Down
4 changes: 4 additions & 0 deletions R/onAttach.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@
}
# End

#' @importFrom utils globalVariables

if (getRversion() >= "3.1.0") utils::globalVariables(c("node.list", "l1"))

11 changes: 6 additions & 5 deletions R/plotClimatology.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
#' @author J. Bedia
#' @seealso \code{\link{climatology}}. See \code{\link[sp]{spplot}} in package \pkg{sp} for further information on
#' plotting capabilities and options
#' @examples \donttest{
#' @examples
#' data(tasmax_forecast)
#' # Climatology is computed:
#' clim <- climatology(tasmax_forecast, by.member = TRUE)
Expand Down Expand Up @@ -110,9 +110,9 @@
#' names.attr = c("DEC","JAN","FEB"),
#' main = "Mean PSL climatology 1991-2010",
#' scales = list(draw = TRUE))
#' }
#'


plotClimatology <- function(grid, backdrop.theme = "none", ...) {
arg.list <- list(...)
bt <- match.arg(backdrop.theme, choices = c("none", "coastline", "countries"))
Expand Down Expand Up @@ -153,14 +153,15 @@ plotClimatology <- function(grid, backdrop.theme = "none", ...) {
#'@keywords internal
#'@export
#'@author J. Bedia
#'@examples \donttest{
#'@importFrom sp GridTopology SpatialGridDataFrame
#'@examples
#' data(tasmax_forecast)
#' # Climatology is computed:
#' clim <- climatology(tasmax_forecast, by.member = TRUE)
#' sgdf <- clim2sgdf(clim)
#' class(sgdf)
#' spplot(sgdf)
#' }



clim2sgdf <- function(clim) {
grid <- clim
Expand Down
58 changes: 4 additions & 54 deletions R/rdas.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,58 +69,7 @@ NULL
#' backdrop.theme = "coastline")
NULL

#' @title Station daily precipitation dataset
#' @description Station data from the VALUE_ECA_86_v2 dataset containing daily precipitation for 82 stations in Europe.
#' @format Station data
#' @name VALUE_tp
#' @docType data
#' @source Subset of VALUE station data. Full dataset is accessible
#' for download in \url{http://meteo.unican.es/work/downscaler/data/VALUE_ECA_86_v2.tar.gz}.
NULL

#' @title Station mean temperature dataset
#' @description Station data from the VALUE_ECA_86_v2 dataset containing daily mean temperature for 82 stations in Europe.
#' @format Station data
#' @name VALUE_tas
#' @docType data
#' @source Subset of VALUE station data. Full dataset is accessible
#' for download in \url{http://meteo.unican.es/work/downscaler/data/VALUE_ECA_86_v2.tar.gz}.
NULL


#' @title Station daily precipitation data
#' @description Station data from the VALUE_ECA_86_v2 dataset containing daily precipitation for the Igueldo-SanSebastian station.
#' @format Station data
#' @name VALUE_Igueldo_tp
#' @docType data
#' @source Subset of VALUE station data. Full dataset is accessible
#' for download in \url{http://meteo.unican.es/work/downscaler/data/VALUE_ECA_86_v2.tar.gz}.
NULL

#' @title Station mean temperature data
#' @description Station data from the VALUE_ECA_86_v2 dataset containing daily mean temperature for the Igueldo-SanSebastian station.
#' @format Station data
#' @name VALUE_Igueldo_tas
#' @docType data
#' @keywords VALUE station temperature Igueldo
#' @source Subset of VALUE station data. Full dataset is accessible
#' for download in \url{http://meteo.unican.es/work/downscaler/data/VALUE_ECA_86_v2.tar.gz}.
NULL

#' @title Decada forecast example grid
#' @description Grid of decadal forecast data from the SPECS_GFDL_decadal dataset containing monthly temperature for the Iberian Peninsula.
#' @format Grid data
#' @name tas_decadalForecast
#' @docType data
#' @keywords SPECS temperature decadal forecast
#' @source Subset of the SPECS_GFDL_decadal dataset. This data is accessible
#' for loading in the \strong{The User Data Gateway (UDG)}, which is the one stop shop for
#' climate data access maintained by the Santander MetGroup.
#' The UDG builds on the THREDDS Access Portal (UDG-TAP) which is the entry point for
#' authentication and data access (more info in \url{https://meteo.unican.es/trac/wiki/udg}).
NULL

#' @title Grid containing E-OBS daily data of mean temperature for the Iberian Peninsula (DJF, 1991-2000).
#' @title Grid containing E-OBS daily data of mean temperature for the Iberian Peninsula (DJF, 1998-2000).
#' @description EOBS_Iberia_tas is a grid object returned by \code{loadECOMS} from package \pkg{loadeR.ECOMS}
#' @format A grid
#' @name EOBS_Iberia_tas
Expand All @@ -134,7 +83,8 @@ NULL
#' backdrop.theme = "countries", scales = list(draw = TRUE))
NULL

#' @title Grid containing E-OBS daily data of precipitation for the Iberian Peninsula (DJF, 1991-2000).

#' @title Grid containing E-OBS daily data of precipitation for the Iberian Peninsula (DJF, 1998-2000).
#' @description EOBS_Iberia_tp is a grid object returned by \code{loadECOMS} from package \pkg{loadeR.ECOMS}
#' @format A grid
#' @name EOBS_Iberia_tp
Expand All @@ -149,7 +99,7 @@ NULL
#' aggr.y = list(FUN = sum))
#' plotClimatology(climatology(total.precip.annual),
#' backdrop.theme = "countries", scales = list(draw = TRUE),
#' main = "Mean Total DJF precip (mm) 1991-2000")
#' main = "Mean Total DJF precip (mm) 1998-2000")

NULL

Expand Down
1 change: 1 addition & 0 deletions R/rescaleGrid.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#' @importFrom abind abind asub
#' @importFrom stats na.omit
#' @return A rescaled grid
#' @author J. Bedia
#' @export

rescaleGrid <- function(grid,
Expand Down
22 changes: 2 additions & 20 deletions R/subsetDecadalForecast.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,8 @@
#' @return A grid object with an additional dimension corresponding to the selected lead years.
#' @author M. Iturbide
#' @importFrom abind abind
#' @export
#' @examples \dontrun{
#' latLim <- c(35,45)
#' lonLim <- c(-10,2)
#' season <- 3:5
#' period <- 1981:1982
#' loginUDG(username = "myuser", password = "mypassword") #type help(loginUDG)
#' tas_decadalForecast <- loadDecadalForecast(
#' dataset = "http://www.meteo.unican.es/tds5/dodsC/specs/gfdl_specs_decadal.ncml",
#' latLim = latLim,
#' lonLim = lonLim,
#' var = "tas",
#' dictionary = F,
#' years = period,
#' season = season)
#'
#' data(tas_decadalForecast)
#' # data corresponding to the initialitation of the two years before
#' subsetDecadalForecast(tasDECA, ly = c(1,2))
#' }
#' @keywords internal


subsetDecadalForecast <- function(data, ly = c(1,2)){
init <- data$InitializationDates
Expand Down
Binary file modified data/EOBS_Iberia_tas.rda
Binary file not shown.
Binary file modified data/EOBS_Iberia_tp.rda
Binary file not shown.
Binary file removed data/VALUE_Igueldo_tas.rda
Binary file not shown.
Binary file removed data/VALUE_Igueldo_tp.rda
Binary file not shown.
Binary file removed data/VALUE_tas.rda
Binary file not shown.
Binary file removed data/VALUE_tp.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion man/EOBS_Iberia_tas.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/EOBS_Iberia_tp.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 0 additions & 18 deletions man/VALUE_Igueldo_tas.Rd

This file was deleted.

14 changes: 0 additions & 14 deletions man/VALUE_Igueldo_tp.Rd

This file was deleted.

14 changes: 0 additions & 14 deletions man/VALUE_tas.Rd

This file was deleted.

14 changes: 0 additions & 14 deletions man/VALUE_tp.Rd

This file was deleted.

3 changes: 0 additions & 3 deletions man/clim2sgdf.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/plotClimatology.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/rescaleGrid.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 1 addition & 21 deletions man/subsetDecadalForecast.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 0 additions & 21 deletions man/tas_decadalForecast.Rd

This file was deleted.

0 comments on commit 413ff08

Please sign in to comment.