SliDEM-project / SliDEM-python

Python package for the SliDEM project
https://hub.docker.com/repository/docker/loreabad6/slidem
Apache License 2.0
19 stars 2 forks source link

2_dem_generation no 'getMetadataRoot()' attribute #46

Open vdevauxchupin opened 1 year ago

vdevauxchupin commented 1 year ago

Hello,

I am discovering your pipeline as I would like to generate DEMs for a glacier in Alaska. I tried different AOIs, different times and sizes, and I am always blocked at the same step: generating the DEMs with 2_dem_generation.py.

The script encounters the following error:

Traceback (most recent call last):
  File "/scripts/2_dem_generation.py", line 941, in <module>
    subset_buffer=args.aoi_buffer
  File "/scripts/2_dem_generation.py", line 683, in run_P1_interferogram
    pass_metadata_p1 = product_1.getMetadataRoot() \
AttributeError: 'NoneType' object has no attribute 'getMetadataRoot'

I traced it back to SNAP, and concluded that it could come from bad images, but even after changing AOI and time-window I still got the same issue. Depending on which AOI or which time-window I use, I get between 2 and 10 .zip images.

Have you encountered that issue before ? If not, could you recommend an area that you know that works well with the code ?

Thank you !

ps: it's awesome to see people finally creating a pipeline for SAR DEM generation !!

loreabad6 commented 1 year ago

Hi @vdevauxchupin, thank you for pointing me to this issue. I am very happy more people find the pipeline useful 😄

I tested with my study areas and the script works rather fine. It could indeed be the time frame or AOI, would you mind shring which dates, or even which scene IDs you are getting the error from?

vdevauxchupin commented 1 year ago

I chose a timeframe going from 01/05/2020 to 30/06/2020. It downloads 5 images in total I think

loreabad6 commented 1 year ago

Hi @vdevauxchupin, sorry for the late come back, I suspect this has something to do with the image itself. Do you have some scene IDs that give you trouble so I can test on my end? We use for example these pair in Norway without issues:

vdevauxchupin commented 1 year ago

Hi, no worries ! Two IDs I had were:

(I was using the SBAS system of vertex manually to find the smallest temporal baseline for the biggest spatial baseline)

Maybe I just messed up my docker installation, it could also be that!