Opened 2 years ago

Last modified 2 years ago

#2621 closed defect

Petascope - Invalid coefficients when importing data — at Version 1

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 10.1
Component: petascope Version: 10.0
Keywords: Cc: Dimitar Misev
Complexity: Medium

Description (last modified by Bang Pham Huu)

Given this ingredients file. The last file will be imported wrongly for the coefficient of cloud_top_height axis, e.g.

 <gmlrgrid:coefficients>13840 14240 19440</gmlrgrid:coefficients>

instead of

 <gmlrgrid:coefficients>008640 13840 14240</gmlrgrid:coefficients>
{
  "config": {
    "service_url": "http://localhost:8080/rasdaman/ows",
    "tmp_directory": "/tmp/",
    "mock": false,
    "automated": true,
    "track_files": false,
    "retry": true,
    "retries": 2,
    "insitu": false
  },
  "input": {
    "coverage_id": "cb_global_cloud_top_height",
    "paths": [
      "/data_big/rasterized/Cb-global//2022-08-08/2022-08-08T11:23/009040_2022-08-08T11:23_maxForecastUpperBoundary_4.tiff",
      "/data_big/rasterized/Cb-global//2022-08-08/2022-08-08T11:23/014240_2022-08-08T11:23_maxForecastUpperBoundary_2.tiff",
      "/data_big/rasterized/Cb-global//2022-08-08/2022-08-08T11:28/008640_2022-08-08T11:28_maxForecastUpperBoundary_4.tiff"
    ]
  },
  "recipe": {
    "name": "general_coverage",
    "options": {
      "coverage": {
        "crs": "OGC/0/AnsiDate@OGC/0/Index1D?axis-label=\"cloud_top_height\"@EPSG/0/4326",
        "metadata": {
          "type": "xml",
          "global": {}
        },
        "slicer": {
          "type": "gdal",
          "bands": [
            {
              "name": "cloud_top_height",
              "nilValue": "0",
              "identifier": "cloud_top_height"
            }
          ],
          "axes": {
            "ansi": {
              "min": "datetime(regex_extract('${file:name}', '(.*)_(.*)_(.*)_(.*).tiff', 2), 'YYYY-MM-DDThh:mm')",
              "dataBound": false,
              "resolution": "1",
              "type": "ansidate",
              "irregular": true
            },
            "Long": {
              "min": "${gdal:minX}",
              "max": "${gdal:maxX}",
              "resolution": "${gdal:resolutionX}"
            },
            "Lat": {
              "min": "${gdal:minY}",
              "max": "${gdal:maxY}",
              "resolution": "${gdal:resolutionY}"
            },
            "cloud_top_height": {
              "min": "regex_extract('${file:name}', '(.*)_(.*)_(.*)_(.*).tiff', 1)",
              "dataBound": false,
              "resolution": 1,
              "irregular": true
            }
          }
        }
      },
      "wms_import": true,
      "tiling": "ALIGNED [0:0, 0:0, 0:500, 0:500]"
    }
  }
}

Change History (1)

comment:1 by Bang Pham Huu, 2 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.