<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class="">Cross post with DAL (<a href="http://mail.ivoa.net/pipermail/dal/2022-October/008612.html" class="">http://mail.ivoa.net/pipermail/dal/2022-October/008612.html</a>) since this is related to VOTable.</div>
<div class=""><br class="">
</div>
Hello Apps members,
<div class=""><br class="">
</div>
<div class="">I would like to bring to your attention an issue related to service descriptor input parameters in the DataLink (<a href="https://www.ivoa.net/documents/DataLink/20211115/WD-DataLink-1.1-20211115.html#tth_sEc4.3" class="">https://www.ivoa.net/documents/DataLink/20211115/WD-DataLink-1.1-20211115.html#tth_sEc4.3</a>).
 The problem that I’ve run into relates to the fact that the syntax of `MIN` and `MAX` for those parameters is not explicit. </div>
<div class=""><br class="">
</div>
<div class="">The example in that document (<a href="https://www.ivoa.net/documents/DataLink/20211115/WD-DataLink-1.1-20211115.html#tth_sEc4.7" class="">https://www.ivoa.net/documents/DataLink/20211115/WD-DataLink-1.1-20211115.html#tth_sEc4.7</a>) as:</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<pre xmlns="http://www.w3.org/1999/xhtml" class="" style="margin-left: 2em; counter-reset: pre_line 0;"><span class="verbline" style="counter-increment: pre_line 1;"><PARAM arraysize="2" datatype="double" name="BAND" 
</span><span class="verbline" style="counter-increment: pre_line 1;">           ucd="em.wl" unit="m" value="" 
</span><span class="verbline" style="counter-increment: pre_line 1;">           xtype="interval">
</span><span class="verbline" style="counter-increment: pre_line 1;">      <DESCRIPTION>Spectral cutout interval</DESCRIPTION>
</span><span class="verbline" style="counter-increment: pre_line 1;">      <VALUES>
</span><span class="verbline" style="counter-increment: pre_line 1;">        <MIN value="3.52631986e-07"/>
</span><span class="verbline" style="counter-increment: pre_line 1;">        <MAX value="9.21500998e-07"/>
</span><span class="verbline" style="counter-increment: pre_line 1;">      </VALUES>
</span><span class="verbline" style="counter-increment: pre_line 1;"> </PARAM></span></pre>
<div class=""><br class="">
</div>
</div>
<div class="">The VOTable parser in astropy does not like the syntax - it expects, and I would say logically so, that MIN and MAX have the type of the BAND param, i.e. an interval. Is there a reason not to have the above MIN and MAX expressed as the maximum
 interval, i.e. <MAX value="3.52631986e-07 9.21500998e-07”/>?</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">That would also be consistent with other types of PARAM. The CADC DataLink service, for example, also returns:</div>
<div class=""><br class="">
</div>
<div class="">
<div class=""><PARAM name="CIRCLE" datatype="double" arraysize="3" ucd="obs.field" unit="deg" xtype="circle" value=""></div>
<div class="">        <VALUES></div>
<div class="">          <MAX value="36.517259904944964 75.45304017944918 0.13160680194585758" /></div>
<div class="">        </VALUES></div>
<div class=""> </PARAM></div>
</div>
<div class=""><br class="">
</div>
<div class="">which VOTable parser is happy with it.</div>
<div class=""><br class="">
</div>
<div class="">Thank you,</div>
<div class="">Adrian</div>
</body>
</html>