Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
C# QR Code Generator 4.0.2.2
Salesforce WordPress Customer Portal 3.2.0
Single Leg MLM 1.2.1
OzGIS 14.6
Quick Maps For Dynamics CRM 3.1
Job Board Software 4.2
PHP Real Estate Script 1.3.2
IP2Location Geolocation Database April.2019
dbForge Data Generator for Oracle 2.1
VisualNEO Web 2018.12.15
SentiMask SDK Trial 1.0.0
OrgChart JS 4.6.4
dotConnect for BigCommerce 1.8
FedEx Smart Shipping For Magento 1.0.0
Database Workbench Pro 5.6.2.311
Top Code
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
MLM Unilevel Plan Script 1.0.4
MLM Unilevel Plan Software 1.0.2
Job Board Software 4.2
AppControls 3.7.4
One Web MP3 Server Beta2
PHP AdminPanel - Control Panel Script 1.0.5
Comag Channel List Editor 1.0
Transparent Skin 1.00
Travel Booking script 1.0.4
Hangman Game 1.1
HTMLPad 2007 Pro 8.3
Tree data structure as a MATLAB class 1.0
Easynews PHP for Scripts 1.7.1
Bus Booking Script 1.0.4
Top Rated
VisualNEO Web 2018.12.15
Paste phpSoftPro 1.4.1
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
Read and write miniSEED file 1.0
File ID: 84185






Read and write miniSEED file 1.0
Download Read and write miniSEED file 1.0http://www.mathworks.comReport Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 38
Submit Rating:
Read and write miniSEED file 1.0 Description
Description: 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 d-deDUDatalessd-deDt SEED volumes, exists the d-deDUData-onlyd-deDt 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, avoiding intermediate format conversion (like SAC or other formats for which many functions exist), having a full control on headers and formats.

rdmseed: 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: writing miniSEED file

The function allows to export a data vector D to miniSEED file, giving origin date and time and sampling rate. 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). 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).

Type "help rdmseed" or "help mkmseed" for detailed usage

License: Shareware

Related: Analysis, argument, Stream, Detection, overlaps, output, extra, values, additional, arguments

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 38



More Similar Code

This application is useful for those who doesn't have Microsoft Access installed but want to read and write mdb file. It is easy to use.



OpenCIni is some windows like api in c,to read and write ini file in Unix,linux easily..



HOW TO: Read and Write BLOB Data by Using ADO.NET Through ASP.NET is an ASP.NET article in which the author concentrates on the procedure for reading and writing binary large object data to a SQL server with the help of Filestream object and byte...



Read and Write Values from and to the Registry using Matlab.

Contains: source code and documentation.

September 13, 2006



Delphi Component for Accessing Metastock Files.
TMetastock lets you read and write Metastock stock rate files. TMetastock read and write files with 5,6 or 7 fields.
TMetastock tested with Delphi 4.0, 5.0, 6.0, 7.0 and 2005
If you...



Learn to read and write XML with .NET's XML classes is an ASP.NET tutorial in which programmers can learn about the procedure for reading and writing the XML documents by using XmlReader and XmlWriter classes respectively. The author elaborates...



Read and write windows INI files in VBS? is an easy to understand online article for all webmasters who have installed hosted applications on their systems. From this tutorial you will come to know how to read formatted Windows INI files using...



This library allows to read and write Paradox database and primary index files.



Work with binary files in VBS - read and write local and remote files is an article in ASP demonstrating the method of working with binary files. The author has explained how to deal with binary files both on the local and remote computers using...



PHP is used to read and write to a flat text file. jQuery polls the text file for changes. The result is a basic chat room! v2 now includes user name checking and multiple rooms.

User Review for Read and write miniSEED file
- required fields
     

Please enter text on the image