Error in the WD-STC-S-1.0-20130918 document?

F.-X. Pineau francois-xavier.pineau at astro.unistra.fr
Tue Nov 28 16:50:40 CET 2023


Dear DM members,

I am implementing a STC-S parser (in Rust, obviously) from the 
WD-STC-S-1.0-20130918 document:
 > https://www.ivoa.net/documents/STC-S/20130917/WD-STC-S-1.0-20130917.html

Here is the trouble.

The first 7.1B.1 example contains the following spectral sub-phrase:
> SpectralIntervalGEOCENTER4.955.0unitGHz*Size**0.05*

Which is fine with respect to 5.3:
>  SpectralInterval[fillfactor<fill>][<refpos>]
> [<lolimit><hilimit>...]
 > [Spectral<spec>][unit<unit>][Error<error>[<error>]]
 > [Resolution<resln>[<resln>]][*Size**<size>[<size**>]*]
 > [PixSize<pixsiz>[<pixsiz>]]

But is not coherent with the  EBNF Representation in 6 (which do not 
contains 'Size', only 'PixSize'):
> spectralInterval ::= "SpectralInterval"  [ fillfactor ] [ refpos ]
 >    { number } [ spectralSpec ] [ spectralUnit ] [ error ]
 >    [ resolution ] [ pixelSize ]

Is the grammar wrong?
Is there an 'official/original' STC-S parser that could be used as a 
reference?
Should an erratum be issued?

Thank you in advance for your answers.

Kind regards


F.-X. Pineau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ivoa.net/pipermail/dm/attachments/20231128/d8115fbd/attachment.htm>


More information about the dm mailing list