Glance hates Unicode (UTF-8?)
glance reportgen --nolonlat --outputpath tmp glance-problems.nc glance-problems.nc --quiet ^x$
Traceback (most recent call last):
File "/home/adesmet/bin/glance", line 11, in <module>
load_entry_point('uwglance', 'console_scripts', 'glance')()
File "/home/adesmet/src/glance/UW-Glance/pyglance/glance/compare.py", line 1607, in main
rc = lower_locals[args[0].lower()](*args[1:])
File "/home/adesmet/src/glance/UW-Glance/pyglance/glance/compare.py", line 1388, in reportGen
return reportGen_library_call(a_path, b_path, args[2:], tempOptions)
File "/home/adesmet/src/glance/UW-Glance/pyglance/glance/compare.py", line 1014, in reportGen_library_call
globalAttrs=globalAttrInfo,)
File "/home/adesmet/src/glance/UW-Glance/pyglance/glance/report.py", line 173, in generate_and_save_summary_report
_make_and_save_page((outputPath + "/" + reportFileName), 'mainreport.txt', **kwargs)
File "/home/adesmet/src/glance/UW-Glance/pyglance/glance/report.py", line 41, in _make_and_save_page
fileToWrite.write(tempTemplate.render(**kwargs))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2018' in position 6913: ordinal not in range(128)
(I've omitted some deprecation warnings that I think are a different issue. They're in #11 (closed).)
The file in question: glance-problems.nc.gz. You'll need to uncompress it.
u'\u2018'
is ‘
(left single quotation mark), and indeed it's present in the file's global attributes. Specifically the summary
attribute is:
"The Land Surface (Skin) Temperature product consists of pixels containing the skin temperatures for each ‘clear’ or ‘probably clear’ land surface pixel. This product is generated from a regression algorithm that linearly combines ABI surface emissivity data, brightness temperature, and brightness temperature differences derived from top of atmosphere radiances from ABI bands with wavelengths 11.2 and 12.3 um. Product data is generated both day and night."
There are "smart" single quotes around "clear" and "probably clear". It may be wrong for those characters to be in the file in the first place, but ideally glance would handle it anyway.