Assignment -
We have daily gridded rainfall data of 40 years and structure of the dataset is like below;
Lat = [6.5:0.25:38.5];
Lon = [66.5:0.25:100];
Rainfall (135x129x365x40) (Lon, Lat, days, years).
Now, we looking for no. of dry (wet) spells for annual and JJAS, duration/length of dry (wet) spells for annual and JJAS periods, 10 days consecutive dry spells (where grid points received <2.5 mm/day rainfall), 5 days consecutive wet spells (where grid points received > 2.5 mm/day rainfall).
It will be better if you can make a three dimensional matrix (365, 40, 135*129) so that we can get wet and dry conditions (as mentioned above) for each year encompassing all grid points.
Only required matlab coding for this matter.