Re: metadata and profile: What's the difference?

Sean Gillies
 

Indeed they are largely redundant. The meta property came first. Then we introduced a profile property to better support the pattern of using one dataset's profile as keyword arguments for creating new similar datasets. Note that the profile may contain items that don't appear in the meta property. 


On Fri, Nov 29, 2019, 9:57 AM Amine Aboufirass <amine.aboufirass@...> wrote:
Also, what is the difference between a dataset's metadata and profile? I have the impression one of these values is redundant. Please see example below:

>>> dataset.profile
{'driver': 'AAIGrid', 'dtype': 'int32', 'nodata': -9999.0, 'width': 8, 'height': 8, 'count': 1, 'crs': None, 'transform': Affine(1.0, 0.0, 0.0,
       0.0, -1.0, 8.0), 'tiled': False}
>>> dataset.meta
{'driver': 'AAIGrid', 'dtype': 'int32', 'nodata': -9999.0, 'width': 8, 'height': 8, 'count': 1, 'crs': None, 'transform': Affine(1.0, 0.0, 0.0,
       0.0, -1.0, 8.0)}

Join main@rasterio.groups.io to automatically receive all group messages.