View source: R/mosaic_in_chunks.R
mosaic_in_chunks | R Documentation |
Mosaic raster tiles into chunks using arcmap MosaicToNewRaster and import
mosaic_in_chunks( basedir, odir, in_file_type, idx = "", chunk_size = NULL, out_file_type = ".tif", pixel_type = "32_BIT_FLOAT", cellsize = "", number_of_bands = 1, mosaic_method = "MEAN", mosaic_colormap_mode = "FIRST" )
basedir |
Character String. Path to input files |
odir |
Character String. Path to output directory (Will be created if it doesnt exist) |
in_file_type |
Character String. File identifier for input data (e.g. ".tif" / "avg.tif") |
idx |
Character String. String to append to output mosaics |
chunk_size |
Number of files per chunk (defaults to all) |
out_file_type |
Character String. Output file type e.g. ".tif" (default) see MosaictoNewRaster |
pixel_type |
default: |
cellsize |
default: |
number_of_bands |
default: |
mosaic_method |
default: |
mosaic_colormap_mode |
default: |
Mosaics files in basedir
using mosaic to new raster functionality in arcmap
Tristan R.H. Goodbody
## Not run: #--- define path of ARCGIS python on your PC ---# arcpy3_dir <- 'C:/Program Files/ArcGIS/Pro/bin/Python' #--- specify location of python for reticulate ---# use_condaenv(condaenv = file.path(arcpy3_dir, 'envs', 'arcgispro-py3'), conda = file.path(arcpy3_dir, 'Scripts' ,'conda.exe'), required = TRUE) arcpy <- reticulate::import("arcpy") mosaic_in_chunks(basedir = "F:/_2021_SSCALS/03_raster/dtm", odir = "F:/_2021_SSCALS/03_raster/dtm/mosaics", in_file_type = ".bil", idx = "dtm", chunk_size = 1000, out_file_type = ".tif") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.