[gdal-dev] Working with gdal mdim
Even Rouault
even.rouault at spatialys.com
Fri Nov 14 15:13:37 PST 2025
Scott,
>
> gdal mdim convert
> /vsicurl/https://tgftp.nws.noaa.gov/SL.us008001/ST.opnl/DF.gr2/DC.ndfd/AR.conus/VP.001-003/ds.qpf.bin
> tst.tif --subset 'TIME("1763164800")' --array QPF_0-SFC --co
> COMPRESS=DEFLATE --overwrite --quiet
>
> ERROR 1: JSON parsing error: continue (at offset 0)
> ERROR 1: JSON parsing error: continue (at offset 0)
> ERROR 1: JSON parsing error: continue (at offset 0)
> ERROR 1: JSON parsing error: continue (at offset 0)
You can safely ignore it (or avoid it by adding --config GDAL_SKIP ZARR,
although this is not a Zarr issue, just the trigger). Fixed per
https://github.com/OSGeo/gdal/commit/0f889cea1395ebee62630653bc0fa505c4f0c6df
>
> Trying to get a range of subsets based on time always fails. Is
> getting a range like this correct/possible?
>
> gdal mdim convert ds.qpf.bin tst.tif --subset
> 'TIME("1763164800,1763251200")' --array QPF_0-SFC --co
> COMPRESS=DEFLATE --overwrite
>
> ERROR 1: Non numeric bound in subset specification.
Ah this is a bit tricky. You shouldn't put double quotes around the
range as this is numeric values.
$ gdal mdim convert
/vsicurl/https://tgftp.nws.noaa.gov/SL.us008001/ST.opnl/DF.gr2/DC.ndfd/AR.conus/VP.001-003/ds.qpf.bin
tst.tif --subset 'TIME(1763164800,1763251200)' --array QPF_0-SFC --co
COMPRESS=DEFLATE --overwrite
But there was actually a bug, which will be fixed per
https://github.com/OSGeo/gdal/pull/13420
Even
--
http://www.spatialys.com
My software is free, but my time generally not.
More information about the gdal-dev
mailing list