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

get_tile - float division by zero #76

Closed
guydou opened this issue Jul 9, 2018 · 1 comment · Fixed by #78
Closed

get_tile - float division by zero #76

guydou opened this issue Jul 9, 2018 · 1 comment · Fixed by #78
Labels
question Further information is requested

Comments

@guydou
Copy link
Contributor

guydou commented Jul 9, 2018

import telluric as tl
url = "https://tellurictest.blob.core.windows.net/test/dataset240/2538/bad.tif?sp=rl&st=2018-07-09T06:15:52Z&se=2018-07-10T06:15:52Z&sv=2017-11-09&sig=Vjkihrlxqn84F2UwFBQc8Sn0UEgyzZ2%2FPJOh%2Bl6HP%2FM%3D&sr=b"
r = tl.GeoRaster2.open(url)
r.get_tile(2018,1567,12)

outputs:

ZeroDivisionError: float division by zero

Telluric versions:
latest, master

@astrojuanlu
Copy link
Contributor

The reason is that the affine is flipped:

In [3]: r.affine
Out[3]: 
Affine(1.0000230493996607, 0.0, -302753.1446876288,
       0.0, 1.000025765197041, 4697468.594452945)

This has been already reported in other places but we haven't decided what to do with this case.

@astrojuanlu astrojuanlu added the question Further information is requested label Jul 9, 2018
arielze added a commit that referenced this issue Jul 10, 2018
Fix Issue #76 where rasterio.window breaks on positive e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants