Skip to content

Commit

Permalink
Enable southern hemipshere in UTMCoordinateSystem (#342)
Browse files Browse the repository at this point in the history
Adds south= kwarg, default to False (Northern Hemisphere)
  • Loading branch information
stephankramer authored Jan 8, 2024
1 parent 30dfada commit 82c51a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thetis/coordsys.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ class UTMCoordinateSystem(CoordinateSystem):
"""
Represents Universal Transverse Mercator coordinate systems
"""
def __init__(self, utm_zone):
def __init__(self, utm_zone, south=False):
self.proj_obj = pyproj.Proj(proj='utm', zone=utm_zone, datum='WGS84',
units='m', errcheck=True)
units='m', errcheck=True, south=south)
self.transformer_lonlat = pyproj.Transformer.from_crs(
self.proj_obj.srs, LL_WGS84.srs)
self.transformer_xy = pyproj.Transformer.from_crs(
Expand Down

0 comments on commit 82c51a9

Please sign in to comment.