sl.spatialfilter: Apply Spatial Filter

sl.spatialfilterR Documentation

Apply Spatial Filter

Description

Apply a spatial filter to a numerical field.

Usage

sl.spatialfilter(num, sf.gw.res)

Arguments

num

a vector of length N specifying the unfiltered numerical field.

sf.gw.res

a list (as returned by sl.spatialfilter.getweights) with the following three elements: src_address: an integer vector of length M giving the indices of the source points. dst_address: an integer vector of length M giving the indices of the destination points corresponding to the source points. filter_weights: an integer vector of length M giving the filter weights.

Details

Some details are described in sl.spatialfilter.getweights.

Value

A vector of length N giving the filtered numerical field.

Note

The filter information generated by sl.spatialfilter.getweights has (not accidentally) the same format as used by the Climate Data Operators (CDO) and can be written to a NetCDF file that can be used with CDO to filter large amounts of data much faster than with spheRlab (using this function).

Author(s)

Helge Goessling

See Also

sl.spatialfilter.getweights

Examples

## To be provided ...

helgegoessling/spheRlab documentation built on April 8, 2024, 8:34 a.m.