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

place the input and output format list in appropriate source files

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/branches/libdatrwxx.su
SVN Revision: 3475
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent b22b4b32
......@@ -49,6 +49,7 @@ $Id$
- \ref page_writing_howto
- \ref page_writing_operation
- \ref page_notes
- \ref page_formats
\section sec_concept Concept of the library
......@@ -67,20 +68,7 @@ $Id$
without the need of changing the source code of the library.
Just link against libdatrwxx and go...
Currently supported \b input \b formats are:
- mseed: MiniSEED (SeisComP, EDL, etc.)
- pdas: PDAS100 (i.e. DaDisp)
- sac: SAC binary format
- sff: Stuttgart File Format
- gse: raw GSE format
- hpmo: HP-MO data format defined by W. Grossmann (BFO)
- bonjer: K2 ASCII data format (defined by K. Bonjer?)
- tsoft: TSOFT format (http://seismologie.oma.be/TSOFT/tsoft.html)
- tfascii: output data of T. Forbriger's any2ascii
Currently supported \b output \b formats are:
- sff: Stuttgart File Format
- gse: raw GSE format
\ref page_formats are listed on a separate page.
Each format specific module will be placed into its own namespace, like
datrw::hpmo.
......
......@@ -151,8 +151,9 @@ namespace datrw {
else if (id==su::streamID) { retval=Fsu; }
else { DATRW_abort("unknown data type identifier!"); }
return(retval);
}
// Eformat anyID(const std::string& identifier)
} // Eformat anyID(const std::string& identifier)
/*----------------------------------------------------------------------*/
std::string anyID(const Eformat& id)
{
......@@ -171,34 +172,7 @@ namespace datrw {
default: DATRW_abort("unknown data type ID#!");
}
return(retval);
}
// std::string anyID(const Eformat& id)
/*----------------------------------------------------------------------*/
void supported_data_types(std::ostream& os)
{
os << "data formats supported by ianystream:" << std::endl;
os.width(13); os << sff::streamID
<< ": Stuttgart File Format" << std::endl;
os.width(13); os << hpmo::streamID
<< ": HP-MO data format defined by W. Grossmann (BFO)"
<< std::endl;
os.width(13); os << pdas::streamID
<< ": PDAS100 (i.e. DaDisp)" << std::endl;
os.width(13); os << mseed::streamID
<< ": MiniSEED (SeisComP, EDL, etc.)" << std::endl;
os.width(13); os << bonjer::streamID
<< ": K2 ASCII data format (defined by K. Bonjer?)"
<< std::endl;
os.width(13); os << sac::streamID << ": SAC binary format" << std::endl;
os.width(13); os << gse::streamID << ": raw GSE format" << std::endl;
os.width(13); os << tsoft::streamID << ": TSOFT format" << std::endl;
os.width(13); os << tfascii::streamID
<< ": ASCII format of T. Forbrigers any2ascii" << std::endl;
os.width(13); os << su::streamID << ": Seismic Unix format" << std::endl;
os << DATRW_READANY_CC_CVSID << std::endl;
}
} // std::string anyID(const Eformat& id)
/*----------------------------------------------------------------------*/
......@@ -226,8 +200,52 @@ namespace datrw {
os << "TFASCII data: "; itfasciistream::help(os);
os << std::endl;
os << "SU data: "; isustream::help(os);
} // void online_help(std::ostream& os)
/*----------------------------------------------------------------------*/
void supported_data_types(std::ostream& os)
{
os << "data formats supported by ianystream:" << std::endl;
os.width(13); os << sff::streamID
<< ": Stuttgart File Format" << std::endl;
os.width(13); os << hpmo::streamID
<< ": HP-MO data format defined by W. Grossmann (BFO)"
<< std::endl;
os.width(13); os << pdas::streamID
<< ": PDAS100 (i.e. DaDisp)" << std::endl;
os.width(13); os << mseed::streamID
<< ": MiniSEED (SeisComP, EDL, etc.)" << std::endl;
os.width(13); os << bonjer::streamID
<< ": K2 ASCII data format (defined by K. Bonjer?)"
<< std::endl;
os.width(13); os << sac::streamID << ": SAC binary format" << std::endl;
os.width(13); os << gse::streamID << ": raw GSE format" << std::endl;
os.width(13); os << tsoft::streamID << ": TSOFT format" << std::endl;
os.width(13); os << tfascii::streamID
<< ": ASCII format of T. Forbrigers any2ascii" << std::endl;
os.width(13); os << su::streamID << ": Seismic Unix format" << std::endl;
os << DATRW_READANY_CC_CVSID << std::endl;
}
} // namespace datrw
/*======================================================================*/
/*! \page page_formats Supported formats
*
Currently supported \b input \b formats are:
- mseed: MiniSEED (SeisComP, EDL, etc.)
- pdas: PDAS100 (i.e. DaDisp)
- sac: SAC binary format
- sff: Stuttgart File Format
- gse: raw GSE format
- hpmo: HP-MO data format defined by W. Grossmann (BFO)
- bonjer: K2 ASCII data format (defined by K. Bonjer?)
- tsoft: TSOFT format (http://seismologie.oma.be/TSOFT/tsoft.html)
- tfascii: output data of T. Forbriger's any2ascii
- su: Seismic Unix format
*/
/* ----- END OF readany.cc ----- */
......@@ -112,4 +112,12 @@ namespace datrw {
} // namespace datrw
/*! \page page_formats Supported formats
*
Currently supported \b output \b formats are:
- sff: Stuttgart File Format
- gse: raw GSE format
*/
/* ----- END OF writeany.cc ----- */
Markdown is supported
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