cf.Datum.del_parameter¶
-
Datum.
del_parameter
(parameter, default=ValueError())[source]¶ Delete a parameter.
New in version 1.7.0.
See also
Parameters: Returns: The removed parameter. If the parameter has not been then default is returned, if provided.
Examples:
>>> 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_paramete('earth_radius', None)) None