DATRW++ library: seismic data I/O with multiple formats

◆ help() [1/2]

void datrw::iasciistream::help ( std::ostream &  os = std::cout)
static

Definition at line 578 of file iasciistream.cc.

References DATRW_IASCIISTREAM_CC_VERSION, datrw::ascii::anonymous_namespace{iasciistream.cc}::explainmodifier(), datrw::ascii::anonymous_namespace{iasciistream.cc}::explainmodifierflag(), datrw::ascii::keyauxid, datrw::ascii::keycalib, datrw::ascii::keycalper, datrw::ascii::keychannel, datrw::ascii::keydata, datrw::ascii::keydate, datrw::ascii::keydouble, datrw::ascii::keydt, datrw::ascii::keyfloat, datrw::ascii::keyhang, datrw::ascii::keyinstype, datrw::ascii::keyint, datrw::ascii::keynonfatal, datrw::ascii::keynsamples, datrw::ascii::keynstacks, datrw::ascii::keyRECVCS, datrw::ascii::keyRECVX, datrw::ascii::keyRECVY, datrw::ascii::keyRECVZ, datrw::ascii::keySRCECS, datrw::ascii::keySRCEdate, datrw::ascii::keySRCEtype, datrw::ascii::keySRCEX, datrw::ascii::keySRCEY, datrw::ascii::keySRCEZ, datrw::ascii::keystation, and datrw::ascii::keyvang.

Referenced by main(), and datrw::online_help().

579  {
580  os <<
581  std::endl <<
582  "ASCII reading functions" << std::endl <<
583  "-----------------------" << std::endl <<
584  DATRW_IASCIISTREAM_CC_VERSION << std::endl <<
585  std::endl;
586  os <<
587  "This module reads seismic time series data in the raw\n"
588  "single column ASCII format. No header values are required\n"
589  "but all SFF header data can be provided. Header data not\n"
590  "present in the file can be set through format modifiers.\n"
591  "Header data neither given in the file nor in the format are\n"
592  "set to default values. The number of samples is determined from\n"
593  "actual numer of samples present in the file. If a number of samples\n"
594  "is defined in the header it is used as a maximum number of samples\n"
595  "to be read until the next trace begins.\n"
596  "Each line with a hash (#) in the first column is treated\n"
597  "as a header line. Each line with a double hash (##) in the\n"
598  "first two columns is treated as a free format comment. All\n"
599  "other lines are treated as ASCII data.\n"
600  << std::endl;
601  os <<
602  "Parameter values for header fields can be set in lines which\n"
603  "have a single hash (#) in the first column. The hash is expected\n"
604  "to be followed by a key ID, which can be either one of the\n"
605  "modifier keys listed below or can be \"" << ascii::keydata << "\".\n"
606  "The key has to be separated from the value by a single colon (:).\n"
607  "If you feel unsure, simply write a data file using the ASCII\n"
608  "output functions and have a look at the result.\n"
609  << std::endl;
610  os <<
611  "The data type can be selected by the key \""
612  << ascii::keydata << "\" and one of the values:\n";
613  os << " "; os.width(7);
614  os << std::left
615  << ascii::keydouble << ": for double precision data\n";
616  os << " "; os.width(7);
617  os << std::left
618  << ascii::keyfloat << ": for single precision data\n";
619  os << " "; os.width(7);
620  os << std::left
621  << ascii::keyint << ": for integer data\n"
622  "If no type is specified, the default will be "
623  << ascii::keydouble << "\n"
624  << std::endl;
625  os <<
626  "The ascii input stream can be controlled by format modifiers:\n";
628  "(WID2) set number of samples");
630  "(WID2) set sampling interval (seconds)");
632  "(WID2) set time of first sample; YYYY/MM/DD/hh/mm/ss.ssssss");
634  "(WID2) set channel ID");
636  "(WID2) set station ID");
638  "(WID2) set auxiliary ID");
640  "(WID2) set instrument type ID");
642  "(WID2) set calib value");
644  "(WID2) set calper value");
646  "(WID2) set hang value");
648  "(WID2) set vang value");
650  "(SRCE) set date and time of source; YYYY/MM/DD/hh/mm/ss.ssssss");
652  "(SRCE) set type of source");
654  "(SRCE) set x coordinate of source");
656  "(SRCE) set y coordinate of source");
658  "(SRCE) set z coordinate of source");
660  "(SRCE) set coordinate system of source");
662  "(INFO) set number of stacks");
664  "(INFO) set x coordinate of receiver");
666  "(INFO) set y coordinate of receiver");
668  "(INFO) set z coordinate of receiver");
670  "(INFO) set coordinate system of receiver");
671  os << "Further modifiers:\n";
673  "make errors non-fatal is possible (only a warning will be issued)");
674  } // void iasciistream::help(std::ostream& os)
const char *const keyinstype
key for WID2 line header field
Definition: ascii.cc:51
const char *const keySRCEtype
key for SRCE line header field
Definition: ascii.cc:58
const char *const keydouble
key for DATA type header field
Definition: ascii.cc:73
const char *const keySRCEY
key for SRCE line header field
Definition: ascii.cc:60
const char *const keynonfatal
format modifier key
Definition: ascii.cc:75
const char *const keyRECVY
key for INFO line header field
Definition: ascii.cc:65
void explainmodifier(std::ostream &os, const char *const key, const char *const message)
const char *const keydt
key for WID2 line header field
Definition: ascii.cc:46
const char *const keyRECVCS
key for INFO line header field
Definition: ascii.cc:67
const char *const keyhang
key for WID2 line header field
Definition: ascii.cc:54
const char *const keyint
key for DATA type header field
Definition: ascii.cc:71
#define DATRW_IASCIISTREAM_CC_VERSION
Definition: iasciistream.cc:42
const char *const keycalib
key for WID2 line header field
Definition: ascii.cc:52
const char *const keyauxid
key for WID2 line header field
Definition: ascii.cc:50
const char *const keychannel
key for WID2 line header field
Definition: ascii.cc:49
const char *const keydate
key for WID2 line header field
Definition: ascii.cc:45
const char *const keynstacks
key for INFO line header field
Definition: ascii.cc:68
void explainmodifierflag(std::ostream &os, const char *const key, const char *const message)
const char *const keySRCEdate
key for SRCE line header field
Definition: ascii.cc:57
const char *const keyRECVX
key for INFO line header field
Definition: ascii.cc:64
const char *const keycalper
key for WID2 line header field
Definition: ascii.cc:53
const char *const keynsamples
key for WID2 line header field
Definition: ascii.cc:47
const char *const keySRCEX
key for SRCE line header field
Definition: ascii.cc:59
const char *const keyRECVZ
key for INFO line header field
Definition: ascii.cc:66
const char *const keySRCECS
key for SRCE line header field
Definition: ascii.cc:62
const char *const keyfloat
key for DATA type header field
Definition: ascii.cc:72
const char *const keyvang
key for WID2 line header field
Definition: ascii.cc:55
const char *const keystation
key for WID2 line header field
Definition: ascii.cc:48
const char *const keydata
key for DATA type header field
Definition: ascii.cc:70
const char *const keySRCEZ
key for SRCE line header field
Definition: ascii.cc:61
Here is the call graph for this function:
Here is the caller graph for this function: