<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Michael,<br>
</p>
<div class="moz-cite-prefix"><br>
</div>
<blockquote type="cite"
cite="mid:CAAcGz994UOppOvAO4jRRwM-G_gGDOq6wRLKku4m=YfdVDaVHiA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi, hoping to check my syntax ... or expectations
... I'm expecting this to subset by step the 20x20 array in this
netcdf, but getting no change in python MultiDimTranslate or at
command line: <br>
<br>
ds = gdal.OpenEx('gdrivers/data/netcdf/<a
href="http://byte_no_cf.nc" moz-do-not-send="true">byte_no_cf.nc</a>',
gdal.OF_MULTIDIM_RASTER)<br>
<br>
nds = gdal.MultiDimTranslate("/vsimem/array_view.zarr", ds,
format="Zarr", arraySpecs=['name=Band1,view=[::2,::4]'])<br>
nds.GetRootGroup().OpenMDArray("Band1").GetShape()<br>
# (20, 20)<br>
<br>
</div>
</blockquote>
<p>This was a bug. Fixed per <a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/pull/8297">https://github.com/OSGeo/gdal/pull/8297</a></p>
<p>A way of working it around is to useĀ scaleAxesSpecs=['x(4)',
'y(2)'] instead</p>
<p>Even</p>
<br>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>