To take a sin of a datacube, we now need p$sin(dc), rather than sin(dc).We can get this with
Math.ProcessNode = function(x, ..., p = openeo::processes()) {
if (!.Generic %in% names(p))
stop(paste(.Generic, "is not an available process")
p$[[.Generic]](x)
}
this would unlock the whole Math group, see ?Math:
To take a
sin
of a datacube, we now needp$sin(dc)
, rather thansin(dc)
.We can get this withthis would unlock the whole
Math
group, see?Math
:The
Ops
group,could be implemented similarly, but needs a translation from the operator to the process:
Which would give us the ability to write things like
sin(3 * dc1 / dc2)
and so on.I discussed with @hurielreichel today to do this in
tidyopeneo
, but I don't see why it doesn't fit (also?) here?