Skip to content

Water Stress

The Water Stress 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 Water Index, or NDWI. When crops are well-hydrated and have enough water, NDWI tends to be higher. If the NDWI value drops, it might mean that the plants are stressed because they're not getting enough water. This could be due to things like drought or problems with irrigation.

Usage

The processWaterStress() mutation and retrieveWaterStress() query are used to generate and retrieve water stress analyses. They each require three arguments:

  • polygonId
  • startDate
  • endDate


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


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

NOTE:   The processWaterStress() mutation and retrieveWaterStress() query are only shortcuts to the processVegetationIndices() mutation and retrieveVegetationIndices() query. The Water Stress service endpoints call the VegetationIndices service endpoints with an indexType of NDWI.

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