Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion lib/cartopy/crs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3160,7 +3160,7 @@ class ObliqueMercator(Projection):

def __init__(self, central_longitude=0.0, central_latitude=0.0,
false_easting=0.0, false_northing=0.0,
scale_factor=1.0, azimuth=0.0, globe=None):
scale_factor=1.0, azimuth=0.0, gamma=None, globe=None):
"""
Parameters
----------
Expand All @@ -3178,6 +3178,9 @@ def __init__(self, central_longitude=0.0, central_latitude=0.0,
azimuth: optional
Azimuth of centerline clockwise from north at the center point of
the centre line. Defaults to 0.
gamma: optional
Azimuth of centerline clockwise from north of the rectified bearing
of centre line. If omitted, `alpha` determines the values of `gamma`.
globe: optional
An instance of :class:`cartopy.crs.Globe`. If omitted, a default
globe is created.
Expand All @@ -3198,6 +3201,9 @@ def __init__(self, central_longitude=0.0, central_latitude=0.0,
('x_0', false_easting), ('y_0', false_northing),
('alpha', azimuth), ('units', 'm')]

if gamma is not None:
proj4_params.append(('gamma', gamma))

super().__init__(proj4_params, globe=globe)

# Couple limits to those of Mercator - delivers acceptable plots, and
Expand Down
Loading