johntruckenbrodt / pyroSAR

framework for large-scale SAR satellite data processing
MIT License
513 stars 112 forks source link

Error when running pyroSAR.snap.geocode #277

Closed 1milenac closed 12 months ago

1milenac commented 1 year ago

Hello, I am sorry but this is my first post. I am trying to run geocode on my S1 zip file: geocode( infile='/net/XX/XX/XX/comparison/storage/archive/2022-01-20/S1A_IW_GRDH_1SDV_20220120T163555_20220120T163620_041547_04F0E9_A2D7.SAFE.zip', outdir='/net/XX/XX/XX/comparison/storage/archive/2022-01-20', spacing=10, refarea=["sigma0"], demName="SRTM 3Sec", polarizations="VV", scaling="linear", speckleFilter="Lee Sigma", demResamplingMethod="BILINEAR_INTERPOLATION", imgResamplingMethod="BILINEAR_INTERPOLATION", nodataValueAtSea=True, allow_RES_OSV=False, removeS1ThermalNoise=False, removeS1BorderNoise=False, terrainFlattening=False, ) but keep getting the following error:

Traceback (most recent call last): File "/net/XX/XX/XX/final_env/lib/python3.6/site-packages/requests/models.py", line 910, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib64/python3.6/json/init.py", line 354, in loads return _default_decoder.decode(s) File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 16, in File "/net/XX/XX/XX/final_env/lib/python3.6/site-packages/pyroSAR/snap/util.py", line 375, in geocode orb = orb_parametrize(scene=id, formatName=formatName, allow_RES_OSV=allow_RES_OSV) File "/net/XX/XX/XX/final_env/lib/python3.6/site-packages/pyroSAR/snap/auxil.py", line 1658, in orb_parametrize match = scene.getOSV(osvType=osv_type, returnMatch=True) File "/net/XX/XX/XX//final_env/lib/python3.6/site-packages/pyroSAR/drivers.py", line 1754, in getOSV url_option=url_option) File "/net/XX/XX/XX//final_env/lib/python3.6/site-packages/pyroSAR/S1/auxil.py", line 421, in catch items = self.catch_gnss(sensor, start, stop, osvtype) File "/net/XX/XX/XX//final_env/lib/python3.6/site-packages/pyroSAR/S1/auxil.py", line 351, in catch_gnss response_json = response.json()['feed'] File "/net/XX/XX/XX//final_env/lib/python3.6/site-packages/requests/models.py", line 917, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: [Errno Expecting value] <!doctype html>

The Sentinels Scientific Data Hub

Copernicus Sentinel Data is now available on the Copernicus Data Space Ecosystem

https://dataspace.copernicus.eu

The data was downloaded through Data Space Copernicus API [link](https://documentation.dataspace.copernicus.eu/APIs/OData.html). Isnt possible to preprocess this data? I am using Linux ac0736 4.18.0-477.27.1.el8_8.x86_64 and pyroSAR Version: 0.22.1.
johntruckenbrodt commented 12 months ago

Hi @1milenac this looks like the problem reported in https://github.com/johntruckenbrodt/pyroSAR/issues/274. Using the latest version 0.23.0 should fix this. Feel free to reopen the issue if necessary.