Learn R Programming

stars (version 0.1-1)

read_stars_meta: read raster/array metadata from file(s) or connection

Description

read raster/array metadata from file(s) or connection

Usage

read_stars_meta(.x, ..., options = character(0), driver = character(0),
  sub = TRUE, NA_value = NA_real_)

Arguments

.x

if character, name of file(s) to read; if list: list with arrays

...

ignored

options

character; opening options

driver

character; driver to use for opening file

sub

integer or logical; sub-datasets to be read

NA_value

numeric value to be used for conversion into NA values; by default this is read from the input file

Value

if .x has length 1 and no subdatasets, object of class stars_meta, otherwise a list of stars_meta objects, or a list of lists of those (with first level nesting: elements of .x, second level: subdatasets)

Examples

Run this code
# NOT RUN {
tif = system.file("tif/L7_ETMs.tif", package = "stars")
x = read_stars(tif)
# x1 = read_stars(nv, options = "OVERVIEW_LEVEL=1")
# }

Run the code above in your browser using DataLab