Spatial morphing - quantile mapping extensions - #2448
Closed
gavinevans wants to merge 21 commits into
Closed
gavinevans wants to merge 21 commits into
gavinevans wants to merge 21 commits into
Conversation
…ransition point between forecast sources.
…ight precipitation.
…ons sources is absent.
…s not a weighted average of the input sources, as this can introduce artefacts. Instead, a weighted average of the quantiles is used, and a spatial union mask is created. This avoids the quantile mapping introducing a fade-in/fade-out behaviour, which is undesirable and the spatial union helps avoid scattered showers becoming broader areas of low precipitation.
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses #2441
Description
This PR builds on #2441. Only this commit 56023bd is actually relevant for this PR.
After looking at some more case studies, it was realised that although the initial use of quantile mapping, immediately after the spatial morphing could have benefits, in some situations, it could also introduce artefacts in other situations. Problematic situations are similar to as shown below where the use of a weighted average between source 1 and source 2 as the quantile mapping reference has introduced two adjacent fronts in the interpolated image, over the North Sea, relative to the inputs. This is purely an artefact of the Quantile Mapping reference forecast.
To address this issue, this PR doesn't use a simple weighted average as the quantile mapping reference but instead uses a weighted average of the quantiles, which avoids this kind of spatial artefacts. This, however, can lead to an apparent excess of precipitation in some situations e.g. as shown below, where there is a broader area of low precipitation over Orkney and to the east of Orkney than may be expected, given the smaller scattered showers present in the input.
To reduce this artefact, I've restricted the precipitation to the spatial union of the inputs, which helps avoid broader areas of precipitation occurring.
Testing: