R/water_LSEBclass.R

Defines functions writeRaster.waterLSEB print.waterLSEB plot.waterLSEB

Documented in plot.waterLSEB print.waterLSEB writeRaster.waterLSEB

#' Plot method for waterLSEB S3 class
#' @param x       waterLSEB object.
#' @param ...     further arguments passed to or from other methods. 
#' @author Guillermo Federico Olmedo
#' @export
#' @family LSEB objects related functions
#' @method plot waterLSEB
plot.waterLSEB <- function(x, ...){
  plot(x$EB[[1:4]])
}


#' Print method for waterLSEB S3 class
#' @param x        waterLSEB object.
#' @param ...      further arguments passed to or from other methods.
#' @author Guillermo Federico Olmedo
#' @export
#' @family LSEB objects related functions
#' @method print waterLSEB
print.waterLSEB <- function(x, ...){
  print(x$EB, ...)
  print(x$WeatherStation, ...)
  print(x$anchors, ...)
  print(x$anchors@data, ...)
  print(x$methods, ...)
}


#' writeRaster method for waterLSEB S3 class
#' @param x        waterLSEB object.
#' @param ...      additional parameters to pass to writeRaster()
#' @author  María Victoria Munafó
#' @export
#' @family LSEB objects related functions
#' @method writeRaster waterLSEB

writeRaster.waterLSEB <- function(x, ...){
  raster::writeRaster(x$EB, ...)
}

Try the water package in your browser

Any scripts or data that you put into this service are public.

water documentation built on April 25, 2018, 1:03 a.m.