cfdm.Datum.del_parameter¶
-
Datum.
del_parameter
(parameter, default=ValueError())[source]¶ Delete a parameter.
New in version (cfdm): 1.7.0
See also
- Parameters
- Returns
The removed parameter value.
Examples
>>> f = cfdm.Datum() >>> f.set_parameter('earth_radius', 6371007) >>> f.has_parameter('earth_radius') True >>> f.get_parameter('earth_radius') 6371007 >>> f.del_parameter('earth_radius') 6371007 >>> f.has_parameter('earth_radius') False >>> print(f.del_parameter('earth_radius', None)) None >>> print(f.get_parameter('earth_radius', None)) None