create_dimensions: Create single dimension, or dimensions object

View source: R/dimensions.R

create_dimensionsR Documentation

Create single dimension, or dimensions object

Description

Create single dimension, or dimensions object

Usage

create_dimension(
  from = 1,
  to,
  offset = NA_real_,
  delta = NA_real_,
  refsys = NA_character_,
  point = NA,
  values = NULL,
  is_raster = FALSE
)

create_dimensions(lst, raster = NULL)

get_raster(
  affine = rep(0, 2),
  dimensions = c("x", "y"),
  curvilinear = FALSE,
  blocksizes = NULL
)

Arguments

from

integer; start index

to

integer; end index

offset

numeric; offset, start of the cell or period, of a regular dimension

delta

numeric; step size (cell size, time period) of a regular dimension

refsys

; reference system for the dimension

point

logical; indicator whether the dimension refers to zero-sized dimension values ('TRUE') or to intervals the size of e.g. a cell or time period ('FALSE')

values

; vector or list with (discrete or potentially irregular) dimension values

is_raster

logical; indicate whether a dimension refers to one of the spatial raster dimensions

lst

list with elements of class 'dimension'

raster

object of class "raster" or 'NULL'

affine

numeric; length 2 vector with affine parameters

dimensions

character; length 2 vector with raster dimension names

curvilinear

logical; indicate with 'TRUE' when a raster refers to a curvilinear raster

blocksizes

numeric; length 2 vector with block sizes, used to speed up GDAL I/O

Value

'create_dimension()' returns an object of class 'dimension'

'create_dimensions()' returns a list object of class 'dimensions'

'get_raster()' returns a list object of class 'stars_raster'


stars documentation built on Nov. 30, 2026, 5:08 p.m.