1. Quick Start IPM Interface

1.1. Activate IPM interface

[1]:
from agroservices.ipm.ipm import IPM
ipm = IPM()
sources = ipm.get_weatherdatasource()
sources.keys()
[1]:
dict_keys(['no.met.locationforecast', 'ie.gov.data', 'dk.dmi.pointweather', 'se.slu.lantmet', 'net.ipmdecisions.dwd.forecast.germany', 'net.ipmdecisions.dwd.forecast.europe', 'net.ipmdecisions.dwd.euroweather', 'net.ipmdecisions.meteofrance.forecast', 'fi.fmi.forecast.location', 'fi.fmi.observation.station', 'no.nibio.lmt', 'com.meteobot', 'info.fruitweb', 'net.ipmdecisions.metos', 'fr.meteo-concept.api'])

1.2. Use a one function describe in References documentation

An example of function were used as example here get_weatheradapter

[2]:
fmi = sources['fi.fmi.observation.station']
ipm.get_weatheradapter(fmi)
[2]:
{'timeStart': '2020-01-01T23:00:00Z',
 'timeEnd': '2020-01-02T00:00:00Z',
 'interval': 3600,
 'weatherParameters': [2001, 1002, 3002],
 'locationWeatherData': [{'longitude': 26.36757,
   'latitude': 65.97717,
   'altitude': 0.0,
   'amalgamation': [0, 0, 0],
   'data': [[0.1, 2.2, 97.0], [0.1, 2.3, 95.0]],
   'length': 2,
   'qc': [1, 1, 1],
   'width': 3}]}
[ ]: