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

Add_Geo_Coords #86

Closed
aghand0ur opened this issue Nov 19, 2019 · 2 comments
Closed

Add_Geo_Coords #86

aghand0ur opened this issue Nov 19, 2019 · 2 comments

Comments

@aghand0ur
Copy link

Hello,
I am receiving the following error.
I was able to bypass it by setting the following argument as false:
--test_add_geo_coords 0

Any clues?
Ali

Traceback (most recent call last): File "/simrdwn/simrdwn/core/simrdwn.py", line 1936, in <module> main() File "/simrdwn/simrdwn/core/simrdwn.py", line 1928, in main execute(args, train_cmd1, test_cmd_tot, test_cmd_tot2) File "/simrdwn/simrdwn/core/simrdwn.py", line 1540, in execute test_add_geo_coords=args.test_add_geo_coords) File "/simrdwn/simrdwn/core/simrdwn.py", line 1130, in run_test outProj_str='epsg:3857', verbose=verbose) File "/simrdwn/simrdwn/core/add_geo_coords.py", line 211, in add_geo_coords_to_df verbose=verbose) File "/simrdwn/simrdwn/core/add_geo_coords.py", line 139, in get_row_geo_coords x0_wmp, y0_wmp = pyproj.transform(inProj, outProj, lon0, lat0) File "/opt/conda/envs/simrdwn2/lib/python3.6/site-packages/pyproj/__init__.py", line 527, in transform _proj._transform(p1,p2,inx,iny,inz,radians) File "_proj.pyx", line 450, in _proj._transform RuntimeError: b'latitude or longitude exceeded limits'

@avanetten
Copy link
Owner

If your test data is not in geotiff format then test_add_geo_coords should be false. I'm guessing that your input images are in png or jpg format, which means that there's no sense in trying to add geo coords.

@avanetten
Copy link
Owner

Closing due to lack of activity

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