stac-extensions / processing

Indicates from which processing chain data originates and how the data itself has been produced.
Apache License 2.0
14 stars 3 forks source link

Add more example expression objects #31

Open fmigneault opened 8 months ago

fmigneault commented 8 months ago

I think that (at least) 3 common definitions should be provided for https://github.com/stac-extensions/processing#expression-object to better guide users.

emmanuelmathot commented 8 months ago

The processing extension initially aims at tracing the processing lineage of the item. I understand you want to specify possible processing on the item? The expression object is left free to add any data structure that would represent the processing applied. If you want to provide with more processing format and related convention, feel free to provide them with examples.

fmigneault commented 8 months ago

I agree. If the above suggestions are valid, I can open a PR to add the examples. Users are always free to define whichever format that suits their needs, but if we push them toward a common strategy with good examples, it can help "standardizing" some work later on.

Also related, once the Machine Learning Model (MLM) extension will be released, I plan to suggest another example similar to the following for STAC Items representing a derived product resulting from model predictions (eg: land-cover).

{
  "processing:level": "L4",
  "processing:expression": {
    "format": "stac-mlm",
    "expression": {
      "href": "<URI-to-MLM-STAC-Item>",
      "type": "application/geo+json"
    }
  }
}

As described in https://github.com/crim-ca/dlm-extension/blob/validate/best-practices.md#processing-extension