TWiki> IVOA Web>IvoaSemantics>VOUnitsRFC (revision 17)EditAttach

VOUnits 1.0 RFC

VOUnits 1.0-20130429 is now ready for TCG review. The review will run for four weeks, from 30 April to (the end of) 28 May.

The document is available at http://www.ivoa.net/documents/VOUnits/ This incorporates (somewhat overdue) changes after the RFC process represented by the comments below.

The VOUnits document is intended to describe existing and recommended practice for writing units specifications in IVOA protocols:

  • Abstract: This document describes common practices in manipulating units in astronomical metadata and will define a means of consistent representation within VO services. The core of the document contains the rules for writing string representations of unit labels, called VOUnits.
Existing commentary:

Note on implementations: This document does not define a protocol, but summarises existing practice, and recommends good practice for future IVOA specification. In consequence, the existing software which parses units specifications (summarised in the document) can be regarded as 'implementations' of the document. In addition, the Unity library, which was written in part to validate some of the document's conclusions, can be regarded as an implementation of the standard.


Comments

Please follow roughly the following pattern:

Off-line comments (2012 August)

Norman Gray received some direct comments from Tim Jenness and Markus Demleitner. These were in part typo-level comments, but included some more significant points about the substance of the document. Many thanks to both.

  • Mismatch between table 8 and appendix A.4 (noted: to be fixed in next version)
  • Various style/readability points about included grammars (clarified)
  • Unclear discussion about what units are permitted/recommended/deprecated (included new summary table of unit recommendations)
  • Perhaps mention ISO-80000-13 and IEEE-1541 binary prefixes (kibi-, mibi-, etc) (noted, and text added to the document to confirm that we don't, and don't intend to, talk about these)
  • Discussion of candela vs centi-day and similar (noted, and text possibly clarified; not completely sure what to do here)
  • No discussion of records/arrays of units (noted, and text clarified)
-- NormanGray (2012-09-02)

Additional comments from Markus (2012-09-03)

  • We should at least consider allowing "modern-style" floats (2.2e19 rather than 2.2 10+19); it's still more ambiguity, but in this case it's probably helping a lot towards what people expect.
  • We definitely should allow float mantissas to have no dot at all, i.e., have them match [0-9]+(\.[0-9]*)?. It's the right thing mathematically, and it'll save a world of confusion.
-- MarkusDemleitner - 2012-09-03

I'm reluctant to be innovative here, since part of the goal of the VOUnits work is to say "If you write in the VOUnits subset, then others have no excuse for not being able to parse what you write". -- NormanGray - 2013-04-29

Comments from Mark Taylor

Looks good. A couple of very minor things

  • comments on document status in "Status of this document" and "Acknowledgements" sections can probably be adjusted
  • "unit parameter" -> "unit attribute" in sec 1.1?
  • "problem of try to best accomodate" -> "problem of trying to best accommodate" in sec 3.6?
  • some problem with the accents in the BIPM reference in the bibliography
-- MarkTaylor - 2012-09-03

All fixed, I think. I don't follow the issue about the "Status of this document" section, but this has been tidied up a bit, so perhaps the problem has been fixed. -- NormanGray - 2013-04-29


Comments from Matthew Graham / VAO (2012-10-01)

Generally there was a feeling that the language in the specification could be clearer on what the basis of this recommendation is, i.e., it's essentially the FITS units convention. Also:

  • There is no mechanism for identifying which units convention one might be using, especially this one - how can I distinguish between using FITS vs VOUnits in a data set. There should be some way of stating this.
  • A list of approved units is not present in the document. This is primarily for reference or quick lookup and could be included as an appendix, along with some examples of usage.
  • The information about the supporting services and libraries is buried in the document and could be more upfront.
  • What is the policy for existing data sets which use unit conventions that are not compliant with VOUnits?
Some more minor things:

  • Solidus and slash are both used to refer to "/"
  • How should electron (counts) be referred to, e.g., e-/ADU?
  • The units data model expresses relationships between certain units, e.g., degree -> arcmin -> arcsec. A conversion model then needs to be stated so that deg/pixel can be calculated given arcsec (as mentioned). This is not just millisec to sec which can be guessed from the prefix alone.
-- MatthewGraham - 2012-10-01

  • Clarity: point taken. The recommendation is essentially the intersection of the various existing conventions, plus clarification about what those conventions actually are. This goal has been stated more starkly.
  • Identifying convention: I think this isn't this document's job; each syntax will need something like this. Unless you're suggesting that this document should define or register some well-known names for the syntaxes.
  • List of units; supporting services: these should both now be more visible.
  • Existing data sets: again, I think this goes beyond what the document is aiming for; what this document aims for is a clear target for conformance tests.
  • Solidus/slash: fixed (in favour of solidus)
  • ADU: the 'known units' table is now more prominent
  • Conversions: there are no conversions discussed in this document. We believe we've made this exclusion more prominent.
-- NormanGray - 2013-04-29

Thanks for various comments, everyone. See volute revision 2143.

Comments from Baptiste Cecconi / VOParis (2013-05-16)

We need mass and distance units related to solar system objects, such as: Mass of the Sun, Mass of Earth, of Mars, of Jupiter, of Titan, etc; Radius of Sun, Radius of Earth, of Mars, of Jupiter, of Titan, etc.

Should we propose a list of bodies for which we need it ? And should we propose a convention for naming these units ?

For instance, using the three first letters of the corresponding body, as it is already proposed for the Sun in the current version of recommendation:

  • Mass of Jupiter : jupMass
  • Radius of Jupiter : jupRadius
Additional comment:

What about units in dB ?

A very common unit in low frequency radioastronomy is dB(V^2/Hz) or dB(W/m^2/Hz)

There is the possibility of using the log fonction as in log(V^2/Hz).

Should we use 10.log(V^2/Hz) instead of dB(V^2/Hz) ?

-- BaptisteCecconi - 2013-05-17


Comments from TCG (WG and IG chairs)

TCG Chair & Vice Chair ( _Séverin Gaudet, Matthew Graham )

Applications Working Group ( _Mark Taylor, Pierre Fernique )

Good doc for me. Easy to read, easy to understand.

Just a few remarks and suggestions.

Page 9 - 2.4 Scale factors

  • "The SI prefixes of Tables 10 on page 20 always refer to multiples of 1000, even when applied to binary units such as bit or byte.
    => Certainly already discussed inside the author and editor group, but could we have a justification or a reference concerning this big distortion of the usual usage ? The fact to use multiples of 1000 rather than 1024 for bytes and bits will certainly generate a lot of errors.
    => I suggest to discourage the usage of K,T,P,E,Z,Y for bits and bytes in the VOUnit contexts.
page 13- 2.7 Mathematical expressions containing symbols

  • One problem that VO developers encounter with value+unit parsing is the fact that the value can be also expressed in scientific notation (ex: 10.6E-9g). And in this case the "E" or "e" character can be a problem for parsing correctly the quantity.
    => I just suggest to insert a valid example using scientific notation just to open the mind about this potential problem. May be a short remark could be also helping.
    => "Examples of valid VOUnits are 2.54cm, 10+8m, 3.45 10**(-4)Jy, 10.6E-9g
Page 14 - 2.8 Remarks and good practices
  • "Expressions such as "d:m:s" ... are not valid VOUnits. This should not be a problem, as existing VO standards already recommend that coordinates be expressed in decimal degrees"
    => Is this assertion really true ?
    => Concretely, a lots of VOTable providers use "h:m:s" and "d:m:s" units in "unit" VOTable XML attribute. This sentence will have the consequence that VOTables expressing coordinates in two columns in sexagesimal will be no longer "VO valid" or they will lost their units (in contradiction with 3.4 - 1 - "All data providers should be encouraged to supply units for each column of a table")
    => I would suggest to remove this example, and/or add an exception of unit usage in VOTable REC.
Page 16 - 3.4 Query languages and 3.5 Broader use in the VO

  • These 2 last sections appear as a set of reflexions and elements of works but not really more.
    => I would suggest to move them in an appendixes, or just remove them for this release.
-- PierreFernique - 2013-04-30

  • There are a couple more relevant standards that could be added to the IVOA architecture diagram in section 1.1:
    • TAP (the TAP_SCHEMA.columns table has a units column, sec 2.6.3)
    • VODataService (the BaseParam type contains a unit element, sec 3.5)
    • Maybe Relational Registry, but that's still WD, and the units dependency is more or less via VODataService
-- MarkTaylor - 2013-05-30

All of the above remarks are suggestions for the consideration of the authors to act on if they agree. Apps WG approves the document in any case.

Answer :The Architecture diagram is updated in the new revision of the document (Proposed Recommendation 2013-07-01)
PR-VOUnits-1.0-20130701.pdf

-- MireilleLouys - 2013-07-11

Data Access Layer Working Group ( Patrick Dowler, Mike Fitzpatrick )

Data Model Working Group ( _Jesus Salgado, Omar Laurino )

As said in the document, the scope of the present specification is the standardization of the string format for the units in the VO context. Taking into account this scope, the document is clear and complete.

As you probably know, I do not fully share that the only standardization needed for units is the strings. Although it is possible to parse unit strings (we all have a library that, more or less, implements this task) string parsing is, in my view, not recommended and a set of possible strings to be used is limited.

String format for units is important but I would have preferred an approach closer to a data model. In this way, we should not care of the jupiterMass or any other kind of peculiar units as the string itself could be ignored for software clients.

A complete, flexible and powerful data model for units is not simple. As said in the past, an initial step could be to describe the scaling and the dimensional equation but more things could be needed so the scaleq/dimeq info should have been an starting/initial point. This possible data model would have described, also, a serialization.

I approve the document within the aforementioned scope.

-- JesusSalgado - 2013-06-14

Grid & Web Services Working Group ( Andreas Wicenec, Andre Schaaff )

Registry Working Group ( _Gretchen Greene, Pierre Le Sidaner)

Semantics Working Group ( _Norman Gray, Mireille Louys)

Data Curation & Preservation Interest Group ( Alberto Accomazzi, Françoise Genova )

Education Interest Group ( _Massimo Ramella, Sudhanshu Barway )

Knowledge Discovery in Databases Interest Group ( George Djorgovski )

Theory Interest Group ( _Franck Le Petit, Rick Wagner )

Time Domain Interest Group ( _Matthew Graham, John Swinbank )

Standards and Processes Committee ( Françoise Genova )


Topic attachments
I Attachment History Action Size Date Who Comment
PDFpdf PR-VOUnits-1.0-20130701.pdf r1 manage 687.0 K 2013-07-11 - 10:11 MireilleLouys updates for last TCG comments
Edit | Attach | Watch | Print version | History: r34 | r19 < r18 < r17 < r16 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r17 - 2013-07-11 - MireilleLouys
 
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback