@@ -263,7 +263,7 @@ using the `namedtuple._asdict`_ method. This can be particularly handy when a
263
263
standard Python built-in container is required to represent your ``metadata ``,
264
264
265
265
>>> metadata._asdict()
266
- OrderedDict([( 'standard_name', 'longitude'), ( 'long_name', None), ( 'var_name', 'longitude'), ( 'units', Unit('degrees')), ( 'attributes', {'grinning face': '🙃'}), ( 'coord_system', GeogCS(6371229.0)), ( 'climatological', False), ( 'circular', False)])
266
+ { 'standard_name': 'longitude', 'long_name': None, 'var_name': 'longitude', 'units': Unit('degrees'), 'attributes': {'grinning face': '🙃'}, 'coord_system': GeogCS(6371229.0), 'climatological': False, 'circular': False}
267
267
268
268
Using the `namedtuple._replace `_ method allows you to create a new metadata
269
269
class instance, but replacing specified members with **new ** associated values,
@@ -943,7 +943,7 @@ such as a `dict`_,
943
943
944
944
>>> mapping = latitude.metadata._asdict()
945
945
>>> mapping
946
- OrderedDict([( 'standard_name', 'latitude'), ( 'long_name', None), ( 'var_name', 'latitude'), ( 'units', Unit('degrees')), ( 'attributes', {}), ( 'coord_system', GeogCS(6371229.0)), ( 'climatological', False), ( 'circular', False)])
946
+ { 'standard_name': 'latitude', 'long_name': None, 'var_name': 'latitude', 'units': Unit('degrees'), 'attributes': {}, 'coord_system': GeogCS(6371229.0), 'climatological': False, 'circular': False}
947
947
>>> longitude.metadata = mapping
948
948
>>> longitude.metadata
949
949
DimCoordMetadata(standard_name='latitude', long_name=None, var_name='latitude', units=Unit('degrees'), attributes={}, coord_system=GeogCS(6371229.0), climatological=False, circular=False)
0 commit comments