DATRW++ library: seismic data I/O with multiple formats
mseedread.cc File Reference

read mini-SEED files (implementation) More...

#include <string>
#include <cstring>
#include <string.h>
#include <datrwxx/mseedread.h>
#include <datrwxx/mseed.h>
#include <datrwxx/bytesex.h>
Include dependency graph for mseedread.cc:

Go to the source code of this file.

Namespaces

 datrw
 Root namespace of library.
 
 datrw::mseed
 all the stuff to read mini-SEED data
 
 datrw::mseed::util
 

Macros

#define DATRW_MSEEDREAD_CC_VERSION   "DATRW_MSEEDREAD_CC V1.15"
 

Functions

libtime::TAbsoluteTime datrw::mseed::convert (const SEED::BTIME &t)
 convert BTIME structure to libtime structure More...
 
std::string datrw::mseed::util::extractstring (const char *s, const int &l)
 Return a maximum of l characters. More...
 
bool datrw::mseed::needswap (const unsigned char &bytesex)
 check bytesex More...
 
double datrw::mseed::samplinginterval (const short int &srate, const short int &srmult)
 calculate sampling interval from srate and smult More...
 

Detailed Description

read mini-SEED files (implementation)


Author
Thomas Forbriger
Date
15/07/2004

read mini-SEED files (implementation)


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software

Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Copyright (c) 2004 by Thomas Forbriger (BFO Schiltach)

REVISIONS and CHANGES

  • 15/07/2004 V1.0 Thomas Forbriger (thof)
  • 04/04/2006 V1.1 use Motorola byte order for header fields as standard byte order
  • 28/04/2006 V1.2 - long int appears to be of implementation dependent size
    • provide explicit conversion of BTIME fields
  • 09/05/2006 V1.3 use general Steim 1 and 2 code
  • 07/07/2006 V1.4 provide debug function when reading MiniSEED record
  • 10/07/2006 V1.5 skip special words within data stream
  • 29/06/2007 V1.6 no longer use libtfxx
  • 11/09/2007 V1.7 added help function
  • 11/11/2009 V1.8 requires header cstring
  • 13/09/2011 V1.9 silently skip ASCII blocks
  • 07/05/2014 V1.10 accept all type field indicators in the fixed section of data header as defined by SEED V2.4
  • 08/05/2014 V1.11 add format modifier ttolerance to help check for consistent number of frames
  • 12/05/2014 V1.12 do not read more than the indicated number of frames or samples
  • 22/07/2014 V1.13 thof:
    • move member fucntions MiniSEEDRecord::readheader and MiniSEEDRecord::read to dedicated compilation units
    • support new format modifier: estimateNframes
  • 23/06/2016 V1.14 thof:
    • move member functions of MiniSEEDRecord to separate compilation units
  • 05/07/2016 V1.15 thof:
    • move help function to separate compilation unit
    • do not provide stand-alone help function in namespace mseed

Definition in file mseedread.cc.