FIMViz.jsAPI
    Preparing search index...

    Function maskGrid

    • Mask a grid by a polygon: pixels OUTSIDE the polygon become NaN (or inside, with invert). The footprint/bounds are unchanged. Restricts the point-in-polygon scan to the polygon's pixel bbox.

      Parameters

      • grid: RasterGrid
      • polygon: any[] | SpatialFilter

        a SpatialFilter, or a ring/multi-ring of {lat,lng}|[lat,lng]

      • Optionalopts: { invert?: boolean } = {}

      Returns RasterGrid