3. Query: Get "SatelliteImages"

Get "SatelliteImages" with a defined cloud threshold for the "Field".

Hints:

  • Read all "Farms" accessible for the "User" - remove (farmUuids: ["d2bf8ef5-cde0-4500-b931-2edd0fb40781"]). Similar work with "Fields", "SatelliteImages", "VectorAnalysisMap".

  • Allowed geoMapType filter with acceptable values: ALL, ORIGIN, CROPPED, RAW, PROCESSED, THUMBNAIL, CONTRAST

  • Allowed date-related filters: before and after which belong to AWSDate format. It is possible to use only one of the filters. More details are HERE.

  • Allowed provider filter with acceptable values: PS, S2, L9, L8, L7, L5, L4

  • Allowed threshold filter highlights the cloud coverage: "1" means cloud-free, "0" - fully cloudy.

query GetFieldSatelliteImagesViaGetFields {
  getFarms (farmUuids: ["<placeholder_of_farm_uuid>"]){
    uuid
    name
    fields (fieldUuids: ["<placeholder_of_field_uuid>"]) {
      uuid
      name
      satelliteImages (before:"2022-05-01" after: "2022-04-01" provider:S2 threshold:0.83 geoMapType: ORIGIN)  {
        satelliteImage {
          uuid
          acquisitionDate
          provider
        } 
        cloudFreeLand
        geoMaps {
          shortName
          url
          classes
          hexColorCodes
        }
        ndviAverage
        
        statistics {
          index
          min
          max
          avg
          mdn
          var
          std
        } 
      }
    }
  }
}
query GetFieldSatelliteImagesViaGetFarms {
  getFields (filter: {fieldUuid: "<placeholder_of_field_uuid>"}) {
    fields {
      uuid
      name
      satelliteImages (before:"2022-05-01" after: "2022-04-01" provider:S2 threshold:0.83 geoMapType: ORIGIN)  {
        satelliteImage {
          uuid
          acquisitionDate
          provider
        } 
        cloudFreeLand
        geoMaps {
          shortName
          url
          classes
          hexColorCodes
        }
        ndviAverage
        
        statistics {
          index
          min
          max
          avg
          mdn
          var
          std
        } 
      }
    }
  }
}

Last updated

Powered by GeoPard Agriculture - Automated precisionAg platform