-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Transform data retrieved from above calls to OpenMeteo to data structures expected from the ETo and soil analysis algorithm
Brainstorm on the solution in a way that OpenMeteo can in the future be switched to another API. Can be internal weather srv API or OpenWeatherMap or a SIP sensors. Use data mappers, translator etc if needed in order to make the application and the algorithms for GDD and Risk index robust. For example think that different sources can have humidity named in different ways. In that case you will need to add an interpolation layer that translates the data to a format suitable algorithm
This layer must in general work as a layer of transformation between ext APIs and the input algorithm structure. Imagine a function like
def interpolate_for_eto(raw_api_data, source=['sip4', 'openmeteo']): -> eto_dataframe
It can also be a class