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 in stitching using dem.py #919

Open
priyanka-duIn opened this issue Jan 6, 2025 · 2 comments
Open

problem in stitching using dem.py #919

priyanka-duIn opened this issue Jan 6, 2025 · 2 comments

Comments

@priyanka-duIn
Copy link

Hello all
I am having problem using dem.py. I am trying to stitch the DEM but constantly getting an error.

dem.py -a stitch -b 31 32 78 79 -r -s 1 -c

Using default ISCE Path: /home/miniforge3/envs/isce2/lib/python3.11/site-packages/isce
curl -n -L -c $HOME/.earthdatacookie -b $HOME/.earthdatacookie -k -f -O http://step.esa.int/auxdata/dem/SRTMGL1/N31E078.SRTMGL1.hgt.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to open the file N31E078.SRTMGL1.hgt.zip: Permission denied
0 17.2M 0 13418 0 0 21521 0 0:14:01 --:--:-- 0:14:01 21503
curl: (23) Failure writing output to destination
2025-01-06 16:12:00,506 - isce.contrib.demUtils.DemStitcher - WARNING - There was a problem in retrieving the file http://step.esa.int/auxdata/dem/SRTMGL1/N31E078.SRTMGL1.hgt.zip. Exception
Could not create a stitched DEM. Some tiles are missing
N31E078.SRTMGL1.hgt.zip = failed

I stitched the DEM using the same command earlier and could able to stitch but now it's not working. I have also tried -u http://step.esa.int/auxdata/dem/SRTMGL1/ and -n -w option but still same warning and error!.

Could anyone help me in this regard?

Thank you!

@Karthi-Wolf
Copy link

Karthi-Wolf commented Jan 9, 2025

conda activate isce2

cd /home/....../DEM

export PATH=$PATH:/home/incois/miniconda3/envs/isce2/lib/python3.9/site-packages/isce/applications

cd /home/......./DEM

unzip '*.zip'

gdal_merge.py -o stitched_dem.tif N19E084.hgt N19E085.hgt N20E084.hgt N20E085.hgt
I have tried and it worked . let me know.

@priyanka-duIn
Copy link
Author

Hi
It's not working for me.
I am getting the following error

Using default ISCE Path: /home/..........isce2/lib/python3.11/site-packages/isce
curl -n -L -c $HOME/.earthdatacookie -b $HOME/.earthdatacookie -k -f -O https://e4ftl01.cr.usgs.gov/MEASURES/SRTMGL1.003/2000.02.11/N31E078.SRTMGL1.hgt.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 498 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
curl: (22) The requested URL returned error: 401
2025-01-09 13:53:49,330 - isce.contrib.demUtils.DemStitcher - WARNING - There was a problem in retrieving the file https://e4ftl01.cr.usgs.gov/MEASURES/SRTMGL1.003/2000.02.11/N31E078.SRTMGL1.hgt.zip. Exception
Could not create a stitched DEM. Some tiles are missing
N31E078.SRTMGL1.hgt.zip = failed

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