Function to format a prepared GLOBIOM netCDF file for use in Hibiiscus projections.
Usage
prep_globiom(
file_path,
out_as_rast = TRUE,
incl_pixel_area = TRUE,
vars_to_include = NULL,
vars_to_ignore = NULL
)Arguments
- file_path
A filepath (
character) pointing to a GLOBIOM output in netCDF format.- out_as_rast
A
logicaldenoting if the output type should be a (list) ofSpatRaster, or astarsobject (default:TRUE, i.e. returnsSpatRaster).- incl_pixel_area
A
logicaldenoting if the output should include the 'pixel_area_ha' variable (Default:TRUE).- vars_to_include
A
charactervector of variables to be extracted. IfNULL, all variables will be extracted.- vars_to_ignore
A
charactervector of variables to be ignored IfNULL, all variables will be extracted - unless vars_to_include is notNULL.