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

Warning in nansat.domain.get_border_wkt (line 595) #490

Open
mortenwh opened this issue Sep 26, 2020 · 0 comments
Open

Warning in nansat.domain.get_border_wkt (line 595) #490

mortenwh opened this issue Sep 26, 2020 · 0 comments

Comments

@mortenwh
Copy link
Contributor

mortenwh commented Sep 26, 2020

Is the warning needed or should it be removed, and are we certain that we don't need this correction?

595         warnings.warn("> 180 deg correction to longitudes - disabled..")
596         polygon_border = ','.join('%s %s' % (lon, lat) for lon, lat in zip(lon_vec, lat_vec))

I'm getting this border geometry from a SAR image crossing the dateline on 2011-12-04_09:22:35.875:

(((-2.5676, 59.9168), (-41.0914, 59.9541), (-76.955, 59.9897), (-110.1582, 60.0235), (-140.7011, 60.0556), (-168.5836, 60.086), (-193.8058, 60.1146), (-216.3676, 60.1415), (-236.2692, 60.1666), (-253.5103, 60.1901), (-269.4713, 60.2139), (-269.4713, 60.2139), (-256.9323, 60.5626), (-243.6344, 60.911), (-229.5773, 61.2593), (-214.7612, 61.6072), (-199.186, 61.955), (-182.8517, 62.3025), (-165.7584, 62.6498), (-147.906, 62.9969), (-129.2945, 63.3437), (-107.0017, 63.7414), (-107.0017, 63.7414), (-67.7128, 63.7147), (-29.3654, 63.6886), (11.6424, 63.6609), (55.3105, 63.6314), (101.639, 63.6001), (150.6278, 63.5672), (202.2769, 63.5325), (256.5864, 63.496), (313.5562, 63.4579), (373.1864, 63.418), (373.1864, 63.418), (326.7742, 63.0232), (287.1444, 62.679), (248.2737, 62.3345), (210.162, 61.9898), (172.8094, 61.6449), (136.2159, 61.2997), (100.3814, 60.9543), (65.306, 60.6087), (30.9897, 60.2629), (-2.5676, 59.9168)),)

The longitudes seem completely off, so there is probably something else going on here as well but I thought it was worth mentioning...

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

1 participant