50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


sits (version 1.1.0)

.raster_crop: Raster package internal crop raster function

Description

Raster package internal crop raster function

Usage

.raster_crop(
  r_obj,
  file,
  format,
  data_type,
  gdal_options,
  overwrite,
  block,
  missing_value = NA
)

Value

Subset of a raster object as defined by either block or bbox parameters

Arguments

r_obj

Raster package object to be written

file

File name to save cropped raster.

format

GDAL file format string (e.g. GTiff)

data_type

sits internal raster data type. One of "INT1U", "INT2U", "INT2S", "INT4U", "INT4S", "FLT4S", "FLT8S".

gdal_options

GDAL creation option string (e.g. COMPRESS=LZW)

overwrite

logical indicating if file can be overwritten

block

numeric vector with names "first_col", "ncols", "first_row", "nrows".

missing_value

A integer with image's missing value

Author

Rolf Simoes, rolf.simoes@inpe.br