Thread: Fwd: invalid stationxml, number in Numerator

Started: 2015-07-13 23:46:44
Last activity: 2015-07-14 00:00:24
Philip Crotwell
2015-07-13 23:46:44
Hi

Just forwarding this so it doesn't get forgotten...

Also, see pull request request here that addresses this in the schema:

https://github.com/FDSN/StationXML/pull/1

thanks
Philip


---------- Forwarded message ----------
From: Philip Crotwell <crotwell<at>seis.sc.edu>
Date: Wed, Jul 8, 2015 at 10:25 AM
Subject: invalid stationxml, number in Numerator
To: Chad <chad<at>iris.washington.edu>



Hi

The IRIS FDSN Station ws is returning invalid XML for this:
http://service.iris.edu/fdsnws/station/1/query?net=CO&sta=ADSC&loc=00&cha=HNE&level=response&format=xml&includecomments=true&nodata=404

The NumeratorCoefficient element has a "number" attribute, but it should be
called "i" according to the schema. Other places use "number", like
PoleZero, so likely that is the confusion. Might be worth changing in a
xschema revision. I'll test out your fork, fix, pull request method for
proposing changes! :)

<Stage number="4">
<FIR name="CMG_DM24_MK3_FIX_1_1000_5">
<InputUnits>
<Name>COUNT</Name>
<Description>Digital counts</Description>
</InputUnits>
<OutputUnits>
<Name>COUNT</Name>
<Description>Digital counts</Description>
</OutputUnits>
<Symmetry>EVEN</Symmetry>
<NumeratorCoefficient
number="0">0.000030517600</NumeratorCoefficient>
<NumeratorCoefficient number="1">0.00015258800</NumeratorCoefficient>



<xs:element
name="NumeratorCoefficient" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:simpleContent>

<xs:extension base="xs:double">

<xs:attribute name="i" type="xs:integer"/>

</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>

thanks
Philip

  • Chad Trabant
    2015-07-13 20:53:50

    Hi Philip,

    This is the wrong list to propose StationXML changes. A little developer-oriented discussion prior to a proposal is fine, but changing the schema is FDSN business. Procedure is documented here (recently updated):

    https://github.com/FDSN/StationXML

    Chad

    On Jul 13, 2015, at 1:47 PM, Philip Crotwell <crotwell<at>seis.sc.edu> wrote:


    Hi

    Just forwarding this so it doesn't get forgotten...

    Also, see pull request request here that addresses this in the schema:

    https://github.com/FDSN/StationXML/pull/1

    thanks
    Philip


    ---------- Forwarded message ----------
    From: Philip Crotwell <crotwell<at>seis.sc.edu <crotwell<at>seis.sc.edu>>
    Date: Wed, Jul 8, 2015 at 10:25 AM
    Subject: invalid stationxml, number in Numerator
    To: Chad <chad<at>iris.washington.edu <chad<at>iris.washington.edu>>



    Hi

    The IRIS FDSN Station ws is returning invalid XML for this:
    http://service.iris.edu/fdsnws/station/1/query?net=CO&sta=ADSC&loc=00&cha=HNE&level=response&format=xml&includecomments=true&nodata=404

    The NumeratorCoefficient element has a "number" attribute, but it should be called "i" according to the schema. Other places use "number", like PoleZero, so likely that is the confusion. Might be worth changing in a xschema revision. I'll test out your fork, fix, pull request method for proposing changes! :)

    <Stage number="4">
    <FIR name="CMG_DM24_MK3_FIX_1_1000_5">
    <InputUnits>
    <Name>COUNT</Name>
    <Description>Digital counts</Description>
    </InputUnits>
    <OutputUnits>
    <Name>COUNT</Name>
    <Description>Digital counts</Description>
    </OutputUnits>
    <Symmetry>EVEN</Symmetry>
    <NumeratorCoefficient number="0">0.000030517600</NumeratorCoefficient>
    <NumeratorCoefficient number="1">0.00015258800</NumeratorCoefficient>



    <xs:element name="NumeratorCoefficient" minOccurs="0" maxOccurs="unbounded">
    <xs:complexType>
    <xs:simpleContent>
    <xs:extension base="xs:double">
    <xs:attribute name="i" type="xs:integer"/>
    </xs:extension>
    </xs:simpleContent>
    </xs:complexType>
    </xs:element>

    thanks
    Philip



    ----------------------
    DMC Web Service Developer (http://ds.iris.edu/message-center/topic/dmc-web-service-developer/)

    Sent via IRIS Message Center (http://ds.iris.edu/message-center/)
    Update subscription preferences at http://ds.iris.edu/account/profile/


    • Philip Crotwell
      2015-07-14 00:00:24
      OK, will do that.
      thanks
      PHilip

      On Mon, Jul 13, 2015 at 4:54 PM, Chad Trabant <chad<at>iris.washington.edu>
      wrote:


      Hi Philip,

      This is the wrong list to propose StationXML changes. A little
      developer-oriented discussion prior to a proposal is fine, but changing the
      schema is FDSN business. Procedure is documented here (recently updated):

      https://github.com/FDSN/StationXML

      Chad

      On Jul 13, 2015, at 1:47 PM, Philip Crotwell <crotwell<at>seis.sc.edu> wrote:


      Hi

      Just forwarding this so it doesn't get forgotten...

      Also, see pull request request here that addresses this in the schema:

      https://github.com/FDSN/StationXML/pull/1

      thanks
      Philip


      ---------- Forwarded message ----------
      From: Philip Crotwell <crotwell<at>seis.sc.edu>
      Date: Wed, Jul 8, 2015 at 10:25 AM
      Subject: invalid stationxml, number in Numerator
      To: Chad <chad<at>iris.washington.edu>



      Hi

      The IRIS FDSN Station ws is returning invalid XML for this:

      http://service.iris.edu/fdsnws/station/1/query?net=CO&sta=ADSC&loc=00&cha=HNE&level=response&format=xml&includecomments=true&nodata=404

      The NumeratorCoefficient element has a "number" attribute, but it should
      be called "i" according to the schema. Other places use "number", like
      PoleZero, so likely that is the confusion. Might be worth changing in a
      xschema revision. I'll test out your fork, fix, pull request method for
      proposing changes! :)

      <Stage number="4">
      <FIR name="CMG_DM24_MK3_FIX_1_1000_5">
      <InputUnits>
      <Name>COUNT</Name>
      <Description>Digital counts</Description>
      </InputUnits>
      <OutputUnits>
      <Name>COUNT</Name>
      <Description>Digital counts</Description>
      </OutputUnits>
      <Symmetry>EVEN</Symmetry>
      <NumeratorCoefficient
      number="0">0.000030517600</NumeratorCoefficient>
      <NumeratorCoefficient
      number="1">0.00015258800</NumeratorCoefficient>



      <xs:element
      name="NumeratorCoefficient" minOccurs="0" maxOccurs="unbounded">
      <xs:complexType>
      <xs:simpleContent>

      <xs:extension base="xs:double">

      <xs:attribute name="i" type="xs:integer"/>

      </xs:extension>
      </xs:simpleContent>
      </xs:complexType>
      </xs:element>

      thanks
      Philip



      ----------------------
      DMC Web Service Developer (
      http://ds.iris.edu/message-center/topic/dmc-web-service-developer/)

      Sent via IRIS Message Center (http://ds.iris.edu/message-center/)
      Update subscription preferences at http://ds.iris.edu/account/profile/




      ----------------------
      DMC Web Service Developer (
      http://ds.iris.edu/message-center/topic/dmc-web-service-developer/)

      Sent via IRIS Message Center (http://ds.iris.edu/message-center/)
      Update subscription preferences at http://ds.iris.edu/account/profile/



08:00:45 v.22510d55