mg_func_template_raster: mg_create_template_raster

Description Usage Arguments Value Examples

View source: R/mg_create_template_raster.R View source: R/hello.R

Description

Takes a data set with coordinates and creates a template raster with a specifies resolution and crs

Takes a data set with coordinates and creates a template raster with a specifies resolution and crs

Usage

1
2
3
mg_func_template_raster(df_col_x, df_col_y, resolution, crs_to_assign)

mg_func_template_raster(df_col_x, df_col_y, resolution, crs_to_assign)

Arguments

df_col_x

The column of the dataset with the x coordinate (should be numeric)

df_col_y

The column of the dataset with the x coordinate (should be numeric)

resolution

Resolution of the raster which is created (an integer, eg. 100 for 100x100 raster cell size)

crs_to_assign

Coordinate reference system to assign to the created raster (integer, eg. 25832 for UTM 32, 31468 for Gauss krueger)

Value

a list with two elements, first is a grid, second is a raster file

a list with two elements, first is a grid, second is a raster file

Examples

1
2
3
4
5
6
7
8
9
grid_project_area <- mg_func_template_raster(df_col_x = meta_projekt$ostwert_crs_25832,
df_col_y = meta_projekt$nordwert_crs_25832,
resolution = 200,
crs_to_assign = 25832)

grid_project_area <- mg_func_template_raster(df_col_x = meta_projekt$ostwert_crs_25832,
df_col_y = meta_projekt$nordwert_crs_25832,
resolution = 200,
crs_to_assign = 25832)

mghydro/LSHydroMG documentation built on Jan. 28, 2022, 3:31 p.m.