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

problem occurring in coregistering dems #24

Closed
Nauman95 opened this issue Aug 28, 2020 · 2 comments
Closed

problem occurring in coregistering dems #24

Nauman95 opened this issue Aug 28, 2020 · 2 comments

Comments

@Nauman95
Copy link

dear sir I am trying to co register SRTM dem and TanDEM-X dem for all indus basin of high mountain asia. I am using WSL Ubuntu terminal on windows 10. when I process the code it ends in crashing my system. the attached image is taken just before it crashes the system and restarts it. kindly help me how can I deal with this problem.
IMG_20200829_032411

@dshean
Copy link
Owner

dshean commented Aug 28, 2020

Hi @Nauman95. Hard to diagnose without seeing error messages, and running this should not restart your system.
Those are really large input DEMs - each has 314M float32 values, which will occupy 1.26 GB of RAM. Loading them into memory and storing results of subsequent calculations (each additional grid occupies another 1.26 GB) is likely filling your RAM. I recommend you reduce the input DEM size/resolution or try running on a computer with more RAM if that is an option.
Also, there should be limited translation offset between SRTM and TDX for such a large area (assuming both products use consistent projection/datum). But there will be local offsets, likely 10s of meters over smaller features, and these are not uniform across the full DEM area you're considering. So if you crop to a smaller area, you will get better alignment for features of interest. Hopefully that helps.

@Nauman95
Copy link
Author

Nauman95 commented Aug 29, 2020

Dear Shean sir, on your suggestion I reduced the resolution, also reduced the spatial coverage and selected the area where glaciers are preasent (upper indus basin). This worked and i got the results. Thank you for your kind guidance.

@dshean dshean closed this as completed Sep 25, 2020
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