Closed tonino0013 closed 3 years ago
Hi Gonzalo-
The Description field you specified is the description of the network, so here you would want to describe network 'BV' by its name and/or institution.
The Instrument description that you want to specify is placed within each Channel. The pattern would be something like:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
Hi @rcasey-iris, Thanks for the time, I modified as you mentioned, however I got this error:
XML Document does not comply with the FDSN-StationXML xsd schema.
Error occurs in the StationXML Document and is described by the line below (refer to trace for line #):
[2021-04-21 16:52:06] [SEVERE] edu.iris.dmc.Application exitWithError: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; lineNumber: 30; columnNumber: 27; cvc-complex-type.2.4.a: Invalid content was found starting with element 'CalibrationUnits'. One of '{"http://www.fdsn.org/xml/station/1":PreAmplifier, "http://www.fdsn.org/xml/station/1":DataLogger, "http://www.fdsn.org/xml/station/1":Equipment, "http://www.fdsn.org/xml/station/1":Response}' is expected.]edu.iris.dmc.DocumentMarshaller.unmarshal(DocumentMarshaller.java:39)
edu.iris.dmc.DocumentMarshaller.unmarshal(DocumentMarshaller.java:27)
edu.iris.dmc.Application.read(Application.java:205)
edu.iris.dmc.Application.run(Application.java:178)
edu.iris.dmc.Application.run(Application.java:168)
edu.iris.dmc.Application.run(Application.java:147)
edu.iris.dmc.Application.main(Application.java:118)
nulljavax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:335)
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:578)
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:264)
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:229)
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:157)
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:204)
edu.iris.dmc.DocumentMarshaller.unmarshal(DocumentMarshaller.java:34)
edu.iris.dmc.DocumentMarshaller.unmarshal(DocumentMarshaller.java:27)
edu.iris.dmc.Application.read(Application.java:205)
edu.iris.dmc.Application.run(Application.java:178)
edu.iris.dmc.Application.run(Application.java:168)
edu.iris.dmc.Application.run(Application.java:147)
edu.iris.dmc.Application.main(Application.java:118)
The provider told me the Dataless is with no problem. The error seems to be (line 30) accoring to the error log, thanks for the time SOEH_BV.txt
Hi Gonzalo-
I'm not sure of the issue here yet. The only difference I see is that that <Sensor> comes before <CalibrationUnits> in the output, but I shouldn't think that this ordering would make a difference. I've reached out to the developer on this one.
-Rob
On Apr 21, 2021, at 2:10 PM, Gonzalo Antonio Fernandez Marañon @.***> wrote:
Hi @rcasey-iris https://github.com/rcasey-iris, Thanks for the time, I modified as you mentioned, however I got this error:
XML Document does not comply with the FDSN-StationXML xsd schema. Error occurs in the StationXML Document and is described by the line below (refer to trace for line #): [2021-04-21 16:52:06] [SEVERE] edu.iris.dmc.Application exitWithError: javax.xml.bind.UnmarshalException
- with linked exception: [org.xml.sax.SAXParseException; lineNumber: 30; columnNumber: 27; cvc-complex-type.2.4.a: Invalid content was found starting with element 'CalibrationUnits'. One of '{"http://www.fdsn.org/xml/station/1":PreAmplifier, "http://www.fdsn.org/xml/station/1":DataLogger, "http://www.fdsn.org/xml/station/1":Equipment, "http://www.fdsn.org/xml/station/1":Response}' is expected.]edu.iris.dmc.DocumentMarshaller.unmarshal(DocumentMarshaller.java:39) edu.iris.dmc.DocumentMarshaller.unmarshal(DocumentMarshaller.java:27) edu.iris.dmc.Application.read(Application.java:205) edu.iris.dmc.Application.run(Application.java:178) edu.iris.dmc.Application.run(Application.java:168) edu.iris.dmc.Application.run(Application.java:147) edu.iris.dmc.Application.main(Application.java:118) nulljavax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:335) com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:578) com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:264) com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:229) javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:157) javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:204) edu.iris.dmc.DocumentMarshaller.unmarshal(DocumentMarshaller.java:34) edu.iris.dmc.DocumentMarshaller.unmarshal(DocumentMarshaller.java:27) edu.iris.dmc.Application.read(Application.java:205) edu.iris.dmc.Application.run(Application.java:178) edu.iris.dmc.Application.run(Application.java:168) edu.iris.dmc.Application.run(Application.java:147) edu.iris.dmc.Application.main(Application.java:118)
The provider told me the Dataless is with no problem. The error seems to be (line 30) accoring to the error log, thanks for the time SOEH_BV.txt https://github.com/iris-edu/stationxml-validator/files/6353958/SOEH_BV.txt — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iris-edu/stationxml-validator/issues/132#issuecomment-824359743, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFL4VN5L6WFXNWCLTYCQYBDTJ45NHANCNFSM43EJ5AHQ.
Hi Gonzalo
How did you generate the xml attached? The problem seems to be with ordering the equipment (sensor/etc) before the CallibrationUnits. A little background would be helpful, for example did the convertor generate the xml? How does the seed looks like?
Thanks
Yazan On Apr 21, 2021, 5:29 PM -0700, Robert Casey @.***>, wrote:
Hi Gonzalo-
I'm not sure of the issue here yet. The only difference I see is that that
comes before in the output, but I shouldn't think that this ordering would make a difference. I've reached out to the developer on this one. -Rob
On Apr 21, 2021, at 2:10 PM, Gonzalo Antonio Fernandez Marañon @.***> wrote:
Hi @rcasey-iris https://github.com/rcasey-iris, Thanks for the time, I modified as you mentioned, however I got this error:
XML Document does not comply with the FDSN-StationXML xsd schema. Error occurs in the StationXML Document and is described by the line below (refer to trace for line #): [2021-04-21 16:52:06] [SEVERE] edu.iris.dmc.Application exitWithError: javax.xml.bind.UnmarshalException
- with linked exception: [org.xml.sax.SAXParseException; lineNumber: 30; columnNumber: 27; cvc-complex-type.2.4.a: Invalid content was found starting with element 'CalibrationUnits'. One of '{"http://www.fdsn.org/xml/station/1":PreAmplifier, "http://www.fdsn.org/xml/station/1":DataLogger, "http://www.fdsn.org/xml/station/1":Equipment, "http://www.fdsn.org/xml/station/1":Response}' is expected.]edu.iris.dmc.DocumentMarshaller.unmarshal(DocumentMarshaller.java:39) edu.iris.dmc.DocumentMarshaller.unmarshal(DocumentMarshaller.java:27) edu.iris.dmc.Application.read(Application.java:205) edu.iris.dmc.Application.run(Application.java:178) edu.iris.dmc.Application.run(Application.java:168) edu.iris.dmc.Application.run(Application.java:147) edu.iris.dmc.Application.main(Application.java:118) nulljavax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:335) com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:578) com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:264) com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:229) javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:157) javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:204) edu.iris.dmc.DocumentMarshaller.unmarshal(DocumentMarshaller.java:34) edu.iris.dmc.DocumentMarshaller.unmarshal(DocumentMarshaller.java:27) edu.iris.dmc.Application.read(Application.java:205) edu.iris.dmc.Application.run(Application.java:178) edu.iris.dmc.Application.run(Application.java:168) edu.iris.dmc.Application.run(Application.java:147) edu.iris.dmc.Application.main(Application.java:118)
The provider told me the Dataless is with no problem. The error seems to be (line 30) accoring to the error log, thanks for the time SOEH_BV.txt https://github.com/iris-edu/stationxml-validator/files/6353958/SOEH_BV.txt — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iris-edu/stationxml-validator/issues/132#issuecomment-824359743, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFL4VN5L6WFXNWCLTYCQYBDTJ45NHANCNFSM43EJ5AHQ.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
hi @yazan-iris and @rcasey-iris thank you for the time.
I have a RaspberryShake sensor, so the dataless is downloaded from: [https://manual.raspberryshake.org/metadata.html#raspberry-shake-rs3d] The version I have is dataless Seed V5. Then I applied the [https://github.com/iris-edu/stationxml-seed-converter], I am using the version 2.1.0. I work with Ubuntu 16.04. I was able to get XML file output and then I just edited with text editor the network code, station names and the dates, this is because we would like to share data to IRIS and then to world. Just in case I add the dataless file.
Thanks for the time
So you were editing the file manually to add the sensor as the dateless does not have any sensor information. Try this:
In place of
The xml schema insist on this order.
Yazan On Apr 21, 2021, 6:26 PM -0700, Gonzalo Antonio Fernandez Marañon @.***>, wrote:
hi @yazan-iris and @rcasey-iris thank you for the time. I have a RaspberryShake sensor, so the dataless is downloaded from:
The version I have is dataless Seed V5. Then I applied the , I am using the version 2.1.0. I work with Ubuntu 16.04. I was able to get XML file output and then I just edited with text editor the network code, station names and the dates, this is because we would like to share data to IRIS and then to world. Just in case I add the dataless file. SOEH_.dataless-new.zip Thanks for the time — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
Dear @yazan-iris and @rcasey-iris ,
Works, it was the order of the
Dear all,
I have applied the
stationxml-seed-converter-2.1.0.jar
to convert my SEED dataless to XML format, then I usestationxml-validator-1.7.1.jar
however i found an error that says:304,Error,BV,SOEH,EHE,00,2021-04-15T20:00:00,,expected equipment/sensor but was null
Inside my XML file I have the following information
I assume the Description field gives the information about the equipment / sensor, looking the
Please clarify Rule 304 #91
seems that the conversion I did is ok.Would you mind please give me some feedback Thank you in advance