cf.Field.flag_values

Field.flag_values

The flag_values CF property.

Provides a list of the flag values. Use in conjunction with flag_meanings. See http://cfconventions.org/latest.html for details.

Stored as a 1-d numpy array but may be set as any array-like object.

Examples:

>>> f.flag_values = ['a', 'b', 'c']
>>> f.flag_values
array(['a', 'b', 'c'], dtype='|S1')
>>> f.flag_values = numpy.arange(4)
>>> f.flag_values
array([1, 2, 3, 4])
>>> del f.flag_values
>>> f.set_property('flag_values', 1)
>>> f.get_property('flag_values')
array([1])
>>> f.del_property('flag_values')