Commit 482d8f1e authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

added GSE to any input

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 2402
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent b17088a5
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: readany.cc,v 1.14 2007-06-29 12:38:49 tforb Exp $
* $Id: readany.cc,v 1.15 2007-09-19 10:54:02 tforb Exp $
* \author Thomas Forbriger
* \date 06/04/2004
*
......@@ -32,13 +32,14 @@
* - 16/09/2004 V1.1 activate isffstream
* - 23/12/2004 V1.2 activate ihpmostream
* - 29/06/2007 V1.3 added SAC binary format
* - 19/09/2007 V1.4 added raw GSE format
*
* ============================================================================
*/
#define DATREAD_READANY_CC_VERSION \
"DATREAD_READANY_CC V1.3"
"DATREAD_READANY_CC V1.4"
#define DATREAD_READANY_CC_CVSID \
"$Id: readany.cc,v 1.14 2007-06-29 12:38:49 tforb Exp $"
"$Id: readany.cc,v 1.15 2007-09-19 10:54:02 tforb Exp $"
#include <datreadxx/readany.h>
#include<datreadxx/sff.h>
......@@ -47,6 +48,7 @@
#include<datreadxx/mseed.h>
#include<datreadxx/bonjer.h>
#include<datreadxx/sac.h>
#include<datreadxx/gse.h>
#include <datreadxx/error.h>
namespace datread {
......@@ -61,6 +63,7 @@ namespace datread {
else if (Mformat==Fhpmo) { Mis=new ihpmostream(is); }
else if (Mformat==Fmseed) { Mis=new imseedstream(is, debug); }
else if (Mformat==Fsac) { Mis=new isacstream(is); }
else if (Mformat==Fgse) { Mis=new igsestream(is); }
else
{ DATREAD_abort("ERROR (ianystream): unknown format!"); }
}
......@@ -90,6 +93,8 @@ namespace datread {
{ retval=Fbonjer; }
else if (id=="sac")
{ retval=Fsac; }
else if (id=="gse")
{ retval=Fgse; }
else { DATREAD_abort("unknown data type identifier!"); }
return(retval);
}
......@@ -105,6 +110,7 @@ namespace datread {
case Fmseed: retval="mseed"; break;
case Fbonjer: retval="bonjer"; break;
case Fsac: retval="sac"; break;
case Fgse: retval="gse"; break;
default: DATREAD_abort("unknown data type ID#!");
}
return(retval);
......@@ -124,6 +130,7 @@ namespace datread {
os << " bonjer: K2 ASCII data format (defined by K. Bonjer?)"
<< std::endl;
os << " sac: SAC binary format" << std::endl;
os << " gse: raw GSE format" << std::endl;
os << DATREAD_READANY_CC_CVSID << std::endl;
}
......@@ -140,6 +147,7 @@ namespace datread {
os << "PDAS data: "; ipdasstream::help(os);
os << "Bonjer data: "; ibonjerstream::help(os);
os << "SAC data: "; isacstream::help(os);
os << "GSE data: "; igsestream::help(os);
}
} // namespace datread
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: readany.h,v 1.15 2007-06-29 12:38:49 tforb Exp $
* $Id: readany.h,v 1.16 2007-09-19 10:54:02 tforb Exp $
* \author Thomas Forbriger
* \date 31/03/2004
*
......@@ -30,6 +30,7 @@
* REVISIONS and CHANGES
* - 31/03/2004 V1.0 Thomas Forbriger
* - 29/06/2007 V1.1 added SAC binary format
* - 19/09/2007 V1.2 added raw GSE format
*
* ============================================================================
*/
......@@ -38,9 +39,9 @@
#ifndef DATREAD_READANY_H_VERSION
#define DATREAD_READANY_H_VERSION \
"DATREAD_READANY_H V1.1"
"DATREAD_READANY_H V1.2"
#define DATREAD_READANY_H_CVSID \
"$Id: readany.h,v 1.15 2007-06-29 12:38:49 tforb Exp $"
"$Id: readany.h,v 1.16 2007-09-19 10:54:02 tforb Exp $"
#include<datreadxx/datread.h>
......@@ -53,6 +54,7 @@ namespace datread {
Fmseed, //<! MiniSEED data
Fbonjer,//<! Format specified by K. Bonjer
Fsac //<! SAC binary data
Fgse //<! raw GSE data
}; // enum Eformat
#define ANYDELEGATE( function ) function() const { return(Mis->function()); }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment