Error: Index exceeds the number of array elements. Index must not exceed 0

I am getting this error while running Aquacrop OS on MATLAB. On checking each line of code, the error occurs in AOS_ComputeCropCalendar.m while running the following line of code:

Crop.Emergence = GDDcum(Crop.EmergenceCD);

Additional info: In Crop.txt, I have specified all phenological parameters (like emergence, senescence etc.) in calendar days (CD), and have allowed (“1”) the conversion of “calendar to GDD mode if inputs are given in calendar days”.

Hi @sadla

The error must be occuring inside the GDDcum function so you would need to find the line inside that function which triggers the error

Tom