Learn R Programming

vectra (version 0.6.2)

vec_read_time_slice: Read a single time slice from a .vec time cube

Description

Performs a linear scan of the index for tiles with time == time and decodes the matching window. The lookup is O(n_tiles) per call — Phase 6's optimized hash-map lookup is a follow-up.

Usage

vec_read_time_slice(r, time, band = 1L, level = 0L, cols = NULL, rows = NULL)

Value

A numeric matrix.

Arguments

r

A vectra_raster from vec_open_raster().

time

Time value to match (numeric/integer).

band

Band index (1-based).

level

Overview level. Default 0.

cols, rows

1-based ranges, same as vec_read_window.