cdms2.dataset:CdmsFile

CdmsFile.searchPredicate(predicate, tag)[source]

Apply a truth-valued predicate.

Parameters
predicatefunction use as predicate
tagnode tag.
Returns
List containing a single instance [self] if the predicate is true and either
tag is None or matches the object node tag.
Empty list If the predicate returns false.