irrigation_method=3 Not Working #160
LubinHan-Geo
started this conversation in
General
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks @LubinHan-Geo for spotting this. We've got a few other updates to make in the coming weeks, so will bundle this fix in with it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I recently started using AquaCrop. I try to explore the impact of different irrigation dates and depths on crop yield. According to the guidelines, I set irrigate_schedule = IrrigationManagement(irrigation_method=3, schedule=irrigation_df), where irrigation_df is a dataframe I created based on the requirements. I found that the yield outputs in AquaCrop with irrigation_method=3 is the same as with irrigation_method=0 (no irrigation), and the seasonal irrigation amount is zero. I noticed the same issue in the guidelines, as shown in the figure below.
I am curious about such outputs because it means the specified irrigation dates and depths were not effective.
I have checked the code in irrigationManagement.py and read_irrigation_management.py. I found that in line 62 of irrigationManagement.py, an empty dataframe is imported instead of the actual irrigation file into self.Schedule.
if irrigation_method == 3: # wants a pandas dataframe with Date and Depth, pd.Datetime and float """ dates = pd.DatetimeIndex(['20/10/1979','20/11/1979','20/12/1979']) depths = [25,25,25] irr=pd.DataFrame([dates,depths]).T irr.columns=['Date','Depth'] """ self.Schedule = pd.DataFrame(columns=["Date", "Depth"])
I wonder if this is the reason why the irrigation amount is zero. If you know what might be causing these issues, please let me know. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions