DHI-GRAS/senEtSnapSta

Error by download fro sentenil

Closed this issue · 18 comments

Dear Sirs
I start to use sen-et in SNAP
by downloading the images I got the following error :
ERROR:'charmap' codec can't decode byte 0x81 in position 285: character maps to
Finished tool execution in 0 seconds
would you please help yo solve the problem of error?
Thank you

That is a UnicodeDecodeError, happening probably because some text file or string is being decoded using a system encoding which does not include this character.

What OS are you on and what localization/language? Probably Windows? Do you have special characters in your user directory name (wild guess)? 0x81 corresponds to ü in Latin-1 (code page 850)...

@AymanRahman could you please provide more description of the error: exactly when does it happen, which paths did you set, the full error log or screenshot, etc. Currently it's very hard to figure out what is happening.

Unfortunately I cannot see the attached screenshot. Maybe you need to attach it through GitHub website and not as a reply to email.

I think the problem might be with your geojson file (Jouf.geojson). Could you try with a different geojson file or post the content of that one here.

Also, please change your password for scihub because it is visible in the screenshot.

We suspect that the error is because your AOI GeoJSON file contains invalid characters.

If possible, you could post your file Jouf.geojson here (just zip and drag and drop on this web page or paste contents of the file).

image

Else, try creating a new, clean GeoJSON file (no attributes) of your area of interest with http://geojson.io or so.

{"type":"FeatureCollection","features":[{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[37.034912109375,31.475524020001806],[37.99072265625,30.486550842588485],[37.672119140625,30.334953881988564],[37.518310546875,29.99300228455108],[39.00146484375,28.168875180063345],[40.506591796875,28.835049972635176],[40.726318359375,28.97931203672246],[40.75927734375,29.36302703778376],[41.90185546875,30.097613277217132],[41.484375,30.524413269923986],[40.869140625,30.713503990354965],[40.133056640625,30.760718908944472],[39.891357421875,30.873940237887624],[39.13330078125,30.949346915468563],[38.155517578125,30.92107637538488],[37.85888671875,31.25037814985571],[37.957763671875,31.737511125687828],[37.034912109375,31.475524020001806]]]}}]}

Hallo
Would you please send me an example of file geojson
Thank you

I just noticed that the screen dump you posted shows a different error (Expecting value: line 1 column 1 (char 0)) than the one you originally posted ('charmap' codec can't decode byte).

Both errors are most probably related to the GeoJSON file being faulty. The new error is most likely due to the file being empty.

The GeoJSON you posted above is fine. Please try making a new file with Notepad, paste that string into it, save it, then everything should be fine.

This is not an error. There were just no scenes found for your query. Sentinel-2 L2A data is unfortunately not available on SciHub globally for the full time period.

Perhaps @radosuav can advise what to do in this case?

Sentinel-2 Level 2A data should cover the whole globe for recent dates and @AymanRahman is searching in 2020. I just tried your AOI and date range and I do find a lot of images.

I suspect you typed in your SciHub password or username wrong. You need to scroll up a bit in the execution output panel and you should see the 401 Authentication message:

HTTP status 401 Unauthorized: 
# HTTP Status 401 - Full authentication is required to access this resource
 **type** Status report
 **message** _Full authentication is required to access this resource_
 **description** _This request requires HTTP authentication._
* * *
### Apache Tomcat/8.0.36
beginPosition:[2020-01-01T00:00:00Z TO 2020-04-01T23:59:59Z] cloudcoverpercentage:[0 TO 70] filename:* platformname:Sentinel-2 producttype:S2MSI2A footprint:"Intersects(POLYGON((37.0349 31.4755,37.9907 30.4866,37.6721 30.3350,37.5183 29.9930,39.0015 28.1689,40.5066 28.8350,40.7263 28.9793,40.7593 29.3630,41.9019 30.0976,41.4844 30.5244,40.8691 30.7135,40.1331 30.7607,39.8914 30.8739,39.1333 30.9493,38.1555 30.9211,37.8589 31.2504,37.9578 31.7375,37.0349 31.4755)))"
Found 0 scenes
Finished tool execution in 0 seconds

'''

Thank you so much

I checked my username and password which is correct. still I got the same error.

  • Created the gson from geojson.ai.
  • what is the reason?