Commit a94a8a7e authored by R.K.Garcia's avatar R.K.Garcia
Browse files

fix satellite_name cffi -> bytes -> str

parent 2b2abcd5
......@@ -79,7 +79,7 @@ class HimawariScene(object):
@property
def satellite_name(self):
meta = self.metadata
name = str(meta.satellite_name).strip(' \0')
name = ffi.string(meta.satellite_name).decode('UTF-8').strip(' \0')
return name
def __init__(self, path, sentinel_invalid=None, sentinel_outside_scan=None,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment