cf.AncillaryVariables.hasprop

AncillaryVariables.hasprop(prop)[source]

For each field, return True if a CF property exists, otherise False.

fl.hasprop(prop) is equivalent to cf.List(f.hasprop(prop) for f in fl).

Parameters :
prop : str

The name of the property.

Returns :
out : cf.List

True or False for each field.

Previous topic

cf.AncillaryVariables.hasattr

Next topic

cf.AncillaryVariables.identity

This Page