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 …

Request — BandFormulaCreateInput

FieldTypeRequiredDescription
namestringyes
formulastringyes
display_namestring—
descriptionstring—
colormapstring—
value_rangearray of number—
categorystring—

Response — BandFormulaOutput.

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 …

Request — BandFormulaDeleteInput

FieldTypeRequiredDescription
formula_idstringyes

Response — BandFormulaDeleteOutput.

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 …

Request — BandFormulaGetInput

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 …

Request — BandFormulasListInput

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 …

Request — BandFormulaUpdateInput

FieldTypeRequiredDescription
formula_idstringyes
namestring—
formulastring—
display_namestring—
descriptionstring—
colormapstring—
value_rangearray of number—
categorystring—

Response — BandFormulaOutput.