public class ExpressionFilter extends java.lang.Object implements LocationFilter
ExpressionFilter
class detects locations
whose data variable values satisfy a mathematical expression. If the
expression evaluates to true at the given location, the filter returns
true, otherwise it returns false.cwmath
Constructor and Description |
---|
ExpressionFilter(EarthDataReader reader,
java.lang.String expression)
Creates a new filter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
useLocation(DataLocation loc)
Determines if a data location should be used in the context of
some computation.
|
public ExpressionFilter(EarthDataReader reader, java.lang.String expression)
reader
- the reader to use for data variables.expression
- the mask expression. Variables names in
the expression must have corresponding grids in the reader.public boolean useLocation(DataLocation loc)
LocationFilter
useLocation
in interface LocationFilter
loc
- the location to determine for use.