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
Missing ogr2ogr in PATH: error in ‘wgs84_extent’ when processing Sentinel-1 products #60
Comments
I follow the tutorial and here is my code: from eoreader.reader import Reader s1_path = "E:\SAR_DATA\Sentinel1\S1A_IW_GRDH_1SDV_20200308T121318_20200308T121343_031584_03A39B_5C41.zip" reader = Reader() s1_prod = reader.open(s1_path) s1_prod.get_band_paths([VV, HH]) An error occured, and I checked into the inner function and found the error is through in function of 'eoreader/products/sar/s1_product.py': When run the code 'extent_wgs84 = vectors.read(preview_overlay)', it will throw the message: Finally, the code 'vect.crs = WGS84' throw the error. How can I solve this problem? Thanks in advance! |
Hello, Do you have Concerning your last comment, I don't use |
Using |
I installed GDAL and that worked for me. Thank you for the quick response!
|
🙏 |
Assigning CRS to a GeoDataFrame without a geometry column is not supported. Use GeoDataFrame.set_geometry to set the active geometry column.
Traceback (most recent call last):
File "d:\SAR_DATA\process\eoreader-main\eoreader\products\sar\s1_product.py", line 187, in wgs84_extent
raise InvalidProductError(
eoreader.exceptions.InvalidProductError: Cannot determine the WGS84 extent of S1A_IW_GRDH_1SDV_20200308T121318_20200308T121343_031584_03A39B_5C41
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\10992.conda\envs\DL1\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\10992.conda\envs\DL1\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "c:\Users\10992.vscode\extensions\ms-python.python-2022.5.11221002\pythonFiles\lib\python\debugpy_main.py", line 45, in
cli.main()
File "c:\Users\10992.vscode\extensions\ms-python.python-2022.5.11221002\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 444, in main
run()
File "c:\Users\10992.vscode\extensions\ms-python.python-2022.5.11221002\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 285, in run_file
runpy.run_path(target_as_str, run_name=compat.force_str("main"))
File "C:\Users\10992.conda\envs\DL1\lib\runpy.py", line 268, in run_path
return _run_module_code(code, init_globals, run_name,
File "C:\Users\10992.conda\envs\DL1\lib\runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "C:\Users\10992.conda\envs\DL1\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "d:\SAR_DATA\process\eoreader-main\K.py", line 15, in
s1_prod.wgs84_extent()
File "C:\Users\10992.conda\envs\DL1\lib\site-packages\methodtools.py", line 72, in call
return self.call(*args, **kwargs)
File "d:\SAR_DATA\process\eoreader-main\eoreader_init.py", line 31, in wrapper
return func(*args, **kwargs)
File "d:\SAR_DATA\process\eoreader-main\eoreader\products\sar\s1_product.py", line 196, in wgs84_extent
raise InvalidProductError(ex) from ex
eoreader.exceptions.InvalidProductError: Cannot determine the WGS84 extent of S1A_IW_GRDH_1SDV_20200308T121318_20200308T121343_031584_03A39B_5C41
The text was updated successfully, but these errors were encountered: