Return a name for the variable.
Returns the the first found of:
Note that f.name(identity=True) is equivalent to f.identity().
Parameters : |
identity : bool, optional |
---|
sdef If True then only return ....
Returns : |
|
---|
See also
Examples
>>> f.standard_name = 'air_temperature'
>>> f.long_name = 'temperature of the air'
>>> f.ncvar = 'tas'
>>> f.name()
'air_temperature'
>>> del f.standard_name
>>> f.name()
'long_name:temperature of the air'
>>> del f.long_name
>>> f.name()
'ncvar:tas'
>>> del f.ncvar
>>> f.name()
None
>>> f.name('no_name')
'no_name'
>>> f.standard_name = 'air_temperature'
>>> f.name('no_name')
'air_temperature'