geodesymiami / rsmas_insar

RSMAS InSAR code
https://rsmas-insar.readthedocs.io/
GNU General Public License v3.0
62 stars 23 forks source link

topsStack troubleshooting: run_11_extract_stack_valid_region error #418

Closed falkamelung closed 3 years ago

falkamelung commented 4 years ago

If run_11 times out it may end up with only 2 dirs created.

lst ../stack
total 1792
drwxrwx--- 2 tg851601   4096 Sep 18 15:07 IW1
-rw-rw---- 1 tg851601 917059 Sep 18 15:20 IW2.xml
drwxrwx--- 2 tg851601   4096 Sep 18 15:20 IW2
-rw-rw---- 1 tg851601 908611 Sep 18 15:51 IW1.xml

When it runs again it throws an error because stack/IW3.xml' does not exist. The solution would be to remove /stack as if the directory does not exist it works fine.

minSecondary,maxSecondary 1 25
minReference,maxReference 1 25
minBurst, maxBurst:  1 25
writing  /scratch/05861/tg851601/SpainSenDT81/stack/IW2.xml
******************
swath:  3
Traceback (most recent call last):
  File "/scratch/05861/tg851601/code/rsmas_insar/sources/isce2/contrib/stack/topsStack/extractCommonValidRegion.py", line 110, in <module>
    main()
  File "/scratch/05861/tg851601/code/rsmas_insar/sources/isce2/contrib/stack/topsStack/extractCommonValidRegion.py", line 96, in main
    topReference = ut.loadProduct(os.path.join(inps.reference , 'IW{0}.xml'.format(swath)))
  File "/scratch/05861/tg851601/code/rsmas_insar/sources/isce2/contrib/stack/topsStack/s1a_isce_utils.py", line 26, in loadProduct
    obj = pm.loadProduct(xmlname)
  File "/scratch/05861/tg851601/code/rsmas_insar/3rdparty/miniconda3/lib/python3.7/site-packages/isce/components/iscesys/Component/ProductManager.py", line 25, in loadProduct
    self.load(filename)
  File "/scratch/05861/tg851601/code/rsmas_insar/3rdparty/miniconda3/lib/python3.7/site-packages/isce/components/iscesys/Component/Configurable.py", line 1410, in load
    tmpProp, tmpFact, tmpMisc = FP.parse(filename)
  File "/scratch/05861/tg851601/code/rsmas_insar/3rdparty/miniconda3/lib/python3.7/site-packages/isce/components/iscesys/Parsers/XmlParser.py", line 41, in parse
    root = ET.parse(filename)
  File "/scratch/05861/tg851601/code/rsmas_insar/3rdparty/miniconda3/lib/python3.7/xml/etree/ElementTree.py", line 1197, in parse
    tree.parse(source, parser)
  File "/scratch/05861/tg851601/code/rsmas_insar/3rdparty/miniconda3/lib/python3.7/xml/etree/ElementTree.py", line 587, in parse
    source = open(source, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/scratch/05861/tg851601/SpainSenDT81/stack/IW3.xml'