nav_from_bb: Generate the navigation elements required to subset an ncdf4...

Description Usage Arguments Value

Description

Generate the navigation elements required to subset an ncdf4 object. Returns a list of start indices and count and an adjusted bounding box

Usage

1
nav_from_bb(r, bb, flip = "")

Arguments

r

raster object

bb

a 4 element vector describing the bounding box [left, right, bottom, top]

flip

character either 'x', 'y' or 'xy' to flip the orientation

Value

a 3 element vector of start [ix,iy], count, [nx, ny], and an adjusted bb [left, right, bottom, top] and ext (extent) same as bb


btupper/spnc documentation built on May 13, 2019, 8:44 a.m.