Comments (7)
@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. :-)
from pyrosar.
Thanks @peterfriedl. I will investigate this next week. In the meantime you can make use of the new arguments pbar
and threads
to check the status and (if it doesn't hang but is just slow) increase the speed.
from pyrosar.
Thanks @johntruckenbrodt for the hint to the pbar
and threads
arguments. Indeed, dem_create
does not hang, it's just super slow when using its default configuration (a few seconds with pyroSAR 0.15.1 and gdal 3.3 vs. > 11 minutes with pyroSAR 0.16 and gdal 3.4.1). I tried different numbers of 56 available threads and found the "sweet spot" of our system to be at only 2 threads. Adding more threads made things even worse by leading to execution times of up to > 30 minutes. Using threads=2
reduced the execution time to 7 minutes, but this is still far away from the previous execution times of just a few seconds, achieved with the default configurations of dem_create.
from pyrosar.
Thanks @peterfriedl, this is super valuable feedback. I did notice dem_create
taking quite long, but thought it was just due to the large 10 m DEM mosaics I was creating at the time. The configuration of 0.15.1 was to use multithreading but leave the GDAL_NUM_THREADS
variable untouched. I introduced the threads
argument because it was so slow. I suspect this could have something to do with the GDAL version. Would you mind checking this? You could create a conda env like so:
conda create --name test pyroSAR gdal=3.3
from pyrosar.
@johntruckenbrodt I am not sure whether it has something to do with the gdal-version in general. I tried both: a) gdal 3.3.3 + pyroSAR 0.16 and b) gdal 3.4.1 + pyroSAR 0.16. in case of b) dem_create runs super slow and in case of a) dem_create hangs.
from pyrosar.
If it hangs then this might be due to function get_egm_lookup. However, there are definitely strange things going on. I have opened a new GDAL issue: OSGeo/gdal#5414.
from pyrosar.
Okay after the discussion in the GDAL issue above pyroSAR is now using different EGM lookup files, see 598ac39.
@peterfriedl, I will publish pyroSAR version 0.16.1 later. Perhaps this already fixes this issue.
Also interesting in this context: OSGeo/gdal#3630.
from pyrosar.
Related Issues (20)
- offline mode for auxdata functions
- Error reading Tandem-X HOT 6
- 'utf-8' codec can't decode byte 0xe9 in position 662: invalid continuation byte HOT 5
- Replacing SciHub URLs? HOT 4
- CDSE zipfiles with implicit directories fail to identify
- sqlite3.OperationalError: no such function: spatialite_version
- Geocode function stopped working: requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0) HOT 1
- S1 OSV download from CDSE
- Error when running pyroSAR.snap.geocode HOT 1
- Issue with RuntimeError: data format not supported HOT 3
- S1 OSV download from ASF HOT 2
- fix one cause for GammaUnknownError: calloc_2d: memory allocation error for data values HOT 2
- Issue with GeoCode in last version of pyroSAR HOT 4
- Additional workflow on ENVI file output from geocode HOT 2
- Problem with orbit files HOT 5
- [Archive] use geometry instead of bounding box HOT 6
- Support for scenes from CDSE
- Help starting with PyroSAR HOT 12
- 'NoneType' object has no attribute 'text' with removeS1BorderNoiseMethod='pyroSAR' and old S-1 datasets HOT 3
- cann't use snap HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyrosar.