Error during using s1processor

Errors using S1Processor

Did anyone ever encounter this error before? I am using OTB 8.0.1 and gdal3.2.0. It seems downloading part is working well. However, then, it comes to the following error when processing the data. Part of the error and the whole conda list is shown below:

ERROR - Cannot set parameters to SARCalibration (from /home/wenzhe/Sentinel-1/Raw/S1A_IW_GRDH_1SDV_20180810T044208_20180810T044233_023179_0284AC_22D1/S1A_IW_GRDH_1SDV_20180810T044208_20180810T044233_023179_0284AC_22D1.SAFE/measurement/s1a-iw-grd-vv-20180810t044208-20180810t044233-023179-0284ac-001.tiff) -ram ‘4096’ -in ‘/home/wenzhe/Sentinel-1/Raw/S1A_IW_GRDH_1SDV_20180810T044208_20180810T044233_023179_0284AC_22D1/S1A_IW_GRDH_1SDV_20180810T044208_20180810T044233_023179_0284AC_22D1.SAFE/measurement/s1a-iw-grd-vv-20180810t044208-20180810t044233-023179-0284ac-001.tiff’ -lut ‘sigma’ -removenoise True
Traceback (most recent call last):
File “/home/wenzhe/miniconda3/envs/niubi/lib/python3.8/site-packages/s1tiling/libs/otbpipeline.py”, line 504, in create_step
app.SetParameters(parameters)
File “/home/wenzhe/Downloads/OTB-8.0.1-Linux64/lib/python/otbApplication.py”, line 3429, in SetParameters
self.SetParameterValue(param_key, param_value)
File “/home/wenzhe/Downloads/OTB-8.0.1-Linux64/lib/python/otbApplication.py”, line 3444, in SetParameterValue
return self.SetParameterInt(paramKey, value)
File “/home/wenzhe/Downloads/OTB-8.0.1-Linux64/lib/python/otbApplication.py”, line 3089, in SetParameterInt
val = _otbApplication.Application_SetParameterInt(self, parameter, value, hasUserValueFlag)
NotImplementedError: Wrong number or type of arguments for overloaded function ‘Application_SetParameterInt’.
Possible C/C++ prototypes are:
Application::SetParameterInt(std::string,int,bool)
Application::SetParameterInt(std::string,int)
ERROR - Execution of FullOrtho → /home/wenzhe/Sentinel-1/tmp/S2/33NWB/s1a_33NWB_vv_DES_007_20181021t044145.tif from /home/wenzhe/Sentinel-1/Raw/S1A_IW_GRDH_1SDV_20181021T044145_20181021T044210_024229_02A6A1_C036/S1A_IW_GRDH_1SDV_20181021T044145_20181021T044210_024229_02A6A1_C036.SAFE/measurement/s1a-iw-grd-vv-20181021t044145-20181021t044210-024229-02a6a1-001.tiff failed
Traceback (most recent call last):
File “/home/wenzhe/miniconda3/envs/niubi/lib/python3.8/site-packages/s1tiling/libs/otbpipeline.py”, line 671, in execute4dask
res = pipeline.do_execute().add_related_filename(pipeline.output)
File “/home/wenzhe/miniconda3/envs/niubi/lib/python3.8/site-packages/s1tiling/libs/otbpipeline.py”, line 641, in do_execute
step = crt.create_step(steps[-1], self.__in_memory, steps)
File “/home/wenzhe/miniconda3/envs/niubi/lib/python3.8/site-packages/s1tiling/libs/otbpipeline.py”, line 504, in create_step
app.SetParameters(parameters)
File “/home/wenzhe/Downloads/OTB-8.0.1-Linux64/lib/python/otbApplication.py”, line 3429, in SetParameters
self.SetParameterValue(param_key, param_value)
File “/home/wenzhe/Downloads/OTB-8.0.1-Linux64/lib/python/otbApplication.py”, line 3444, in SetParameterValue
return self.SetParameterInt(paramKey, value)
File “/home/wenzhe/Downloads/OTB-8.0.1-Linux64/lib/python/otbApplication.py”, line 3089, in SetParameterInt
val = _otbApplication.Application_SetParameterInt(self, parameter, value, hasUserValueFlag)
NotImplementedError: Wrong number or type of arguments for overloaded function ‘Application_SetParameterInt’.
Possible C/C++ prototypes are:
Application::SetParameterInt(std::string,int,bool)
Application::SetParameterInt(std::string,int)

packages in environment at /home/wenzhe/miniconda3/envs/niubi:

Name Version Build Channel

_libgcc_mutex 0.1 main
_openmp_mutex 5.1 1_gnu
attrs 21.4.0 pyhd3eb1b0_0
blas 1.0 mkl
boost-cpp 1.72.0 h9359b55_3 conda-forge
boto3 1.24.2 py38h06a4308_0
botocore 1.27.2 py38h06a4308_0
brotlipy 0.7.0 py38h27cfd23_1003
bzip2 1.0.8 h7b6447c_0
c-ares 1.18.1 h7f8727e_0
ca-certificates 2022.6.15 ha878542_0 conda-forge
cairo 1.16.0 h488836b_1006 conda-forge
certifi 2022.6.15 py38h578d9bd_0 conda-forge
cffi 1.15.0 py38h7f8727e_0
cfitsio 3.470 hb418390_7 conda-forge
charset-normalizer 2.0.4 pyhd3eb1b0_0
click 8.0.4 py38h06a4308_0
cloudpickle 2.1.0 pypi_0 pypi
cmake 3.20.2 h541d2ed_0 conda-forge
colorama 0.4.5 pyhd8ed1ab_0 conda-forge
cryptography 37.0.1 py38h9ce1e76_0
curl 7.82.0 h7f8727e_0
dask 2022.6.1 pypi_0 pypi
dataclasses 0.8 pyh6d0b6a4_7
decorator 5.1.1 pyhd3eb1b0_0
distributed 2022.6.1 pypi_0 pypi
ecmwf-api-client 1.6.3 pyhd8ed1ab_0 conda-forge
eodag 2.5.1 pypi_0 pypi
expat 2.4.4 h295c915_0
flasgger 0.9.5 pyhd8ed1ab_1 conda-forge
flask 2.0.3 pyhd3eb1b0_0
fontconfig 2.13.1 hba837de_1005 conda-forge
freetype 2.10.4 h0708190_1 conda-forge
freexl 1.0.6 h7f98852_0 conda-forge
fsspec 2022.5.0 pypi_0 pypi
gdal 3.2.0 py38hee9339b_0 conda-forge
geojson 2.5.0 py_0 conda-forge
geos 3.8.1 he1b5a44_0 conda-forge
geotiff 1.6.0 h5d11630_3 conda-forge
gettext 0.19.8.1 hf34092f_1004 conda-forge
giflib 5.2.1 h36c2ea0_2 conda-forge
glib 2.66.3 h58526e2_0 conda-forge
hdf4 4.2.15 h10796ff_3 conda-forge
hdf5 1.10.6 nompi_h6a2412b_1114 conda-forge
heapdict 1.0.1 pypi_0 pypi
icu 67.1 he1b5a44_0 conda-forge
idna 3.3 pyhd3eb1b0_0
importlib-metadata 4.12.0 pypi_0 pypi
importlib_resources 5.2.0 pyhd3eb1b0_1
intel-openmp 2021.4.0 h06a4308_3561
itsdangerous 2.0.1 pyhd3eb1b0_0
jinja2 3.0.3 pyhd3eb1b0_0
jmespath 0.10.0 pyhd3eb1b0_0
jpeg 9e h7f8727e_0
json-c 0.13.1 hbfbb72e_1002 conda-forge
jsonpath-ng 1.5.3 pyhd8ed1ab_0 conda-forge
jsonschema 4.4.0 py38h06a4308_0
kealib 1.4.14 hcc255d8_2 conda-forge
krb5 1.19.2 hac12032_0
ld_impl_linux-64 2.38 h1181459_1
libcurl 7.82.0 h0b77cf5_0
libdap4 3.20.6 hd7c4107_2 conda-forge
libedit 3.1.20210910 h7f8727e_0
libev 4.33 h7f8727e_1
libffi 3.2.1 hf484d3e_1007
libgcc-ng 11.2.0 h1234567_1
libgdal 3.2.0 h24f7f85_0 conda-forge
libgfortran-ng 12.1.0 h69a702a_16 conda-forge
libgfortran5 12.1.0 hdcd56e2_16 conda-forge
libglib 2.66.3 hbe7bbb4_0 conda-forge
libgomp 11.2.0 h1234567_1
libiconv 1.16 h516909a_0 conda-forge
libkml 1.3.0 hd79254b_1012 conda-forge
libnetcdf 4.7.4 nompi_h56d31a8_107 conda-forge
libnghttp2 1.46.0 hce63b2e_0
libpng 1.6.37 h21135ba_2 conda-forge
libpq 12.9 h16c4e8d_3
librttopo 1.1.0 hb271727_4 conda-forge
libspatialite 5.0.1 h6ec7341_0 conda-forge
libssh2 1.10.0 h8f2d780_0
libstdcxx-ng 11.2.0 h1234567_1
libtiff 4.2.0 hbd63e13_2 conda-forge
libuuid 2.32.1 h7f98852_1000 conda-forge
libuv 1.40.0 h7b6447c_0
libwebp-base 1.2.2 h7f8727e_0
libxcb 1.13 h7f98852_1004 conda-forge
libxml2 2.9.10 h68273f3_2 conda-forge
libxslt 1.1.33 hf705e74_1 conda-forge
locket 1.0.0 pypi_0 pypi
lxml 4.9.1 pypi_0 pypi
lz4-c 1.9.3 h295c915_1
markdown 3.3.4 py38h06a4308_0
markupsafe 2.1.1 py38h7f8727e_0
mistune 2.0.2 pyhd3eb1b0_0
mkl 2021.4.0 h06a4308_640
mkl-service 2.4.0 py38h7f8727e_0
mkl_fft 1.3.1 py38hd3c417c_0
mkl_random 1.2.2 py38h51133e4_0
msgpack 1.0.4 pypi_0 pypi
ncurses 6.3 h7f8727e_2
numpy 1.22.3 py38he7a7128_0
numpy-base 1.22.3 py38hf524024_0
objgraph 3.5.0 pypi_0 pypi
openjpeg 2.3.1 hf7af979_3 conda-forge
openssl 1.1.1o h166bdaf_0 conda-forge
owslib 0.24.1 pyhd3eb1b0_0
packaging 21.3 pypi_0 pypi
partd 1.2.0 pypi_0 pypi
pcre 8.45 h9c3ff4c_0 conda-forge
pip 22.1.2 pypi_0 pypi
pixman 0.38.0 h516909a_1003 conda-forge
ply 3.11 pypi_0 pypi
poppler 0.89.0 h669c267_1 conda-forge
poppler-data 0.4.11 hd8ed1ab_0 conda-forge
postgresql 12.9 h16c4e8d_3
proj 7.1.1 h966b41f_3 conda-forge
psutil 5.9.1 pypi_0 pypi
pthread-stubs 0.4 h36c2ea0_1001 conda-forge
pycparser 2.21 pyhd3eb1b0_0
pympler 1.0.1 pypi_0 pypi
pyopenssl 22.0.0 pyhd3eb1b0_0
pyparsing 3.0.9 pypi_0 pypi
pyproj 3.2.1 pypi_0 pypi
pyrsistent 0.18.0 py38heee7806_0
pyshp 2.1.3 pyhd3eb1b0_0
pysocks 1.7.1 py38h06a4308_0
pystac 1.4.0 pyhd8ed1ab_0 conda-forge
python 3.8.0 h357f687_5 conda-forge
python-dateutil 2.8.2 pyhd3eb1b0_0
python-graphviz 0.20 pypi_0 pypi
python_abi 3.8 2_cp38 conda-forge
pytz 2022.1 py38h06a4308_0
pyyaml 6.0 py38h7f8727e_1
readline 8.1.2 h7f8727e_1
requests 2.28.0 py38h06a4308_0
requests-futures 1.0.0 py_2
rhash 1.4.1 h3c74f83_1
s1tiling 0.3.2 pypi_0 pypi
s3transfer 0.6.0 py38h06a4308_0
setuptools 63.1.0 pypi_0 pypi
shapely 1.8.2 pypi_0 pypi
six 1.16.0 pyhd3eb1b0_1
sortedcontainers 2.4.0 pypi_0 pypi
sqlite 3.38.5 hc218d9a_0
tblib 1.7.0 pypi_0 pypi
tiledb 2.1.6 h91fcb0e_1 conda-forge
tk 8.6.12 h1ccaba5_0
toolz 0.11.2 pypi_0 pypi
tornado 6.2 pypi_0 pypi
tqdm 4.64.0 py38h06a4308_0
urllib3 1.26.9 py38h06a4308_0
usgs 0.3.4 pyhd8ed1ab_1 conda-forge
werkzeug 2.0.3 pyhd3eb1b0_0
wheel 0.37.1 pyhd3eb1b0_0
whoosh 2.7.4 pyhd3eb1b0_1
xerces-c 3.2.3 hfe33f54_1 conda-forge
xorg-kbproto 1.0.7 h7f98852_1002 conda-forge
xorg-libice 1.0.10 h7f98852_0 conda-forge
xorg-libsm 1.2.3 hd9c2040_1000 conda-forge
xorg-libx11 1.7.2 h7f98852_0 conda-forge
xorg-libxau 1.0.9 h7f98852_0 conda-forge
xorg-libxdmcp 1.1.3 h7f98852_0 conda-forge
xorg-libxext 1.3.4 h7f98852_1 conda-forge
xorg-libxrender 0.9.10 h7f98852_1003 conda-forge
xorg-renderproto 0.11.1 h7f98852_1002 conda-forge
xorg-xextproto 7.3.0 h7f98852_1002 conda-forge
xorg-xproto 7.0.31 h7f98852_1007 conda-forge
xz 5.2.5 h7f8727e_1
yaml 0.2.5 h7b6447c_0
zict 2.2.0 pypi_0 pypi
zipp 3.8.0 py38h06a4308_0
zlib 1.2.12 h7f8727e_2
zstd 1.4.9 ha95c52a_0 conda-forge

Thank you!!!

Hello,

S1Tiling hasn’t been validated yet with OTB 8.
To make it work without any crash you’d need at least the patch from this unmerged MR: Draft: Resolve "Adapt S1TIling to OTB 8.0" (!65) · Merge requests · s1-tiling / S1Tiling · GitLab

But then I haven’t took the time to validate all OTB applications are correctly chained, hence the “unmerged” state.

Sorry for the inconvenience.

In Python, NotImplementedError is an exception that is raised when a method or function is not implemented, or when a subclass does not implement an abstract method from its parent class. This exception can be raised intentionally to signal that the functionality is not yet implemented, or it can be raised accidentally due to a coding mistake.

Check if the method or function is intentionally not implemented: If the NotImplementedError is raised intentionally, you can leave the method or function as is, or provide a placeholder implementation that raises the NotImplementedError. However, if the NotImplementedError is raised accidentally, you need to provide a proper implementation.

If you are dealing with an python abstract method, you can either provide a concrete implementation for the method in the subclass, or mark the subclass as abstract and force its children to implement the method.

Hello David,

Would you mind telling me under which circumstances you’re observing this unexpected error?
Is it related to OTB 8 MR branch?

Hello,

Just to let you know that the branch related to OTB 8 has been finalized. It should be merged soon.