h5md-user
[Top][All Lists]
Advanced

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

[h5md-user] Writing vs reading


From: Olaf Lenz
Subject: [h5md-user] Writing vs reading
Date: Fri, 10 Jan 2014 16:57:27 +0100

Hi!

Ultimately, the problem that seems to reoccur in many of the discussions is the question who will have to do the most effort: the writer of h5md, or the reader?
We have to decide who we want to give that effort. Depending on that decision, we will have to make the specs either very restrictive and clear, or to allow any meaningful use.

Let me show this in the case of particle positions. I see two possible solutions:

1. Reader-friendly
In a "reader-friendly" approach, we would specify exactly how positions in periodic boundary conditions have to be stored in h5md, e.g. "image" has to always exist, and "position" always has to be within the primary box. This makes reading the positions from a h5md file simpler.
However, it comes at the cost that the writer of the file will have to prepare the data exactly as h5md specifies it.

2. Writer-friendly
In a "writer-friendly" approach, we would allow any possible case how to store the positions as long as it is unique (with image, without image, inside the primary box, outside the primary box, whatever).
This comes at the cost that reading the file is more complex.

Which of these solutions do we prefer? I have the feeling that so far, h5md is constructed in a "writer-friendly" way. Is that what we want?

Some more points on this decision:
Any opinions on that?

Olaf

--
Dr. rer. nat. Olaf Lenz
Institut für Computerphysik, Allmandring 3, D-70569 Stuttgart
Phone: +49-711-685-63607

reply via email to

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