[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [h5md-user] units module
From: |
Peter Colberg |
Subject: |
Re: [h5md-user] units module |
Date: |
Thu, 17 Oct 2013 14:09:45 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Oct 17, 2013 at 07:34:15PM +0200, Pierre de Buyl wrote:
> It seems so. But I cannot read the attached file in Python, can you?
Yup, works fine:
import h5py
f = h5py.File("h5ex_t_vlstring.h5", "r")
print(" ".join(f["DS1"][:])) --> Parting is such sᏠsorrow
The units module could define two alternate SI notations though, one
using short symbols and the other using long identifiers. For example,
a symbol is "Å" (in UTF-8 encoding), and the corresponding identifier
is "angstrom" (in ASCII encoding). The former appears more suited for
human consumption, the latter more suited for machine consumption.
> By the way, I had to find a unicode character table to enter an Å.
You are missing out! :-)
There is a wonderful world of Unicode characters hidden in your
keyboard. Many computers suited for scientific workers support
Compose key sequences [1, 2] that provide access to a subset of
Unicode characters. A compose key sequence is a combination of
pressing the "Compose" key and two other keys.
[1] https://en.wikipedia.org/wiki/Compose_key
[2] http://www.hermit.org/Linux/ComposeKeys.html
Usually desktop environments provide a way to configure the Compose
key, e.g., to the Menu key (between Right Alt and Right Ctrl) on
Windows-style keyboards, or the Right Ctrl key on other keyboards.
À bientôt,
Peter
- [h5md-user] units module, Peter Colberg, 2013/10/11
- Re: [h5md-user] units module, Pierre de Buyl, 2013/10/14
- Re: [h5md-user] units module, Konrad Hinsen, 2013/10/16
- Re: [h5md-user] units module, Pierre de Buyl, 2013/10/16
- Re: [h5md-user] units module, Felix Höfling, 2013/10/16
- Re: [h5md-user] units module, Peter Colberg, 2013/10/16
- Re: [h5md-user] units module, Pierre de Buyl, 2013/10/17
- Re: [h5md-user] units module,
Peter Colberg <=
- Re: [h5md-user] units module, Pierre de Buyl, 2013/10/17
- Re: [h5md-user] units module, Pierre de Buyl, 2013/10/17
- Re: [h5md-user] units module, Peter Colberg, 2013/10/17
- Re: [h5md-user] units module, Peter Colberg, 2013/10/17
- Re: [h5md-user] units module, Konrad Hinsen, 2013/10/19
- Re: [h5md-user] units module, Peter Colberg, 2013/10/19
- Re: [h5md-user] units module, Pierre de Buyl, 2013/10/21
- Re: [h5md-user] units module, Konrad Hinsen, 2013/10/17
- Re: [h5md-user] units module, Pierre de Buyl, 2013/10/18
- Re: [h5md-user] units module, Konrad Hinsen, 2013/10/18