weixin_39747577 2020-11-20 20:17
浏览 0

anything to MiniSEED

hello, i'm planning to use obspy for data conversion tasks.

my aim is to convert custom ASCII format (accelerometric data) into miniSEED.

i'm reading the obspy tutorial, section "Anything to MiniSEED", but i can't understand the data contained in the variable "weather"...

firs column is something like time? last column looks like a sequence number? what about the other data?

i'm looking around (probably not accurately as i should) in the rest of the documentation but i can't find any hints.

thank you

dott. Emiliano Russo

Istituto Nazionale di Geofisica e Vulcanologia INGV Sezione Milano /pavia http://www.ingv.it/

该提问来源于开源项目:obspy/obspy

  • 写回答

15条回答 默认 最新

  • weixin_39747577 2020-11-20 20:17
    关注

    [barsch] The example converts an arbitrary string into a miniseed file by creating a array of chars - just look at the data {{{

    data array(['\n', '0', '0', '.', '0', '0', '0', '0', ' ', '0', '.', '0', ' ', '?', '?', '?', ' ', '4', '.', '7', ' ', '9', '7', '.', '7', ' ', '1', '0', '1', '5', '.', '0', ' ', '0', '.', '0', ' ', '0', '1', '0', '3', '0', '8', ' ', '0', '0', '0', '0', '0', '0', '\n', '0', '0', '.', '0', '0', '0', '2', ' ', '0', '.', '0', ' ', '?', '?', '?', ' ', '4', '.', '7', ' ', '9', '7', '.', '7', ' ', '1', '0', '1', '5', '.', '0', ' ', '0', '.', '0', ' ', '0', '1', '0', '3', '0', '8', ' ', '0', '0', '0', '0', '0', '1', '\n', '0', '0', '.', '0', '0', '0', '5', ' ', '0', '.', '0', ' ', '?', '?', '?', ' ', '4', '.', '7', ' ', '9', '7', '.', '7', ' ', '1', '0', '1', '5', '.', '0', ' ', '0', '.', '0', ' ', '0', '1', '0', '3', '0', '8', ' ', '0', '0', '0', '0', '0', '2', '\n', '0', '0', '.', '0', '0', '0', '8', ' ', '0', '.', '0', ' ', '?', '?', '?', ' ', '4', '.', '7', ' ', '9', '7', '.', '7', ' ', '1', '0', '1', '5', '.', '4', ' ', '0', '.', '0', ' ', '0', '1', '0', '3', '0', '8', ' ', '0', '0', '0', '0', '0', '3', '\n', '0', '0', '.', '0', '0', '1', '1', ' ', '0', '.', '0', ' ', '?', '?', '?', ' ', '4', '.', '7', ' ', '9', '7', '.', '7', ' ', '1', '0', '1', '5', '.', '0', ' ', '0', '.', '0', ' ', '0', '1', '0', '3', '0', '8', ' ', '0', '0', '0', '0', '0', '4', '\n', '0', '0', '.', '0', '0', '1', '3', ' ', '0', '.', '0', ' ', '?', '?', '?', ' ', '4', '.', '7', ' ', '9', '7', '.', '7', ' ', '1', '0', '1', '5', '.', '0', ' ', '0', '.', '0', ' ', '0', '1', '0', '3', '0', '8', ' ', '0', '0', '0', '0', '0', '5', '\n', '0', '0', '.', '0', '0', '1', '6', ' ', '0', '.', '0', ' ', '?', '?', '?', ' ', '4', '.', '7', ' ', '9', '7', '.', '7', ' ', '1', '0', '1', '5', '.', '0', ' ', '0', '.', '0', ' ', '0', '1', '0', '3', '0', '8', ' ', '0', '0', '0', '0', '0', '6', '\n', '0', '0', '.', '0', '0', '1', '9', ' ', '0', '.', '0', ' ', '?', '?', '?', ' ', '4', '.', '7', ' ', '9', '7', '.', '7', ' ', '1', '0', '1', '5', '.', '0', ' ', '0', '.', '0', ' ', '0', '1', '0', '3', '0', '8', ' ', '0', '0', '0', '0', '0', '7', '\n'], dtype='|S1') }}

    However this example won't help you with your task isntead you should look into the (yet) very badly documented obspy.core.ascii module.

    评论

报告相同问题?