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
So I think [16, 8, 4, 3, 2, 1] should be reversed.
importxarrayasxrimportrioxarrayfromndpyramidimportpyramid_coarsen, pyramid_reproject# load a sample xarray.Datasetds=xr.tutorial.load_dataset('air_temperature')
# make a coarsened pyramidpyramid=pyramid_coarsen(ds, factors=[16, 8, 4, 3, 2, 1], dims=['lat', 'lon'], boundary='trim')
# make a reprojected (EPSG:3857) pyramidds=ds.rio.write_crs('EPSG:4326')
pyramid=pyramid_reproject(ds, levels=2)
# write the pyramid to zarrpyramid.to_zarr('./path/to/write')
The text was updated successfully, but these errors were encountered:
"The paths to the arrays in dataset series MUST be ordered from largest (i.e. highest resolution) to smallest."
From https://forum.image.sc/t/multiscale-arrays-v0-1/37930
So I think [16, 8, 4, 3, 2, 1] should be reversed.
The text was updated successfully, but these errors were encountered: