Skip to main content

Location-wise summary

An ensemble is an attribute where every location has multiple values. The location-wise summary task computes four statistics of all the values at each location: minimum, maximum, mean, and variance. The task saves each statistic as a geoscience object attribute.

Parameters

Example

Request

requests.post(
"https://{hub}.api.seequent.com/compute/orgs/{org_id}/geostat/location-wise-summary",
headers={"Authorization": "Bearer {token}"},
json={
"parameters": {
"ensemble": {
"type": "geoscience-object-reference",
"object_reference": "https://{hub}.api.seequent.com/geoscience-object/orgs/{org_id}/workspaces/{workspace_id}/objects/path/my-grid.json",
"object_element": [
{
"type": "element",
"path": "/cell_attributes/@name=my-ensemble",
},
],
},
"target": {
"type": "geoscience-object-reference",
"object_reference": "https://{hub}.api.seequent.com/geoscience-object/orgs/{org_id}/workspaces/{workspace_id}/objects/path/my-grid.json",
},
},
},
)

Result

{
"message": "Location-wise summary completed.",
"object_modified": {
"type": "geoscience-object-reference",
"object_reference": "https://{hub}.api.seequent.com/geoscience-object/orgs/{org_id}/workspaces/{workspace_id}/objects/path/my-grid.json",
"object_element": [
{
"type": "element",
"path": "/cell_attributes/@name=min",
},
{
"type": "element",
"path": "/cell_attributes/@name=max",
},
{
"type": "element",
"path": "/cell_attributes/@name=mean",
},
{
"type": "element",
"path": "/cell_attributes/@name=variance",
},
],
}
}

Tips

  • The ensemble and target can use the same object, but they don't have to.