Open-EO / openeo-geotrellis-extensions

Java/Scala extensions for Geotrellis, for use with OpenEO GeoPySpark backend.
Apache License 2.0
5 stars 3 forks source link

load_stac: gdal cannot find time values #277

Closed jdries closed 3 months ago

jdries commented 3 months ago

java.lang.IllegalArgumentException: GDAL Could not retrieve time values from netcdf NETCDF:/data/users/Public/couchard/world_cereal/extractions_optical_500_2/2019_BE_Flanders_full_POLY_110/83194dfffffffff/00002808635D03B2/S2-L2A-10m_00002808635D03B2_32631_2018-08-30_2020-03-02.nc:S2-L2A-B01

{
  "process_graph": {
    "loadstac1": {
      "process_id": "load_stac",
      "arguments": {
        "url": "/data/users/Public/couchard/world_cereal/extractions_optical_500_2/stac/collection.json"
      }
    },
    "saveresult1": {
      "process_id": "save_result",
      "arguments": {
        "data": {
          "from_node": "loadstac1"
        },
        "format": "netCDF",
        "options": {}
      },
      "result": true
    }
  }
}

The netcdf does seem to contain the time values that the code is looking for: https://github.com/Open-EO/openeo-geotrellis-extensions/blob/0f7a7525d8a04d0160cd7dd57c19c37c56223507/openeo-geotrellis/src/main/scala/org/openeo/geotrellis/layers/NetCDFCollection.scala#L68

jdries commented 3 months ago

solved