Dear All,
My friend Naveen who volunteers along with various Farmers Movements and organisations, has come across a road block while trying to do some calculations w.r.t Crop Insurance Payout. This year in state of telangana, the government has not implemented the PMFBY policy and due to heavy rains many farmers have lost a lot of crops and are in severe losses. So we are trying to simulate what would have been the payout the farmers would have received in case PMFBY was in place.
He has written the code in Python for calculating the same.
Below is short description of the issue he needs help with:
"I am analysing daily rainfall data to calculate Insurance payout for
farmers in case of excess rainfall coverage. policy covers if the
"Consecutive 3 day cumulative rainfall" is greater than 50mm between
1st-Oct and 31st-Oct. I was able to write the code in Python to find the
matching criteria. But when it rains continuously then the result has
overlapping dates which is not acceptable payout. Need help in
calculating best payout option in case of overlapping dates."
I have attached the attachments also for further understanding.
He has also summarised the issue in this stack overflow thread.
Request people to share their thoughts and suggestions.
Regards
Sreeharsha