Thread: units in stationxml

Started: 2013-05-17 20:48:06
Last activity: 2013-05-17 20:48:06
Topics: Web Services
Philip Crotwell
2013-05-17 20:48:06
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

Page built 15:48:42 | v.995c67d7