Automatically generate a masking function using a OutputVar
#141
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.
closes #137 - This PR adds the function

Var.make_lonlat_mask
which automatically generate a mask from aOutputVar
. Additionally, one can specify the masking function when plotting the bias. See the plots below where a custom masking function (for computing the bias) is specified with an ocean mask (for visual purposes) for the plot.The
mask
parameter now takes in a masking function or the predefined masksVisualize.oceanmask()
andVisualize.landmask()
. IfVisualize.oceanmask()
andVisualize.landmask()
are used, then the corresponding masking function for theOutputVar
is chosen. If a masking function is used, then no mask for visual is used. In all other cases, it is assumed that the mask being used is for visuals and a warning is displayed that it will be overplotted and the colorbar might be wrong.