Read miniSEED file 1.0
File ID: 78889
Read miniSEED file 1.0
File Size: 10.0 KB
Read miniSEED file 1.0 Description
Description: cThe 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 this function is to read miniSEED data files directly from Matlab, avoiding intermediate format conversion (like SAC or other formats for which many functions exist), and retrieving complete headers. 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.
The function detects also automatically big/little-endian coded files.
Known Blockettes are 1000, 1001 and 100. If there is no Blockette 1000, default 4096-byte record length, big-endian and Steim-1 compression are used. These values can be set using additional arguments.
Some analysis can be done on the data stream (detection of gaps and overlaps), using extra output argument. Without any output argument, the function plots the data (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!
Type "help rdmseed" or "doc rdmseed" for detailed usage and some examples.
Related: Automatically, biglittleendian, coded, detects, datathe, tested, filesknown, blockettes, bigendian, values, Length, Byte, blockette, default, ranged, Bit
O/S:BSD, Linux, Solaris, Mac OS X
File Size: 10.0 KB
|More Similar Code|
Yet another way to read a file line by line, starting at the end.
A function to calculate the percent of requests that were "refused" by Apache server due to the clients ability to read the file from their cache instead.
Those who need to store the file contents into an array can study this online ASP material to create a dynamic array. After reading this they can generate their own snippet to read a file line by line and can store them into the current array by...
The Python mailbox.mbox class require a real file to initialize, which was an issue in my case. This simple function let you iter through a mailbox read from a read-only file descriptor (like sys.stdin).
This script use the generators...
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...
Structured File Library is an open source version Windows Structured Storage. It works on Windows, Mac OS X, Linux and other systems and try to read/write file in Compound file format.
This small explanation of how to open and read a file for use in your PHP scripts also includes a basic error protection example.
Welcome to CoolSpeech, the award-winning text-to-speech program! It can read out every word or sentence wherever you've just typed, read text from Clipboard and documents, tell the time automatically and read specified file at scheduled time.
Concrete Voice is a text to speech program. It can read the time, anounce weather, read text file, save text files to audio files, open any text file (supports all text encoding formats) and many more advance stuff!
Simple-ETL is a web based ETL development environment. The developed ETL will parse/read data from source and call DB Stored procedures, passing the data read from file as parameters. Stored procedures will control Transformation, Validation and...
|User Review for Read miniSEED file