Size

Data related to the Aerobotics TrueFruit Size product.

Recommended patterns for fetching TrueFruit size data

How to fetch fruit size distributions per orchard

  1. First pull per orchard size measurement dates for a given time period using the farming/truefruit/size/measurements/ endpoint. The response will return a list of objects containing an orchard_id and measurement_date. Filter the response using the processed_date query parameter. Using the processed_date is the most robust approach as it avoids losing records where there is a large delay between the data collection date and when it became available to consume. If you are fetching data on a cron, for example once a day, you will use the date you last fetched data on.
  2. To fetch the detailed orchard size distributions and aggregated metrics, pass the orchard_id and measurement_date received in the farming/truefruit/size/measurements/ response into the farming/truefruit/size/measurements/{orchard_id}/{measurement_date} endpoint. This will return a size distribution array which contains the histogram bucket ranges and the percentage of fruit which fall in each bucket.

How to fetch forecasted size distributions per orchard

  1. First pull per orchard size measurement dates for a given time period using the farming/truefruit/size/forecasts/ endpoint. The response will return a list of objects containing an orchard_id and measurement_date. Filter the response using the processed_date query parameter. Using the processed_date is the most robust approach as it avoids losing records where there is a large delay between the data collection date and when it became available to consume. If you are fetching data on a cron, for example once a day, you will use the date you last fetched data on.
  2. To fetch the detailed orchard size distributions and aggregated metrics, pass the orchard_id and measurement_date received in the farming/truefruit/size/forecasts/ response into the farming/truefruit/size/forecasts/{orchard_id}/{forecast_date} endpoint. This will return a size distribution array which contains the histogram bucket ranges and the percentage of fruit which fall in each bucket.

Size Measurement Compact

KeyTypeDescription
farm_idIntegerThe unique identifier for the farm which is provided by Aerobotics.
orchard_idIntegerThe unique identifier of the orchard .
measurement_dateDateThe date when the fruit measurements were taken.
processed_dateDateThe date when the data was processed by Aerobotics.
average_fruit_size_mmNumberThe average fruit size for the collection in mm.

Size Measurement Detailed

KeyTypeDescription
farm_idIntegerThe unique identifier of the farm, provided by Aerobotics, which the measurement belongs to.
orchard_idIntegerThe unique identifier of the orchard, provided by Aerobotics, which the measurement belongs to.
measurement_dateDateThe date that the bin images were captured by the user
processed_dateDateThe date that the measurement data completed processing by Aerobotics
size_distribution[][Distribution Record]An array of distribution records that can be used to build a histogram of fruit sizes
average_fruit_size_mmNumberThe average fruit size
count_fruit_measuredIntegerThe number of individual fruit measured

Distribution Record

KeyTypeDescription
bin_rangeStringSize range of the histogram bin in millimeters
percentageNumberPercentage of fruit sizes that fall within the corresponding bin range
labelString | NullName of the histogram bin range. Typically the harvest size category names. (optional)

Size Forecast

KeyTypeDescription
farm_idIntegerThe unique identifier for the farm which is provided by Aerobotics.
orchard_idIntegerThe unique identifier of the orchard .
forecast_dateDateThe date for which the size forecast was generated.
processed_dateDateThe date when the data was processed by Aerobotics.
average_fruit_size_mmNumberThe forecasted average fruit size in mm.

Recipes