R/convert_datatype.R

Defines functions convert_datatype

convert_datatype <- function(d) {
  switch(
    d,
    Byte = "INT1U",
    UInt16 = "INT2U",
    Int16 = "INT2S",
    UInt32 = "INT4U",
    Int32 = "INT4S",
    Float32 = "FLT4S",
    Float64 = "FLT8S",
    INT1U = "Byte",
    INT2U = "UInt16",
    INT2S = "Int16",
    INT4U = "UInt32",
    INT4S = "Int32",
    FLT4S = "Float32",
    FLT8S = "Float64"
  )
}

Try the sen2r package in your browser

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

sen2r documentation built on Nov. 10, 2023, 9:08 a.m.