Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sc3 event XML to FDSN event XML: Units of amplitude measurements are missing #60

Open
calum-chamberlain opened this issue Sep 6, 2019 · 18 comments

Comments

@calum-chamberlain
Copy link

I wondered what units the amplitude measurements in GeoNet QuakeML's are in? QuakeML spec suggests these generic amplitudes should be stored in SI units, but they encourage the used of the unit field but it doesn't look like this is populated, and the amplitudes do not look like SI values. For example, this M 2.9 event has ML amplitudes > 1.0, where ML amplitudes are usually displacement (in m for SI units, 1.6m displacement at a decent distance for a 2.9 seems high). e.g. (copied from the QuakeML):

<amplitude publicID="smi:nz.org.geonet/Amplitude/20190704101041.098734.32827">
  <type>ML</type>
  <genericAmplitude>
    <value>1.620822695</value>
    <lowerUncertainty>0.2354822821</lowerUncertainty>
    <upperUncertainty>0.2354822821</upperUncertainty>
  </genericAmplitude>
  <timeWindow>
    <reference>2019-07-04T10:09:44.39313Z</reference>
    <begin>-14.999999</begin>
    <end>48.81</end>
  </timeWindow>
  <pickID>
    smi:nz.org.geonet/20190704.100934.39-AIC-NZ.WHZ.10.HHZ
  </pickID>
  <waveformID networkCode="NZ" stationCode="WHZ" locationCode="10" channelCode="HH"/>
  <creationInfo>
    <agencyID>WEL(GNS_Primary)</agencyID>
    <author>[email protected]</author>
    <creationTime>2019-07-04T10:10:41.098811Z</creationTime>
  </creationInfo>
</amplitude>

Any chance the units field of the amplitudes can be populated please?

@salichon salichon self-assigned this Sep 8, 2019
@salichon
Copy link
Contributor

salichon commented Sep 8, 2019

Hello @calum-chamberlain
Please refer to https://docs.gempa.de/seiscomp3/current/apps/global_mlv.html#global-mlv
the input units are mm from seiscomp3 at last then into the event quakeml

(actually i think it s rather mm.s-1 after filtering since measured over the trace of velocimeters)

... I guess in a ideal world we would be all in SI (and even no imperial units .. ) ;)
*but then the usage the history and the codes..)

Cheers
Jerome

@calum-chamberlain
Copy link
Author

Hi Jerome, thanks for that - any chance the units field of the Amplitude measurement in quakeml can be populated so that users don't have to dig through Seiscomp docs?

Is the QuakeML generated by Seiscomp, or does that just generate an SC3ML file that you guys convert?

@salichon
Copy link
Contributor

salichon commented Sep 11, 2019

Kia Ora @calum-chamberlain
I would deem that the unit may be deliberately not informed in general since amplitude measurements may span a fair amount of scale depending of the magnitude/instrument used.
We re are using the provided conversion sheet xslt that you can find under for instance:
https://github.com/SeisComP3/seiscomp3/blob/master/src/trunk/libs/xml/0.11/quakeml_1.2__sc3ml_0.11.xsl
But yeah i think this coudl be done :).

you may ask this type of question to Quakeml/seisocmp3 for more details
See https://quake.ethz.ch/quakeml/
there I think Fabian Euchner woudl provide you with more details thans me :).
Cheers
Jerome

@salichon
Copy link
Contributor

salichon commented Sep 11, 2019

having had a look at the qml schemes:

genericAmplitude Measured amplitude value for the givenwaveformID. Note that this attribute can describe different physical quantities, depending on the type and category of the amplitude. These can be, e.g.,displacement, velocity, or a period. If the only amplitude information is a period, it has to specified here,not in theperiod attribute. The latter can be used if the amplitude measurement contains information on, e.g., displacement and an additional period. Since the physical quantity described by this attribute is not fixed, the unit of measurement cannot be defined in advance. However, the quantity has to be specified in SI base units. The enumeration given in attributeunit provides the most likely units that could be needed here. For clarity, using the optional unit attribute is highly encouraged

--->>> this is a request that could be made to seiscomp3 xml inputs perhaps

@calum-chamberlain
Copy link
Author

Yeah, I read that too. Do you want to suggest it to Seiscomp, or shall I?

@salichon
Copy link
Contributor

I think it s always good if it s coming from you ha! - i ll back your request up ;)

@calum-chamberlain
Copy link
Author

👍 Will do.

@calum-chamberlain
Copy link
Author

Issue opened over at Seiscomp - regarding #58 as well, I got feedback from Fabian that the methodID field can be used to provide links or DOIs to documentation on how fields are populated/measurements taken. I think this would be really helpful to provide a consistent and documented catalogue.

@salichon
Copy link
Contributor

I ve made a question on their forum: https://forum.seiscomp3.org/t/sc3-xml-and-amplitude-units/1518

@calum-chamberlain
Copy link
Author

See comment on Seiscomp 243. Looks like the unit field should be populated if the seiscomp event conversion tool is used. I guess this comes back here then?

@salichon
Copy link
Contributor

yeap @calum-chamberlain :) !
The sc3xml to quakeml conversion is made there https://github.com/GeoNet/seiscompml-to-quakeml - i ll enquire - exploring the built in converter to compare
FYI @nbalfour

@salichon
Copy link
Contributor

salichon commented Sep 11, 2019

@calum-chamberlain @nbalfour
here is a difference between the built in quakeml converter and the Geonet conversion
Sc3 built-in conversion:
<amplitude publicID="smi:org.gfz-potsdam.de/geofon/Amplitude/20190704101041.098734.32827"> ... <genericAmplitude> <value>0.001620822695</value> ... </genericAmplitude> <type>ML</type> **<unit>m</unit>**

Geonet quakeml conversion
<amplitude publicID="smi:nz.org.geonet/Amplitude/20190704101041.098734.32827"> <genericAmplitude> <value>1.620822695</value>... </genericAmplitude> <timeWindow>

So

I think there could be room for improvement :)

@salichon
Copy link
Contributor

salichon commented Oct 6, 2019

@JonoHanson @danieldooley @carolinelittle
Kia Ora Morena
about quakeml units (and read above discussion):

"Looks like the unit field should be populated if the seiscomp event conversion tool is used."

I reckon there is an opportunity here to improve the on-the-fly conversion of the sc3xml to quakeml event files available through the GeoNet FDSN webservice.
and possibly also changing the way the GeoNet process is converting the events sc3xml to quakeml.

I let you check what s the most relevant :)

Cheers
Jerome

@salichon salichon changed the title Units of amplitude measurements Sc3 event XML to FDSN event XML: Units of amplitude measurements are missing Nov 29, 2019
@salichon
Copy link
Contributor

salichon commented Jun 5, 2020

FYI @JonoHanson just to keep this in mind
(wrt FDSNws reference for a paper about magnitude - refering to Geonet station amplitude data source)

@salichon
Copy link
Contributor

salichon commented Jan 28, 2021

  • Need to update and check the fdsnxml unit output in our current XML conversion system

FYI @sue-h-gns
..Archeogit_ticketing for improvement in the fdsn event service
https://github.com/GeoNet/tickets/issues/5259#issuecomment-567737676

@salichon
Copy link
Contributor

salichon commented Feb 4, 2021

As a note for later
2021 in the archive:

  • Quakeml Geonet provided: ML Amplitude Unit is millimeter
  • Sc3xml (original source): ML Amplitude is millimeter

--> No conversion of the amplitude into SI for any of the format

--> Document the XML fields ?
--> No Unit description is provided

@salichon
Copy link
Contributor

UPDATE 2022: Can be worked out with other FDSN improvements when work will be planned

@salichon
Copy link
Contributor

salichon commented Sep 4, 2024

  • Still pending :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants