catalog_reshape

0th

Percentile

Reshape (retile) a catalog

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

Aliases
  • catalog_reshape
Examples
# 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_")
# }
Documentation reproduced from package lidR, version 1.4.2, License: GPL-3

Community examples

Looks like there are no examples yet.