-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modifications to enable accurate plotting of cubed-sphere data which …
…crosses 180E An upcoming update to Cartopy (expected in 0.19.0) enables pcolormesh to correctly display polygons crossing the antimeridian. This removes the need for thresholding at that location, and means that ALL cubed sphere data is now shown on plots. Users can recover the old functionality by passing the argument `cs_threshold=5` when calling `plot_layer` (or the lower-level `plot_cs` function). A side effect of this fix is that a wrapped set of polgyons is sometimes generated when plotting one of the cubed-sphere faces. `plottools.set_clim` has been modified to account for this.
- Loading branch information
Showing
1 changed file
with
31 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
f53036b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks to @LiamBindle and @greglucas for the help! The edits shown here take advantage of updates to the cartopy package (PRs SciTools/cartopy#1622 and SciTools/cartopy#233) which will be available in cartopy 0.19.0. Cartopy issue SciTools/cartopy#1654 documents the discussion which informed this update.
f53036b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem! This should be fixed in SciTools/cartopy#1655.