Generates maps showing the frequency of consecutive wet days for observed and simulated precipitation data. This function uses precipitation data to classify days as wet or dry based on a threshold and calculates the length of consecutive wet day spells. The results are then plotted on a map, with points colored by the number of spells and faceted by observation type and spell length category.
plot_dry_wet_spells_maps(sim, observed, coordinates, dates)
A 3-dimensional array of simulated weather data with dimensions [time, location, variable], where "Precipitation" is expected to be one of the variables.
A 3-dimensional array of observed weather data with the same dimensions and variable expectations as `sim`.
A matrix or data frame of geographic coordinates for the locations represented in `sim` and `observed`, with longitude in the first column and latitude in the second.
A vector of dates corresponding to the time dimension in `sim` and `observed`. This parameter is currently not used in the function but may be intended for future use or filtering within the provided data.
A `ggplot` object representing the maps of dry and wet spells for observed and simulated precipitation data across the specified locations.