Return a built-in list describing whether each element has a CF property.
Parameters : |
|
---|---|
Returns : |
|
Examples
>>> len(fl)
2
>>> fl.hasprop('foo')
[False, True]
Warning: Recognised CF propeties (such as ‘long_name’) may be interrogated with the built-in hasattr, but with a different result:
>>> getattr(fl, 'standard_name', None)
['air_tmperature', None]
>>> hasattr(fl, 'standard_name')
True
>>> fl.hasprop('standard_name')
[True, False]