question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dem_create hangs when using gdal 3.4.1 and pyroSAR 0.16

See original GitHub issue

If using the latest version of pyroSAR (0.16), dem_create hangs when trying to mosaic a DEM from a VRT built with the latest version of gdal (3.4.1). No error message appears. Executing the same commands using gdal 3.3 and pyroSAR 15.1 works fine:

search = cat.search(
    collections = "COPERNICUS_DEM_1ARC_COG",
    bbox=[lon1, lat1, lon2, lat2]
)

items = search.get_all_items()
item_json = items.to_dict()

tiles_to_mosaic=[]

for i in range (len(items)):
   tile=item_json['features'][i]['assets']['data']['href']
   tiles_to_mosaic.append(tile)

vrt=gdal.BuildVRT(outdir + "/dem_tmp.vrt", tiles_to_mosaic)

dem_create(src=vrt, dst=outdir + "/dem.tif", geoid_convert=True, geoid="EGM2008")

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
peterfriedlcommented, Mar 7, 2022

@johntruckenbrodt thanks a lot for fixing this! Using all available threads, with version 0.16.1 the execution time of dem_create has been reduced to just 2 seconds. 😃

0reactions
johntruckenbrodtcommented, Mar 7, 2022

Okay after the discussion in the GDAL issue above pyroSAR is now using different EGM lookup files, see https://github.com/johntruckenbrodt/pyroSAR/commit/598ac39af7ffc303777e6d10b931f8d7788afbae. @peterfriedl, I will publish pyroSAR version 0.16.1 later. Perhaps this already fixes this issue. Also interesting in this context: https://github.com/OSGeo/gdal/issues/3630.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release 0.19 the pyroSAR Developers
Starting with release Yakkety (16.10), Ubuntu comes with GDAL >2.1. You can install it like this: sudo apt-get install python-gdal ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found