LambertConformal projection maximal longitude extent #1665
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.
Rationale
The previous version of LambertConformal projection does not allow to control the longitudinal extent of the map (it was hardcoded at 180º). It was only possible to use the
set_extent
method of a GeoAxes instance, resulting in vertical (or horizontal) axes boundaries. Yet, a Lambert conformal projection can have arbitrary longitude extent. This version implements a control on this extent.Implications
Being able to control the longitude extent of a GeoAxes instance with a single keyword argument added to LambertConformal.
Checklist
I have read and signed the Contributor Licence Agreement (CLA) just before proposing this pull request.
New feature: keyword argument
longitude_extent
added to the LambertConformal CRS. By default, the behavior of he projection is unchanged (i.e.longitude_extent=180
). When specified, the extent of the GeoAxes with LambertConformal projection with have axes boundaries drawn within the range(central_longitude - longitude_extent, central_longitude + longitude_extent)
.The docstring was updated accordingly.
Example use (compare with and without controlling the longitude extent)