Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Read] Add type stac to actinia importer #20

Closed
mmacata opened this issue Oct 14, 2021 · 0 comments
Closed

[Read] Add type stac to actinia importer #20

mmacata opened this issue Oct 14, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@mmacata
Copy link
Member

mmacata commented Oct 14, 2021

Piece of process chain should look similar like this:

        {
            "id": "importer_1",
            "module": "importer",
            "inputs": [
                {
                    "import_descr": {
                        "source": "stac.example-instance-id.rastercube.example-collection-id",
                        "type": "stac",
                        "semantic_label": "red",
                        "extent": {
                            "spatial": {
                                "bbox":[[-180,-90,180,90]]
                            },
                             temporal":{"interval":[[
                                   "2021-09-09", "2021-09-12"
                             ]]}
                         },
                         "filter": {...}
                    },
                    "param": "map",
                    "value": "example-red"
                }
            ]
        },

Currently there is the parameter sentinel_band available in the importer. Although it would make sense to also use semantic_label for it, we don't touch it for now.

The goal of this ticket is not a full implementation to make this PC work but only a preparation to accept the PC, acknowledge the type stac and prepare for semantic_label, extent and filter. When using type stac in a process chain, actinia shouldn't start processing but return a message like "STAC import is coming soon" or similar.

Hint: the importer part of a process chain can also be used directly with a module, e.g.

    {
      "module": "g.region",
      "id": "g_region_1",
      "inputs": [
        {
          "import_descr": {
            "source": "https://storage.googleapis.com/graas-geodata/elev_ned_30m.tif",
            "type": "raster"
          },
          "param": "raster",
          "value": "elev_ned_30m_new"
        }
      ],
      "flags": "p"
    },

I suspect that this will work out of the box as well (as same code is executed) but it should be tested as well.

Also update API docs accordingly and prepare tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant