Skip to content

pre-validate band math tool entries #893

Open
@jreiberkyle

Description

@jreiberkyle

Is your feature request related to a problem? Please describe.

Creating an order with invalid band math entries results in the order being run for several minutes before the order finally fails. There is no pre-validation.

Describe the solution you'd like

Pre-validate band math entries before an order is run. This would likely happen in the band_math tool itself.

Describe alternatives you've considered

Additional context
Here's an order request with an invalid band math entry for b2.

{
  "name": "name",
  "products": [
    {
      "item_ids": [
        "20230322_161237_04_24ca"
      ],
      "item_type": "PSScene",
      "product_bundle": "analytic_udm2"
    }
  ],
  "tools": [
    {
      "bandmath": {
        "b1": "2*b1",
        "b2": "3*before",
        "pixel_type": "Auto"
      }
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions