cdms2.grid:FileRectGrid¶
-
FileRectGrid.
searchPredicate
(self, predicate, tag)¶ Apply a truth-valued predicate.
- Parameters
- predicate: (function)
- tag: (str/None)
node tag
- Returns
- ——-
- result: (list)
Return a list containing a single instance: [self] if the predicate is true and either tag is None or matches the object node tag. If the predicate returns false, return an empty list