lidR (version 1.5.0)

catalog_reshape: Reshape (retile) a catalog

Description

This function splits or merges files to reshape the original catalog files (.las or .laz) into smaller or larger files. The new files are written in a dedicated folder. The function first displays the pattern of the new tiling and then asks the user to validate the command.

Usage

catalog_reshape(ctg, size, path, prefix, ext = c("las", "laz"))

Arguments

ctg

A LAScatalog object

size

scalar. The size of the new tiles.

path

string. The folder where the new files should be saved.

prefix

character. The initial part of the name of the written files.

ext

character. The format of the written files. Can be ".las" or ".laz".

Value

A new catalog object

See Also

catalog

Examples

Run this code
# NOT RUN {
ctg = catalog("path/to/catalog")

# Create a new set of .las files 500 by 500 wide in the folder
# path/to/new/catalog/ and iteratively named Forest_1.las, Forest_2.las
# Forest_3.las, and so on.
newctg = catalog_reshape(ctg, 500, "path/to/new/catalog", "Forest_")
# }

Run the code above in your browser using DataCamp Workspace