SAR-ARD / s1ard

Sentinel-1 ARD Prototype Processor
MIT License
26 stars 6 forks source link

GRD buffering is attempted even when no neighbors exist #134

Closed johntruckenbrodt closed 1 year ago

johntruckenbrodt commented 1 year ago

Example scene: S1A_IW_GRDH_1SDV_20211020T191351_20211020T191420_040207_04C343_BD6A

### buffering scene with neighboring acquisitions
Traceback (most recent call last):
  File "nrb_env\Scripts\s1_nrb-script.py", line 33, in <module>
    sys.exit(load_entry_point('S1-NRB', 'console_scripts', 's1_nrb')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "nrb_env\Lib\site-packages\click\core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "nrb_env\Lib\site-packages\click\core.py", line 1055, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "nrb_env\Lib\site-packages\click\core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "nrb_env\Lib\site-packages\click\core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "nrb_env\Lib\site-packages\click\decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "s1_nrb\S1_NRB\cli.py", line 61, in cli
    S1_NRB.process(config_file=config_file, section_name=section, debug=debug, **extra)
  File "s1_nrb\S1_NRB\processor.py", line 244, in main
    snap.process(scene=scene.scene, outdir=config['rtc_dir'],
  File "s1_nrb\S1_NRB\snap.py", line 684, in process
    grd_buffer(src=out_pre, dst=out_buffer, workflow=out_buffer_wf,
  File "s1_nrb\S1_NRB\snap.py", line 205, in grd_buffer
    wf.insert_node(asm, before=read_ids)
  File "pyroSAR\pyroSAR\snap\auxil.py", line 994, in insert_node
    newnode.source = before
    ^^^^^^^^^^^^^^
  File "pyroSAR\pyroSAR\snap\auxil.py", line 1261, in source
    raise TypeError(
TypeError: node SliceAssembly has multiple sources, which must be reset using a list, not str