Sets the predicate that will be applied to variables to determine whether their values should be written in
addition to their metadata. The values will be contained within a
element.
By default, the predicate will be
#writeMetadataVariablesPredicate. Their could be data loss if the values
of metadata variables aren't included in the NcML, so we recommend that you always use it, possibly as part of a
compound predicate. For example, suppose you wanted to print the values of metadata and coordinate
variables. Just do:
Predicate compoundPred = Predicates.or(
writeMetadataVariablesPredicate,
writeCoordinateVariablesPredicate);
ncmlWriter.setWriteVariablesPredicate(compoundPred);