Return a built-in list of a CF properties from each element.
Parameters : |
|
---|---|
Returns : |
|
Raises : |
|
Examples
>>> len(fl)
2
>>> fl.getprop('foo')
['bar', 'bar']
>>> fl.delprop('foo')
>>> fl.getprop('foo', 0.0)
[0.0, 0.0]
Note that recognised CF propeties (such as ‘long_name’) may be retrieved directly:
>>> fl.standard_name
['air_temperature', 'air_temperature']
>>> getattr(fl, 'long_name', 'default')
['default', 'default']