Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Southern hemisphere UTM zones unaccounted for? #341

Open
acse-ra2617 opened this issue Jun 23, 2023 · 2 comments
Open

Southern hemisphere UTM zones unaccounted for? #341

acse-ra2617 opened this issue Jun 23, 2023 · 2 comments

Comments

@acse-ra2617
Copy link

acse-ra2617 commented Jun 23, 2023

When setting up a tidal simulation and using 'thetis.coordsys.UTMCoordinateSystem()' I don't seem to be able to account for UTM zones in the southern hemisphere, by default it is set to the Northern hemisphere, leading to any transforms giving the wrong lon, lat coordinates.

Looking into the repository (https://github.com/thetisproject/thetis/blob/master/thetis/coordsys.py) line 63: 'pyproj.Proj(proj='utm', zone=utm_zone, datum='WGS84', units='m', errcheck=True)' and adding the argument 'south = True' fixed my issue for the Southern hemisphere. Some way of passing this argument as True/False would allow simulations for both hemispheres.

My apologies if I have overlooked any other already existing solutions.

@stephankramer
Copy link
Contributor

Thanks Raul. Does this (#342) work for you?

@acse-ra2617
Copy link
Author

I can confirm that works on my side. Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants