# mseed-lib
The Standard for the Exchange of Earthquake Data (SEED) is an
international standard format for the exchange of digital seismological
data. SEED was designed for use by the earthquake research community,
primarily for the exchange between institutions of unprocessed earth
motion data. It is a format for digital data measured at one point in
space and at equal intervals of time. The SEED format consists of
Volume Control Headers, Abbreviation Control Headers, Station Control
Headers, Time Span Control Headers and finally Data Records. In
complement to “Dataless” SEED volumes, exists the “Data-only” volume
called Mini-SEED (see http://www.iris.edu for further information).
The purpose of these functions is to read and write miniSEED data files
directly from Matlab/Octave, avoiding intermediate format conversion (like SAC
or other formats for which many functions exist), having a full control
on headers and formats.
The function has the particularity to be respectful of the SEED standard,
thus should be able to read ANY miniSEED file: all known encoding formats,
multiplexed channels, data sampling, mixed encoding formats, mixed block
sizes and even mixed endianness (it appends!).
## rdmseed.m: reading miniSEED file
Each data record is imported into a structure array, allowing to adress
data blocks and header fields individually (useful for multi-channel
files), just as concatenating all data with a simple cat(1,X.d)
function. Time stamps are also converted into Matlab datenum format.
The function reads miniSEED "data-only" using the two mostly used
compression formats Steim-1 and Steim-2. General FDSN formats have also
been implemented (ASCII, 16/24/32-bit integers, IEEE floats and
doubles), and GEOSCOPE multiplexed old formats (24-bit, 16/3 or
16/4-bit gain ranged). All these formats should work but some of them
have not been tested using real data. I also partly coded Steim-3
format but without a clear description and any file example... Since I
never met any data file using this format, I don't know if it's really
useful.
The function detects also automatically big/little-endian coded files.
Known Blockettes are 1000, 1001, 100, 500 and 2000. If there is no
Blockette 1000 (which is mandatory in SEED format...), default
4096-byte record length, big-endian and Steim-1 compression are used.
These values can be set using additional arguments.
Using extra output argument, some analysis can be done on the data
stream (detection of gaps and overlaps), and channel components are
detected. Without any output arguments, or with an additionnal 'plot'
input argument, the function plots the imported data in a new figure
(works also in case of multi-channel file).
Steim-1/2 compression decoding strategy has been deeply optimized for
Matlab. The proposed method, as vectorized as possible, is about 30
times faster than a 'C-like' loops coding... which is still 10 times
slower than the same C-compiled program, but, well, this is the
Matlab's other side of the coin!
## mkmseed.m: writing miniSEED file
The function allows to export a data vector D to miniSEED file, giving
origin date and time (for monotonic data) and sampling rate, or a time
vector. Header information is specified using the filename string with
conventional naming "Network.Station.Location.Channel". Output file
names will have appended ".Year.Day" and multiple file may be produced
if data exceed a day.
Data encoding format can be specified (16/32-bit integers, IEEE
float/double, Steim-1/2, Geoscope 16/3-4). If not, it will depend on
the class of variable D. Binary file is big-endian coded, and default
record length is 4096 bytes (this may be changed using input argument).
![](rdmseed_example.png)
## Author
**François Beauducel**, [IPGP](www.ipgp.fr), [beaudu](https://github.com/beaudu), beauducel@ipgp.fr
## Documentation
Type "doc rdmseed" or "doc mkmseed" for detailed usage.
## Other repository
Source code available also at MathWorks File Exchange: [![View RDMSEED and MKMSEED: Read and write miniSEED files on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://fr.mathworks.com/matlabcentral/fileexchange/28803-rdmseed-and-mkmseed-read-and-write-miniseed-files) with user comments and rating.
没有合适的资源?快使用搜索试试~ 我知道了~
RDMSEED 和 MKMSEED:读取和写入 miniSEED 文件附matlab代码+运行结果.zip
共5个文件
m:2个
txt:1个
png:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 131 浏览量
2023-10-09
06:55:31
上传
评论
收藏 367KB ZIP 举报
温馨提示
1.版本:matlab2014/2019a/2021a,内含运行结果,不会运行可私信 2.附赠案例数据可直接运行matlab程序。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。 5.作者介绍:某大厂资深算法工程师,从事Matlab算法仿真工作10年;擅长智能优化算法、神经网络预测、信号处理、元胞自动机等多种领域的算法仿真实验,更多仿真源码、数据集定制私信+。
资源推荐
资源详情
资源评论
收起资源包目录
RDMSEED 和 MKMSEED:读取和写入 miniSEED 文件附matlab代码+运行结果.zip (5个子文件)
RDMSEED 和 MKMSEED:读取和写入 miniSEED 文件附matlab代码+运行结果
rdmseed_example.png 353KB
说明.txt 566B
mkmseed.m 17KB
rdmseed.m 35KB
README.md 4KB
共 5 条
- 1
资源评论
Matlab科研辅导帮
- 粉丝: 1w+
- 资源: 7483
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于matlab实现车牌识别程序,和论文,自己做的,做毕业设计的可以看看 .rar
- Windows系统下安装与配置Neo4j的步骤
- 基于matlab实现潮流计算和最优潮流计算的程序1,对毕业设计有一定用处.rar
- 基于大数据学习资源推荐系统的设计与实现(部署视频)-kaic.mp4
- 哈工大形式语言和自动机2022期末含答案
- Windows系统下安装与配置Neo4j的步骤
- 哈希算法(Hash Algorithm)是一种将任意长度的二进制数据映射为较短的、固定长度的二进制值的函数.txt
- Windows系统下安装与配置Neo4j的步骤
- 在二叉树或更复杂的树形结构中,先序输出叶结点.txt
- 列出所有祖先结点的概念通常与树形结构或图论中的节点相关.txt
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功