create a template as a yaml file for supplying code definition metadata for spatial rasters if raster values are categorical
write_raster_factors.Rd
write_raster_factors
creates a template as a yaml file
for supplying code definition metadata for spatial rasters if raster values
are categorical.
Arguments
- raster_file
(character) Quoted full path to raster file.
- raster_entity
(character) Unquoted name of the raster object in the R environment.
- value_name
(character) Quoted name describing the raster value category (category, code, level would be common examples)
- overwrite
(logical) Overwrite an existing template if one exists.
Value
A template for providing code definition metadata as a yaml file with the file name of the raster + "_factors.yaml" (created in the working directory).
Details
Generate a yaml template file that supports the ability to provide
a definition for each level or categorical type. The resulting yaml file is
written with the name of the raster file + "_factors". The
create_spatialRaster
function will search for this file when creating
a EML spatialRaster entity.