Skip to content

Commit

Permalink
Fix wrong Greek units
Browse files Browse the repository at this point in the history
  • Loading branch information
zxdawn committed May 1, 2020
1 parent 4463c07 commit cdba35f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions satpy/readers/lmi_l2.py
Expand Up @@ -115,6 +115,10 @@ def get_metadata(self, data, ds_info):
"""Get metadata."""
metadata = {}
metadata.update(data.attrs)
units = data.attrs['units']
# fix the wrong unit "uJ/m*m/ster"
if not units.isascii():
metadata['units'] = b'\xc2\xb5J/m*m/ster'
metadata.update(ds_info)
metadata.update({
'platform_shortname': self.filename_info['platform_id'],
Expand Down

0 comments on commit cdba35f

Please sign in to comment.