h5md-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h5md-user] Finalization of units module


From: Pierre de Buyl
Subject: Re: [h5md-user] Finalization of units module
Date: Tue, 14 Jan 2014 14:01:34 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Jan 14, 2014 at 01:44:22PM +0100, Pierre de Buyl wrote:
> On Tue, Jan 14, 2014 at 01:32:47PM +0100, Pierre de Buyl wrote:
> > 
> > Please find attached:
> > 1. A python program to generate the xml file for use with udunits2. This 
> > program
> > is not very elegant, I checked the resulting xml file and it seems to work 
> > as
> > intended.
> > 2. The resulting xml file.
> > 3. Usage:
> > python generate_units_xml_file.py | iconv -t ASCII > h5md_units_SI.xml
> > 
> > This use of udunits2 is purely for (i) convenience and (ii) a practical way 
> > to
> > test the uses of the unit system. It does not mean in any way that we should
> > follow udunits2 practice in the development of H5MD. This is quite clear now
> > that Peter used the BIPM data to generate the unit list.
> > 
> 
> The handling of "degC" is not correct, I just noticed it. Fix coming, I hope.

At the expense of more special case handling, here are the updated files.

The xml file is usable with both udunits2 and Peter's lua-units program.

P

Attachment: generate_units_xml_file.py
Description: Text Data

Attachment: h5md_units_SI.xml
Description: application/xml


reply via email to

[Prev in Thread] Current Thread [Next in Thread]