raster and gdal conventionsR/convert_rast_dtype.R
convert_rastdtype.RdFUNCTION_DESCRIPTION
convert_rastdtype(dtype_string, type)
| dtype_string |
|
|---|---|
| type |
|
tibble containing the representation of the data type both for gdal
and raster
in_dtype <- "INT1U" convert_rastdtype(in_dtype, "raster")#> # A tibble: 1 x 2 #> gdal raster #> <chr> <chr> #> 1 Byte INT1Uin_dtype <- "Float64" convert_rastdtype(in_dtype, "gdal")#> # A tibble: 1 x 2 #> gdal raster #> <chr> <chr> #> 1 Float64 FLT8S