convert_rastdtype: convert data type between 'raster' and 'gdal' conventions

Description Usage Arguments Value Author(s) Examples

View source: R/convert_rast_dtype.R

Description

FUNCTION_DESCRIPTION

Usage

1
convert_rastdtype(dtype_string, type)

Arguments

dtype_string

character data type string (e.g., Int16, ecc)

type

character - either "gdal" or "raster"

Value

tibble containing the representation of the data type both for gdal and raster

Author(s)

Lorenzo Busetto, phD (2017) [email protected]

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
 in_dtype <- "INT1U"
 convert_rastdtype(in_dtype, "raster")

 in_dtype <- "Float64"
 convert_rastdtype(in_dtype, "gdal")

 in_dtype <- "Float123"
 convert_rastdtype(in_dtype, "gdal")

## End(Not run)

IREA-CNR-MI/sprawl documentation built on Aug. 6, 2017, 12:56 p.m.