
Focal (stencil) op. radius is the halo in pixels; boundary is "nodata", the only policy: cells beyond the raster edge are NaN. Created by focal_map() and focal_kernel().
FocalNode.RdFocal (stencil) op. radius is the halo in pixels; boundary is
"nodata", the only policy: cells beyond the raster edge are NaN.
Created by focal_map() and focal_kernel().
Arguments
- id
Integer node id (assigned by
graph_add()).- parents
Integer ids of parent nodes (may be empty).
- grid
Output
GridSpecof this node.- role
Optional semantic role tag (e.g. "mask", set by
apply_mask()). Pure metadata: never read by the planner or executors; surfaced byplan_draw()andplan_view().- fn
Neighbourhood function (over the list of shifted arrays).
- radius
Halo radius in pixels.
- boundary
Boundary policy:
"nodata".- weights
Optional linear kernel, flattened row-major over (dy, dx), length (2*radius+1)^2. When present the op is the weighted sum and is differentiable wrt the weights.