Add bandmath tool to order_request #876
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issue(s):
Closes #853
Proposed Changes:
For inclusion in changelog (if applicable):
bandmathtool toorder_request.Not intended for changelog:
subscription_requestand associated tests. Had to change any reference to the band math tool being calledband_mathand change it tobandmath, as the Orders API didn't acceptband_math. For instance, when we asked forband_maththe server returned:Error: {"field":null,"general":[{"message":"Unable to accept order: Operation 'band_math' not found for 'scenes'"}]}Diff of User Interface
Old behavior:
New behavior:
tools.json:[ { "clip": { "aoi": { "type": "Polygon", "coordinates": [ [ [ -91.198465, 42.893071 ], [ -91.121931, 42.893071 ], [ -91.121931, 42.946205 ], [ -91.198465, 42.946205 ], [ -91.198465, 42.893071 ] ] ] } } }, { "bandmath": { "b1": "b1", "b2": "arctan(b1)", "pixel_type": "AUTO" } } ]CLI commands:
PR Checklist:
(Optional) @mentions for Notifications: