Skip to contents

Converting data frame containing regional grids to stars

Usage

grid_as_stars(
  x,
  coords = NULL,
  crs = sf::NA_crs_,
  grid_column_name = NULL,
  ...
)

Arguments

x

A data frame or a grid.

coords

The column names or indices that form the cube dimensions.

crs

Coordinate reference system.

grid_column_name

A scalar character.

...

Passed on to stars::st_as_stars().

Value

A stars object.