pyowm.agroapi10 package

Submodules

pyowm.agroapi10.agro_manager module

pyowm.agroapi10.enums module

class pyowm.agroapi10.enums.PaletteEnum[source]

Bases: object

Allowed color palettes for satellite images on Agro API 1.0

BLACK_AND_WHITE = '2'
CONTRAST_CONTINUOUS = '4'
CONTRAST_SHIFTED = '3'
GREEN = '1'
classmethod items()[source]

All values for this enum :return: list of str

class pyowm.agroapi10.enums.PresetEnum[source]

Bases: object

Allowed presets for satellite images on Agro API 1.0

EVI = 'evi'
FALSE_COLOR = 'falsecolor'
NDVI = 'ndvi'
TRUE_COLOR = 'truecolor'
classmethod items()[source]

All values for this enum :return: list of str

class pyowm.agroapi10.enums.SatelliteEnum[source]

Bases: object

Allowed presets for satellite names on Agro API 1.0

LANDSAT_8 = <pyowm.commons.databoxes.Satellite - name=Landsat 8 symbol=l8>
SENTINEL_2 = <pyowm.commons.databoxes.Satellite - name=Sentinel-2 symbol=s2>
classmethod items()[source]

All values for this enum :return: list of str

pyowm.agroapi10.imagery module

pyowm.agroapi10.polygon module

pyowm.agroapi10.search module

pyowm.agroapi10.soil module

class pyowm.agroapi10.soil.Soil(reference_time, surface_temp, ten_cm_temp, moisture, polygon_id=None)[source]

Bases: object

Soil data over a specific Polygon

Parameters:
  • reference_time (int) – UTC UNIX time of soil data measurement
  • surface_temp (float) – soil surface temperature in Kelvin degrees
  • ten_cm_temp (float) – soil temperature at 10 cm depth in Kelvin degrees
  • moisture (float) – soil moisture in m^3/m^3
  • polygon_id (str) – ID of the polygon this soil data was measured upon
Returns:

a Soil instance

Raises:

AssertionError when any of the mandatory fields is None or has wrong type

classmethod from_dict(the_dict)[source]
reference_time(timeformat='unix')[source]

Returns the UTC time telling when the soil data was measured

Parameters:timeformat (str) – the format for the time value. May be: ‘unix’ (default) for UNIX time ‘iso’ for ISO8601-formatted string in the format YYYY-MM-DD HH:MM:SS+00date for datetime.datetime object instance
Returns:an int or a str
surface_temp(unit='kelvin')[source]

Returns the soil surface temperature

Parameters:unit (str) – the unit of measure for the temperature value. May be: ‘kelvin’ (default), ‘celsius’ or ‘fahrenheit
Returns:a float
Raises:ValueError when unknown temperature units are provided
ten_cm_temp(unit='kelvin')[source]

Returns the soil temperature measured 10 cm below surface

Parameters:unit (str) – the unit of measure for the temperature value. May be: ‘kelvin’ (default), ‘celsius’ or ‘fahrenheit
Returns:a float
Raises:ValueError when unknown temperature units are provided

pyowm.agroapi10.uris module

URIs templates for resources exposed by the Agro API 1.0

Module contents