[feature] Accept weather data file over any number of years
Summary
Accept Agri4cast weather data file over any number of years
Current behavior
Number of years is hardcoded in class Weather_data , method get_n_years_daily_WD . if the weather file does't match the hard-coded year range, raises the following error:
/MODULES/DATA_MANAGEMENT/weather_data_provider.py", line 97, in get_n_years_daily_WD
rain_vap_pressure = daily_csv.drop(['id','DAY'], axis=1).set_index(new_index2)
Desired behavior
To adapt automatically the behavior to weather files spanning any number of years.
- Mimic the behavior of method get_n_years_WD_from_csvfile
- Add the possibility to select only a range within the weather file
Sources
NA
Linked features or branches
Edited by Bouvry Arnaud