R/get_nc_version.R

Defines functions get_nc_version

Documented in get_nc_version

#' Designed for the CM SAF R Toolbox.
#'
#' This function checks the nc version.
#' 
#' @param nc34 (numeric)
#' @export
get_nc_version <- function(nc34) {
  if (nc34 == 4) {
    nc_format <- TRUE
    compression <- 4
  } else {
    nc_format <- FALSE
    compression <- NA
  }

  return(list(force_v4 = nc_format, compression = compression))
}

Try the cmsafops package in your browser

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

cmsafops documentation built on May 29, 2024, 11:10 a.m.