Nothing
#' Convert a CF Standard Name to/from a GCMD Science Keyword
#'
#' @export
#' @param udunits character; A UDUNITS character string
#' https://www.unidata.ucar.edu/software/udunits/
#' @param ucum character; A UCUM character string
#' https://ucum.org/ucum.html
#' @param url Base URL of the ERDDAP server. See [eurl()] for
#' more information
#' @param ... Curl options passed on to [crul::verb-GET]
#' @examples \dontrun{
#' convert_units(udunits = "degree_C meter-1")
#' convert_units(ucum = "Cel.m-1")
#' }
convert_units <- function(udunits = NULL, ucum = NULL, url = eurl(), ...) {
check1notboth(udunits, ucum)
args <- rc(list(UDUNITS = udunits, UCUM = ucum))
cli <- crul::HttpClient$new(url = file.path(pu(url), 'convert/units.txt'),
opts = list(...))
res <- cli$get(query = args)
res$raise_for_status()
res$parse("UTF-8")
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.