R/listProductGroups.R

Defines functions laads_product_groups

Documented in laads_product_groups

#' Available product groups for a given instrument
#'
#' @param instrument character, the instrument short name as given by \code{laads_satellite_instruments()}.
#'
#' @return A data.frame (tibble) with the Name and Description of available product groups
#' @export
#'
#' @examples
#' \dontrun{
#' laads_product_groups()
#' }
laads_product_groups <- function(instrument = "AM1M"){
  laads_query_check(query_par = list(instrument = instrument))

  temp <- laads_get(name_service = "listProductGroups",
                    query_par = list(instrument = instrument))

  # check message
  laads_check(temp)
  # done!
  laads_parse(temp)
}
masalmon/laads documentation built on May 21, 2019, 12:40 p.m.