Spaces:
Runtime error
Runtime error
Rim BACCOUR
commited on
final version
Browse files- summary_test.py +16 -15
summary_test.py
CHANGED
|
@@ -73,11 +73,12 @@ if __name__ == "__main__":
|
|
| 73 |
|
| 74 |
temperature_df, rain_df, irradiance_df = process_all_data_for_meterological_summary(historical_df, forecast_df)
|
| 75 |
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
|
|
|
| 81 |
|
| 82 |
climate_data = temperature_df.merge(rain_df, on='year').merge(irradiance_df, on='year') # meteo ok
|
| 83 |
closest_soil_data = find_nearest_point_to_coordinates(latitude=lat, longitude=lon) # soil ok
|
|
@@ -86,17 +87,17 @@ if __name__ == "__main__":
|
|
| 86 |
# add a step to transform gps coordinates into french region to be able to filter yield data
|
| 87 |
yield_past_data, yield_forecast_data = get_yield_data(region=region, culture=culture)
|
| 88 |
|
| 89 |
-
# rendement
|
| 90 |
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
print(
|
| 100 |
|
| 101 |
# from utils.soil_utils import find_nearest_point
|
| 102 |
# city = "Bourgogne Franche Comté"
|
|
|
|
| 73 |
|
| 74 |
temperature_df, rain_df, irradiance_df = process_all_data_for_meterological_summary(historical_df, forecast_df)
|
| 75 |
|
| 76 |
+
#######@
|
| 77 |
+
meterological_summary = get_meterological_summary(scenario=scenario,
|
| 78 |
+
temperature_df=temperature_df,
|
| 79 |
+
irradiance_df=irradiance_df,
|
| 80 |
+
rain_df=rain_df)
|
| 81 |
+
print(meterological_summary)
|
| 82 |
|
| 83 |
climate_data = temperature_df.merge(rain_df, on='year').merge(irradiance_df, on='year') # meteo ok
|
| 84 |
closest_soil_data = find_nearest_point_to_coordinates(latitude=lat, longitude=lon) # soil ok
|
|
|
|
| 87 |
# add a step to transform gps coordinates into french region to be able to filter yield data
|
| 88 |
yield_past_data, yield_forecast_data = get_yield_data(region=region, culture=culture)
|
| 89 |
|
| 90 |
+
# rendement (avec et sans ombrage)
|
| 91 |
|
| 92 |
+
second_summary = get_agricultural_yield_comparison(culture=culture,
|
| 93 |
+
region="bourgogne franche comté",
|
| 94 |
+
water_df=water_deficit_data,
|
| 95 |
+
climate_df=climate_data,
|
| 96 |
+
soil_df=closest_soil_data,
|
| 97 |
+
forecast_yield_df=yield_forecast_data,
|
| 98 |
+
historical_yield_df=yield_past_data)
|
| 99 |
+
|
| 100 |
+
print(second_summary)
|
| 101 |
|
| 102 |
# from utils.soil_utils import find_nearest_point
|
| 103 |
# city = "Bourgogne Franche Comté"
|