johntruckenbrodt / pyroSAR

framework for large-scale SAR satellite data processing
MIT License
491 stars 110 forks source link

UnicodeDecodeError & Range-doppler #227

Open Jeon-seo-young opened 1 year ago

Jeon-seo-young commented 1 year ago

Hello. I am using pyroSAR to process images. However, I keep getting 2 errors in this runcell.

1) About the error message <UnicodeDecodeError: 'utf-8' code can't code byte 0xb4 in position 620: invalid start byte> When I run this, the file is generated and then the error <UnicodeDecodeError: 'utf-8' code can't code byte 0xb4 in position 620: invalid start byte> appears. Can you tell me what I should do in this case?

2) Range-doppler

I've understood that corrects the orientation of the image. However, with the error message 1), the resulting image's direction does not change in SNAP. Can you tell me how I change direction? (The image below should be rotated 90 degrees to the left.)

johntruckenbrodt commented 1 year ago

HI @Jeon-seo-young. It looks like utf-8 is not suited for decoding the binary error message. Perhaps your file/folder names are causing the trouble. Is this Korean? It could be that utf-8 needs to be replaced with something else. What do you get when doing something like this with your alphabet:

'üäöß'.encode().decode()