<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Michael,</p>
<p>This is both a usage issue, and the driver not erroring out on
that invalid use whereas it should.<br>
</p>
<p>You should prefix the URL with /vsicurl/ , and if you use Bash as
a shell, to make sure the double quotes are preserved up to GDAL,
you need to surround the whole string with single quote
characters.</p>
<p>So:<br>
</p>
<p>gdalmdiminfo 'ZARR:"<a
href="https://ncsa.osn.xsede.org/Pangeo/pangeo-forge/gpcp-feedstock/gpcp.zarr">/vsicurl/https://ncsa.osn.xsede.org/Pangeo/pangeo-forge/gpcp-feedstock/gpcp.zarr</a>"'</p>
<p>and similarly for gdalinfo:</p>
<p>gdalinfo
'ZARR:"/vsicurl/<a class="moz-txt-link-freetext" href="https://ncsa.osn.xsede.org/Pangeo/pangeo-forge/gpcp-feedstock/gpcp.zarr">https://ncsa.osn.xsede.org/Pangeo/pangeo-forge/gpcp-feedstock/gpcp.zarr</a>"'</p>
<p>gdalinfo
'ZARR:"/vsicurl/<a class="moz-txt-link-freetext" href="https://ncsa.osn.xsede.org/Pangeo/pangeo-forge/gpcp-feedstock/gpcp.zarr">https://ncsa.osn.xsede.org/Pangeo/pangeo-forge/gpcp-feedstock/gpcp.zarr</a>":/precip:0'
(0 here for the 2D slice at time index = 0)<br>
<br>
</p>
<p>In <a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/pull/6330">https://github.com/OSGeo/gdal/pull/6330</a>, I've improved doc and
error messages.</p>
<p>Even<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">Le 08/09/2022 à 05:53, Michael Sumner a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAAcGz98zWx=cOGF9U8RjmnLX018mZ5A0qBRYg3vA=iN7AM1ALg@mail.gmail.com">
<div dir="ltr">Hello, I'm trying to connect to this zarr:
<div><br>
</div>
<div><a
href="https://ncsa.osn.xsede.org/Pangeo/pangeo-forge/gpcp-feedstock/gpcp.zarr"
moz-do-not-send="true" class="moz-txt-link-freetext">https://ncsa.osn.xsede.org/Pangeo/pangeo-forge/gpcp-feedstock/gpcp.zarr</a><br>
</div>
<div><br>
</div>
<div>I can get this sort of hull description with mdim, but only
"cannot find group" with gdalinfo. </div>
<div><br>
</div>
<div>gdalmdiminfo ZARR:"<a
href="https://ncsa.osn.xsede.org/Pangeo/pangeo-forge/gpcp-feedstock/gpcp.zarr"
moz-do-not-send="true" class="moz-txt-link-freetext">https://ncsa.osn.xsede.org/Pangeo/pangeo-forge/gpcp-feedstock/gpcp.zarr</a>"<br>
{<br>
"type": "group",<br>
"driver": "Zarr",<br>
"name": "/"<br>
}<br>
<div><br>
</div>
<div><br>
</div>
<div>gdalinfo ZARR:"<a
href="https://ncsa.osn.xsede.org/Pangeo/pangeo-forge/gpcp-feedstock/gpcp.zarr"
moz-do-not-send="true" class="moz-txt-link-freetext">https://ncsa.osn.xsede.org/Pangeo/pangeo-forge/gpcp-feedstock/gpcp.zarr</a>"<br>
ERROR 1: Cannot find group <a
href="http://ncsa.osn.xsede.org" moz-do-not-send="true">ncsa.osn.xsede.org</a><br>
</div>
<div><br>
</div>
<div>That group error makes me think there's a kind of nested
dataset issue to navigate? But I can't see how zarr or gdal
would expose those? There is a variable called 'precip'. </div>
<div><br>
</div>
<div>I'm comparing to the python in this notebook, which works
fine on the same system. I'm using GDAL built from source. </div>
<div><br>
</div>
<div><a
href="https://notebooksharing.space/view/c6c1f3a7d0c260724115eaa2bf78f3738b275f7f633c1558639e7bbd75b31456#displayOptions=\"
moz-do-not-send="true" class="moz-txt-link-freetext">https://notebooksharing.space/view/c6c1f3a7d0c260724115eaa2bf78f3738b275f7f633c1558639e7bbd75b31456#displayOptions=\</a><br>
</div>
<div><br>
</div>
<div>Cheers, Mike</div>
<div><br>
</div>
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">Michael Sumner<br>
Software and Database Engineer<br>
Australian Antarctic Division<br>
Hobart, Australia<br>
e-mail: <a href="mailto:mdsumner@gmail.com" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">mdsumner@gmail.com</a></div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<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>