R/mask_clouds.R

Defines functions gd_mask_clouds

Documented in gd_mask_clouds

#' Mask Clouds or Apply Fill Mask
#'
#' Apply the cloud/shadow mask if supported, otherwise apply the fill mask.
#'
#' @param x a `geedim.mask.MaskedImage`
#'
#' @return a `geedim.mask.MaskedImage`
#' @export
gd_mask_clouds <- function(x) {
  if (!inherits(x, 'geedim.mask.MaskedImage')) {
    stop("`x` should be a geedim.mask.MaskedImage")
  }
  x$mask_clouds()
}

Try the rgeedim package in your browser

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

rgeedim documentation built on May 29, 2024, 8:36 a.m.