SafeguardsCodec( codec=codec, # any numcodecs codec safeguards=[ dict( kind="qoi_eb_stencil", qoi=|\qu|sum(X)/size(X)|\qu|, # box mean neighbourhood=[ # neighbourhood along the latitude axis dict(axis=1, before=2, after=2, boundary="reflect"), ], type="abs", eb=0.1, ), ], )