четверг, 27 июля 2017 г.

Model of climatic parameters calculation for single fields

There is a source at http://agromonitoring.com where we suggest several simple examples of what you can create in your application with the help of our weather data.
For each of polygons/fields ( how to draw a polygon with visual tools ) you can set graphical presentation of climatic parameters, for instance, as charts for 3-hour forecasts for 5 days ahead and daily forecasts for 14 days ahead.
At the moment there are only temperature data in the application, but our weather API provides any data on pressure, clouds, wind, temperature, max/min temperature etc.
3-hour forecast for 5 days ahead

Visual presentation of historical data for a single field.

In this example the historical data are limited by a week period, but using our historical data API you can get them for any period for the last 5 years (check http://openweathermap.org/price)

Accumulated parameters.
These graphs show a sum of accumulated precipitation and accumulated temperatures.
Accumulated temperature data is an index that denotes an amount of warm. This index is determined as a sum of average daily air and soil temperatures which exceeds a definite threshold of 0, 5, 10 degrees or a biological minimum of temperature level which is crucial for some specific plant.

Accumulated precipitation data is calculated as a sum of all parameters for a peculiar period.
Now this data is available only at agromonitoring.com and is calculated basing on our historical data.
Soon we plan to launch new APIs that will  provide already calculated values of accumulated indexes for a definite region.

The weather alerts on our meteorological data

The weather alerts are ones of the tools that we offer for agricultural monitoring of fields http://agromonitoring.com/. For your convenience we have designed an interface for our API where you can create triggers for a polygon of any shape. These triggers will work out in case of emergence of specified weather conditions (temperature, humidity, pressure, etc.) during a certain period of time.    
For example, there is a field where some plants are inclined to suffer from freezing, while other plants need measures to be taken in case of strong wind – and you can easily get this information with our tool. Just set specific trigger conditions and if they happen you will get a program warning.  
Four simple steps for working with Weather Triggers API:
1  Create an account in members area and receive a key to access API.
2  Name your field and draw a polygon with visual tools. 
 
3 Create the trigger with the necessary conditions for temperature, pressure, humidity, wind speed, wind direction and clouds.
Parameters description: 
The Start and the End fields define the time period.
These fields also contain nested structures describing the beginning and the end of a time interval which is used to check the conditions.
The beginning and the end of a time interval represent a set of instructions for dynamic timestamp estimation. Timestamp is calculated considering the current time at the moment when conditions are being checked.
Parameter
  Description
amount
  Number of milliseconds
expression
  Specifies how to process value of the amount field
 
The field Expression has three admissible values:
  • exact - the field amount will be interpreted as a timestamp indicating an exact date/time
  • аfter - the field amount will be interpreted as a number of milliseconds, which needs to be added to the current timestamp at the moment of validation to receive a chosen date/time.
  • before - the field amount will be interpreted as a number of milliseconds, which needs to be subtracted from the current timestamp at the moment of validation to receive a chosen date/time.

The field Сonditions contains an array of objects describing the parameters that are used to do the comparison.
Parameter
  Description
name
  The name of the parameter to be compared with
expression
  The expression, which will be used to compare
amount
  Numerical value to be compared with

In the field name the following values are allowed: temp, pressure, humidity, wind_speed, wind_direction, clouds. Value of the name field specifies the corresponding parameter in a response from the Weather API that will be compared with.
The field expression indicates how exactly to perform comparison. The following values are available:
$gt - more than a value specified in amount.
$lt - less than a value specified in amount.
$gte - greater than or equals to a value specified in amount.
$lte - less than or equals to a value specified in amount.
$eq - equals to a value specified in amount.
$ne - not equals to a value specified in amount.
4  Check our service and receive information about an occurrence or a forecast of the upcoming events, which you are interested in.

See further: 
API documentation for Weather Alerts http://openweathermap.org/triggers 
Weather Alerts structure -  http://openweathermap.org/triggers-struct