[gdal-dev] Zarr syntax question
Michael Sumner
mdsumner at gmail.com
Thu Sep 8 03:00:48 PDT 2022
Thanks Even!
I THOUGHT I TRIED THAT 🙏 doh. Very much appreciated.
Cheers, Mike
On Thu, 8 Sept 2022, 19:39 Even Rouault, <even.rouault at spatialys.com> wrote:
> Michael,
>
> This is both a usage issue, and the driver not erroring out on that
> invalid use whereas it should.
>
> 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.
>
> So:
>
> gdalmdiminfo 'ZARR:"
> /vsicurl/https://ncsa.osn.xsede.org/Pangeo/pangeo-forge/gpcp-feedstock/gpcp.zarr
> <https://ncsa.osn.xsede.org/Pangeo/pangeo-forge/gpcp-feedstock/gpcp.zarr>
> "'
>
> and similarly for gdalinfo:
>
> gdalinfo 'ZARR:"/vsicurl/
> https://ncsa.osn.xsede.org/Pangeo/pangeo-forge/gpcp-feedstock/gpcp.zarr"'
>
> gdalinfo 'ZARR:"/vsicurl/
> https://ncsa.osn.xsede.org/Pangeo/pangeo-forge/gpcp-feedstock/gpcp.zarr":/precip:0'
> (0 here for the 2D slice at time index = 0)
>
> In https://github.com/OSGeo/gdal/pull/6330, I've improved doc and error
> messages.
>
> Even
>
>
> Le 08/09/2022 à 05:53, Michael Sumner a écrit :
>
> Hello, I'm trying to connect to this zarr:
>
> https://ncsa.osn.xsede.org/Pangeo/pangeo-forge/gpcp-feedstock/gpcp.zarr
>
> I can get this sort of hull description with mdim, but only "cannot find
> group" with gdalinfo.
>
> gdalmdiminfo ZARR:"
> https://ncsa.osn.xsede.org/Pangeo/pangeo-forge/gpcp-feedstock/gpcp.zarr"
> {
> "type": "group",
> "driver": "Zarr",
> "name": "/"
> }
>
>
> gdalinfo ZARR:"
> https://ncsa.osn.xsede.org/Pangeo/pangeo-forge/gpcp-feedstock/gpcp.zarr"
> ERROR 1: Cannot find group ncsa.osn.xsede.org
>
> 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'.
>
> I'm comparing to the python in this notebook, which works fine on the same
> system. I'm using GDAL built from source.
>
>
> https://notebooksharing.space/view/c6c1f3a7d0c260724115eaa2bf78f3738b275f7f633c1558639e7bbd75b31456#displayOptions=\
>
> Cheers, Mike
>
>
> --
> Michael Sumner
> Software and Database Engineer
> Australian Antarctic Division
> Hobart, Australia
> e-mail: mdsumner at gmail.com
>
> _______________________________________________
> gdal-dev mailing listgdal-dev at lists.osgeo.orghttps://lists.osgeo.org/mailman/listinfo/gdal-dev
>
> -- http://www.spatialys.com
> My software is free, but my time generally not.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220908/1d41b6ce/attachment.htm>
More information about the gdal-dev
mailing list