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
importxarrayasxrimportrioxarrayfromndpyramidimportpyramid_coarsen, pyramid_reproject# load a sample xarray.Datasetds=xr.tutorial.load_dataset('air_temperature')
# make a coarsened pyramidfactors= [8, 4, 2, 1]
pyramid=pyramid_coarsen(ds, factors=factors, dims=['lat', 'lon'], boundary='trim')
# make a reprojected (EPSG:3857) pyramidds=ds.rio.write_crs('EPSG:4326')
pyramid=pyramid_reproject(ds, levels=len(factors))
# write the pyramid to zarr# pyramid.to_zarr('test.zarr')pyramid["0"].isel(time=0).ds["air"].plot()
Expected to see something like
importxarrayasxrimportrioxarrayfromndpyramidimportpyramid_coarsen, pyramid_reproject# load a sample xarray.Datasetds=xr.tutorial.load_dataset('air_temperature')
# make a coarsened pyramidfactors= [8, 4, 2, 1]
pyramid=pyramid_coarsen(ds, factors=factors, dims=['lat', 'lon'], boundary='trim')
# make a reprojected (EPSG:3857) pyramidds=ds.rio.write_crs('EPSG:4326')
pyramid=pyramid_reproject(ds, levels=len(factors))
The text was updated successfully, but these errors were encountered:
Expected to see something like
The text was updated successfully, but these errors were encountered: