[VOUnit] How to express the unit of a dimensionless quantity?

Mark Taylor m.b.taylor at bristol.ac.uk
Thu Mar 7 13:05:09 CET 2024


On Thu, 7 Mar 2024, Alberto Micol wrote:

> Regarding the special unit string '1', 
> taplint (at least the version I'm using) returns the following: 
> 
> > This is STILTS taplint, 3.4-8/ba1522571 (2023-04-20)
> >
> > W-UUC-VUNE-2 Questionable unit "1"; Not legal VOUnits string (BAD_SYNTAX): unity parser error at character 2: syntax error in 15 columns: dbo.espresso_rv.ccf_continuum, ...
> >
> 
> It is a Warning and not an Error, but the text reads quite strongly...
> Would a more recent version of STILTS fix this?

Yes: stilts v3.4-10 (released last week) is upgraded to Unity 1.1,
corresponding to REC-VOUnits-1.1, and it will pass a unit string of
"1" without comment.

--
Mark Taylor  Astronomical Programmer  Physics, Bristol University, UK
m.b.taylor at bristol.ac.uk          https://www.star.bristol.ac.uk/mbt/


More information about the semantics mailing list