[webservices] units in stationxml

Philip Crotwell crotwell at seis.sc.edu
Fri May 17 10:48:06 PDT 2013


Hi all

Since parsing units from a string can be tricky, I have gone through all of
the networks available via the fdsnstation web service and pulled the units
out. Luckily, there are only 41 distinct strings as unit names. To aid in
converting values, I have put together a csv file with three columns:
1) unit name from the xml
2) my best guess at how to "SI" the unit (some are, um, nonstandard)
3) a "description"

The only case I found of a unit name meaning two things in two different
channels was the symbol M which means "meter" in most places, but "minute"
in a small number of channel responses.

The file is available here:
http://code.google.com/p/seisfile/source/browse/src/main/resources/edu/sc/seis/seisFile/stationxml/units.convert

The file is mostly ascii, except for the degree symbol  ° and the micro
symbol µ. I am unsure if these are worth the non-ascii-ness or not. Maybe
it is a unicode world, so they will be ok.

Not sure how useful this is, but at least gives a starting point should
anyone else need to parse units out of stationXML. I will try to remember
to update it periodically.

Philip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.iris.washington.edu/pipermail/webservices/attachments/20130517/b9daeae1/attachment.htm>


More information about the webservices mailing list