MergingTiles: A function that combines the results of parallel cutting into...

View source: R/MergingTiles.R

MergingTilesR Documentation

A function that combines the results of parallel cutting into a single file

Description

A function that combines the results of parallel cutting into a single file

Usage

MergingTiles(df_dem, f.i.d, f.iblock, n.block, f.o.d, f.suffix)

Arguments

df_dem

: The predicted source file before merging

f.i.d

: Enter the absolute path to the file

f.iblock

: The filename prefix of the resulting result

n.block

: The number of blocks cut is calculated in parallel

f.o.d

: The absolute output path of the file

f.suffix

: The suffix for the output of the file

Value

1

Examples


# you must have a file, which is name "myres"
# Merging files, for example:
# f.input.directory <- c("e:/test/")
# f.input.iblock <- c("sics030_")
# n.block <- 100
# f.output.directory <- c("e:/test/myoutput")
# f.output.suffix <- c("sics030_together.tif")
# Naming rules: file.name.directory + file.name.iblock + ".tif"

rmap_dem <- raster("E:/test/dem.tif")
spdf_dem <- as(rmap_dem,"SpatialPointsDataFrame")
df_dem <- as.data.frame(spdf_dem)

# mergeing results together
n.block <- 100
f.i.d <- c("E:/test/mapping/")
f.o.d <- c("E:/test/mapping_merge/")
f.iblock <- c("mlr.ak05.")
f.suffix <- c("mlr.ak05.tif")
MergingTiles(df_dem, f.i.d, f.iblock, n.block, f.o.d, f.suffix)



ParallelDSM documentation built on Nov. 16, 2022, 9:05 a.m.