Band formulas operations

Spectral index and band-math formulas.

Each operation below is reachable at POST /v1/op/{operation_id} or the resource path POST /v1/{resource}/{action}, with a Bearer token (a gpra_ API key or a session token). Back to the Operations Reference index.

band_formulas.create

Create a custom band-math formula for the caller’s organization (write scope).

Scopeband_formulas:write
Side-effectcompute
HTTPPOST /v1/op/band_formulas.create · POST /v1/band_formulas/create
Python / TypeScriptclient.band_formulas.create(…)
CLIgeopera band-formulas create …

RequestBandFormulaCreateInput

FieldTypeRequiredDescription
namestringyes
formulastringyes
display_namestring
descriptionstring
colormapstring
value_rangearray of number
categorystring

ResponseBandFormulaOutput.

band_formulas.delete

Delete a custom band-math formula (write scope; templates are protected).

Scopeband_formulas:write
Side-effectdestructive
HTTPPOST /v1/op/band_formulas.delete · POST /v1/band_formulas/delete
Python / TypeScriptclient.band_formulas.delete(…)
CLIgeopera band-formulas delete …

RequestBandFormulaDeleteInput

FieldTypeRequiredDescription
formula_idstringyes

ResponseBandFormulaDeleteOutput.

band_formulas.get

Get a single custom band-math formula by id (org-scoped; cross-org → 404).

Scopeband_formulas:read
Side-effectread
HTTPPOST /v1/op/band_formulas.get · POST /v1/band_formulas/get
Python / TypeScriptclient.band_formulas.get(…)
CLIgeopera band-formulas get …

RequestBandFormulaGetInput

FieldTypeRequiredDescription
formula_idstringyes

Response — a streaming or binary payload (NDJSON / file / tile). Call the HTTP endpoint directly; the JSON SDK return does not apply.

band_formulas.list

List the caller-org’s custom band-math formulas (optional category/template filters).

Scopeband_formulas:read
Side-effectread
HTTPPOST /v1/op/band_formulas.list · POST /v1/band_formulas/list
Python / TypeScriptclient.band_formulas.list(…)
CLIgeopera band-formulas list …

RequestBandFormulasListInput

FieldTypeRequiredDescription
categorystring
include_templatesboolean

Response — a streaming or binary payload (NDJSON / file / tile). Call the HTTP endpoint directly; the JSON SDK return does not apply.

band_formulas.update

Update a custom band-math formula (write scope; org-scoped).

Scopeband_formulas:write
Side-effectcompute
HTTPPOST /v1/op/band_formulas.update · POST /v1/band_formulas/update
Python / TypeScriptclient.band_formulas.update(…)
CLIgeopera band-formulas update …

RequestBandFormulaUpdateInput

FieldTypeRequiredDescription
formula_idstringyes
namestring
formulastring
display_namestring
descriptionstring
colormapstring
value_rangearray of number
categorystring

ResponseBandFormulaOutput.