Processes Corine Land Cover (CLC) data for environmental modeling purposes.
The function calculates the percentage coverage of CLC per grid cell. It
estimate the percent coverage at the 3 CLC levels, and cross-walk for
EUNIS_19
and SynHab
habitat types. Similarly, the function estimates the
most common class per grid cell (3 CLC levels, EUNIS, and SynHab habitat
types) and prepares reference grid for models. The function optionally plots
% coverage maps.
Arguments
- EnvFile
String specifying the path to the environment file containing necessary paths and configurations.
- FromHPC
Logical indicating whether the processing is being done on a High-Performance Computing (HPC) environment. Defaults to
TRUE
.- MinLandPerc
A numeric value indicating the minimum percentage of land per grid cell to be used in the reference grid cell. Defaults to 15.
- PlotCLC
Logical indicating whether to plot the percentage coverage of different levels of CLC and custom habitat types. Defaults to
TRUE
.
Value
The function does not return a value but produces side effects such as saving processed data and plots to specified directories.
Details
The function reads the following environment variable:
DP_R_Grid
(ifFromHPC = TRUE
) orDP_R_Grid_Local
(ifFromHPC = FALSE
): Path for saving the processed CLC data.DP_R_Grid_Ref
(ifFromHPC = TRUE
) orDP_R_Grid_Ref_Local
(ifFromHPC = FALSE
). The function reads the content ofGrid_10_sf.RData
andGrid_10_Raster.RData
files from this path.DP_R_EUBound_sf
(ifFromHPC
=TRUE
) orDP_R_EUBound_sf_Local
(ifFromHPC
=FALSE
): path for theRData
file containing the country boundaries (sf
object).DP_R_CLC
(ifFromHPC
=TRUE
) orDP_R_CLC_Local
(ifFromHPC
=FALSE
): directory where the outputs of CLC data processing are processed.DP_R_CLC_CW
(ifFromHPC
=TRUE
) orDP_R_CLC_CW_Local
(ifFromHPC
=FALSE
): path for thecrossWalk.txt
file containing custom cross-walk between CLC values and their corresponding values for three levels of CLC andEUNIS_19
&SynHab
habitat types.DP_R_CLC_tif
(ifFromHPC
=TRUE
) orDP_R_CLC_tif_Local
(ifFromHPC
=FALSE
): path for the input CLC.tif
file.