Skip to content

Commit 4758513

Browse files
committed
Note that generator_fun captures outer-scope variables (xmin, ymax, cellsize_m, nrows, ncols)
1 parent 5b2f017 commit 4758513

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

R/stream_grid_raster.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ stream_grid_raster_terra <- function(
116116
# terra::mask() is also disk-based and chunked.
117117

118118
# Generation function
119+
# Note: Captures xmin, ymax, cellsize_m, nrows, ncols from outer scope
119120
generator_fun <- function(xy) {
120121
# xy is a matrix/vector of coordinates [x, y]
121122
# For large chunks, it's a matrix

0 commit comments

Comments
 (0)