cfdm.CoordinateConversion.clear_parameters¶
-
CoordinateConversion.
clear_parameters
()[source]¶ Remove all parameters.
New in version (cfdm): 1.7.0
See also
- Returns
dict
The parameters that have been removed.
Examples
>>> f = cfdm.CoordinateConversion() >>> f.parameters() {} >>> p = {'standard_parallel': 25.0, ... 'longitude_of_central_meridian': 265.0, ... 'latitude_of_projection_origin': 25.0} >>> f.set_parameters(p) >>> f.parameters() {'standard_parallel': 25.0, 'longitude_of_central_meridian': 265.0, 'latitude_of_projection_origin': 25.0}
>>> old = f.clear_parameters() >>> old {'standard_parallel': 25.0, 'longitude_of_central_meridian': 265.0, 'latitude_of_projection_origin': 25.0} >>> f.set_parameters(old)