Greetings,

With gdal mdim convert, is it possible to get subsets using a time range with GRIB? Also, should I be concerned with these errors? The data source is a GRIB/GRIdded Binary (.grb, .grb2), using GDAL v3.12.0

Getting valid time slices remotely works fine. Part of the output is shown. Note, this file changes frequently, so the times may be different if you run this command:

gdal mdim info /vsicurl/https://tgftp.nws.noaa.gov/SL.us008001/ST.opnl/DF.gr2/DC.ndfd/AR.conus/VP.001-003/ds.qpf.bin --array TIME --detailed

  "unit": "sec UTC",
"values": [1763164800, 1763186400, 1763208000, 1763229600, 1763251200, 1763272800, 1763294400, 1763316000, 1763337600, 1763359200, 1763380800]

Converting to .tif using a single time slice, I get this error, but resulting file seems to be OK. If I download the entire ds.qpf.bin first and run with the local file, no errors.

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)

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.

Thanks for any help!
Scott
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to