At the moment, the ERA5 Weather data provider retrieves weather data for the location of a parcel defined as an instance of the Parcel class. I want a more general behaviour where I can query data based on either a parcel, or a location. This includes the following:
Class WofostSimulator:
add the option to pass a (lon-lat) tuple as an argument for what's currently called parcel. Maybe rename this to location or something more general, rather than parcel.
As now the parcel attribute can be either a tuple, a string (OS grid code) or an instance of the Parcel class, make sure to have a procedure to build the required attributes correctly (i.e., OS code from lon-lat pair if that's what's being passed to instantiate the WofostSimulator)
Class Era5WeatherDataProvider: at the moment this can only take a parcel to be instantiated. Modify it such that it can also take an OS grid code of a location.
At the moment, the ERA5 Weather data provider retrieves weather data for the location of a parcel defined as an instance of the
Parcel
class. I want a more general behaviour where I can query data based on either a parcel, or a location. This includes the following:WofostSimulator
:parcel
. Maybe rename this tolocation
or something more general, rather thanparcel
.parcel
attribute can be either a tuple, a string (OS grid code) or an instance of theParcel
class, make sure to have a procedure to build the required attributes correctly (i.e., OS code from lon-lat pair if that's what's being passed to instantiate the WofostSimulator)Era5WeatherDataProvider
: at the moment this can only take a parcel to be instantiated. Modify it such that it can also take an OS grid code of a location.