You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some differences between the metadata produced by pyramid_reproject, pyramid_coarsen, and pyramid_regrid. It would be good to align the metadata between these functions and check for agreement with the current ndpyramid metadata schema. For example, pyramid_coarsen adds local variables to the recorded kwargs, whereas pyramid_coarsen and pyramid_reproject do not. pyramid_coarsen also lacks the multiscales.datasets.pixels_per_tile attribute.
pyramid_coarsen
importxarrayasxrimportrioxarrayfromndpyramidimportpyramid_coarsen, pyramid_reproject, pyramid_regrid# load a sample xarray.Datasetds=xr.tutorial.load_dataset('air_temperature')
# make a coarsened pyramidcoarsened=pyramid_coarsen(ds, factors=[16, 8, 4, 3, 2, 1], dims=['lat', 'lon'], boundary='trim')
coarsened.attrs
There are some differences between the metadata produced by
pyramid_reproject
,pyramid_coarsen
, andpyramid_regrid
. It would be good to align the metadata between these functions and check for agreement with the current ndpyramid metadata schema. For example,pyramid_coarsen
adds local variables to the recordedkwargs
, whereaspyramid_coarsen
andpyramid_reproject
do not.pyramid_coarsen
also lacks themultiscales.datasets.pixels_per_tile
attribute.pyramid_coarsen
pyramid_reproject
pyramid_regrid
The text was updated successfully, but these errors were encountered: