Skip to content

Plant Health

The Plant Health service is a tool that allows growers to assess the health and vigor of their crops. This service makes use of a common vegetation index, the Normalized Difference Vegetation Index, or NDVI.

Usage

The processPlantHealth() mutation and retrievePlantHealth() query are used to generate and retrieve plant health analyses. They each require three arguments:

  • polygonId
  • startDate
  • endDate


mutation {
  processPlantHealth(
    polygonId: "[YOUR POLYGON ID GOES HERE]"
    startDate: "2023-01-01"
    endDate:   "2023-07-31"
  )
  {
    IsSuccess
    Message
    Status
    Result {
      requestId
    }
  }
}


query {
  retrievePlantHealth(
    polygonId: "[YOUR POLYGON ID GOES HERE]"
    startDate: "2023-01-01"
    endDate:   "2023-07-31"
  )
  {
    IsSuccess
    Message
    Status
    Result {
      tif
      png
      json
      colorlegend
    }
  }
}

Please refer to the Schema Documentation in the API Playground for more information.

NOTE:   The processPlantHealth() mutation and retrievePlantHealth() query are only shortcuts to the processVegetationIndices() mutation and retrieveVegetationIndices() query. The Plant Health service endpoints call the VegetationIndices service endpoints with an indexType of NDVI.