R/abstraction.default.R

Defines functions abstraction.default

Documented in abstraction.default

abstraction.default<-function(rainfall,abstractionParams=list(canopyAbstraction=NULL,surfaceAbstraction=NULL))
{
   if(missing(rainfall)) {stop('rainfall is missing with no default!')}
   if(is.null(abstractionParams$canopyAbstraction)){abstractionParams$canopyAbstraction<-0}
   if(is.null(abstractionParams$surfaceAbstraction)){abstractionParams$surfaceAbstraction<-0}
   result<-list()
   operation<-abstraction.base(rainfall,abstractionParams)
   result$operation<-operation
   result$call<-match.call()
   class(result)<-"abstraction"
   return(result)
}

Try the RHMS package in your browser

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

RHMS documentation built on Sept. 27, 2021, 5:06 p.m.