Creates a new index with the provided parameters
curl --request POST \
--url https://api.pixxel.space/v0/indices \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "NDVI",
"description": "This formula will give insights about vegetation",
"rescale": [
0,
1
],
"expression": "(B04-B08)/(B04+B08)",
"colormap": "rplumbho",
"lens_satellite_id": "0002a3a3-00a2-4b55-842b-44d8202c6d60",
"expression_type": "index",
"type": "custom"
}'
{
"bands": [
"B01",
"B02",
"B03"
],
"colormap": "rplumbho",
"created_at": "2022-11-14 12:55:49.125928+00:00",
"description": "This formula will give insights about vegetation",
"expression": "(B04-B08)/(B04+B08)",
"expression_type": "index",
"id": "e9767554-550e-4464-a677-b8cf096073ab",
"lens_satellite_id": "0002a3a3-00a2-4b55-842b-44d8202c6d60",
"name": "NDVI",
"rescale": [
0,
1
],
"satellite_name": "Sentinel-2",
"type": "custom",
"updated_at": "2022-11-14 12:55:49.125928+00:00"
}
Index creation parameters
The body is of type object
.
Created
The response is of type object
.
curl --request POST \
--url https://api.pixxel.space/v0/indices \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "NDVI",
"description": "This formula will give insights about vegetation",
"rescale": [
0,
1
],
"expression": "(B04-B08)/(B04+B08)",
"colormap": "rplumbho",
"lens_satellite_id": "0002a3a3-00a2-4b55-842b-44d8202c6d60",
"expression_type": "index",
"type": "custom"
}'
{
"bands": [
"B01",
"B02",
"B03"
],
"colormap": "rplumbho",
"created_at": "2022-11-14 12:55:49.125928+00:00",
"description": "This formula will give insights about vegetation",
"expression": "(B04-B08)/(B04+B08)",
"expression_type": "index",
"id": "e9767554-550e-4464-a677-b8cf096073ab",
"lens_satellite_id": "0002a3a3-00a2-4b55-842b-44d8202c6d60",
"name": "NDVI",
"rescale": [
0,
1
],
"satellite_name": "Sentinel-2",
"type": "custom",
"updated_at": "2022-11-14 12:55:49.125928+00:00"
}